本文整理了Java中org.eclipse.swt.widgets.List.setRedraw()
方法的一些代码示例,展示了List.setRedraw()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。List.setRedraw()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.List
类名称:List
方法名:setRedraw
暂无
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
void updateRowCount() {
/*
* Feature in Cocoa. Changing the row count while the mouse is tracking will confuse the code that calculates the
* current selection. Fix is to not call noteNumberOfRowsChanged if the mouse is down.
*/
if (mouseIsDown) {
rowsChanged = true;
} else {
NSTableView widget = (NSTableView)view;
setRedraw(false);
ignoreSelect = true;
widget.noteNumberOfRowsChanged ();
ignoreSelect = false;
widget.tile();
setRedraw(true);
}
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void handleEvent(Event e) {
int index = lstLanguage.getSelectionIndex();
if (index >= 0 && index < locales.length) {
COConfigurationManager.setParameter("locale", locales[index]
.toString());
MessageText.loadBundle();
DisplayFormatters.setUnits();
DisplayFormatters.loadMessages();
Shell shell = wizard.getWizardWindow();
Messages.updateLanguageForControl(shell);
setChooseLabel(lblChoose);
shell.layout(true, true);
lstLanguage.setRedraw(false);
for (int i = 0; i < locales.length; i++) {
lstLanguage.setItem(i, buildName(locales[i]));
}
lstLanguage.setRedraw(true);
try {
UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
if (uiFunctions != null) {
uiFunctions.refreshLanguage();
}
} catch (Exception ex) {
}
}
}
});
内容来源于网络,如有侵权,请联系作者删除!