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

x33g5p2x  于2022-01-18 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(141)

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

Composite.enableWidget介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
void enableWidget (boolean enabled) {
  super.enableWidget (enabled);
  OS.EnableWindow (hwndText, enabled);
  OS.EnableWindow (hwndUpDown, enabled);
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

void enableWidget (boolean enabled) {
  super.enableWidget(enabled);
  buttonView.setEnabled(enabled);
  textView.setEnabled(enabled);
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

void enableWidget(boolean enabled) {
  super.enableWidget(enabled);
  for (int i = 0; i < itemCount; i++) {
    ToolItem item = items[i];
    if (item != null) {
      item.enableWidget(enabled && item.getEnabled());
    }
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
void enableWidget (boolean enabled) {
  super.enableWidget (enabled);
  /*
  * Bug in Windows.  When a tool item with the style
  * BTNS_CHECK or BTNS_CHECKGROUP is selected and then
  * disabled, the item does not draw using the disabled
  * image.  The fix is to use the disabled image in all
  * image lists for the item.
  *
  * Feature in Windows.  When a tool bar is disabled,
  * the text draws disabled but the images do not.
  * The fix is to use the disabled image in all image
  * lists for all items.
  */
  for (int i=0; i<items.length; i++) {
    ToolItem item = items [i];
    if (item != null) {
      if ((item.style & SWT.SEPARATOR) == 0) {
        item.updateImages (enabled && item.getEnabled ());
      }
    }
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
void enableWidget (boolean enabled) {
  super.enableWidget (enabled);
  /*
  * Bug in Windows.  When a group control is right-to-left and
  * is disabled, the first pixel of the text is clipped.  The
  * fix is to add a space to both sides of the text.
  */
  String string = fixText (enabled);
  if (string != null) {
    TCHAR buffer = new TCHAR (getCodePage (), string, true);
    OS.SetWindowText (handle, buffer);
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
void enableWidget (boolean enabled) {
  super.enableWidget (enabled);

相关文章

Composite类方法