org.eclipse.swt.widgets.List.setRedraw()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中org.eclipse.swt.widgets.List.setRedraw()方法的一些代码示例,展示了List.setRedraw()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。List.setRedraw()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.List
类名称:List
方法名:setRedraw

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) {
      }
    }
  }
});

相关文章

微信公众号

最新文章

更多

List类方法