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

x33g5p2x  于2022-01-30 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(102)

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

Spinner.isDisposed介绍

暂无

代码示例

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void runSupport() {
    if ( !spinner.isDisposed()){
      spinner.setSelection( adapter.getIntValue(sParamName));
    }
  }
});

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

if (!event.doit || isDisposed ()) return null;
return event.text;

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void runSupport() {
    if (!spinner.isDisposed()) {
      if (spinner.getSelection() != finalNewValue) {
        if (DEBUG) {
          debug("spinner.setSelection(" + finalNewValue + ")");
        }
        swt_setSpinnerValue(finalNewValue);
      }
      if (DEBUG) {
        debug("setIntValue to " + spinner.getSelection()
            + " via setValue(int)");
      }
    }
  }
});

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void
  run()
  {
    if ( spinMinSize != null && !spinMinSize.isDisposed()){
      spinMinSize.setSelection(0);
    }
    if ( spinMaxSize != null && !spinMaxSize.isDisposed()){
      spinMaxSize.setSelection(0);
    }
    if ( textWithKW != null && !textWithKW.isDisposed()){
      textWithKW.setText("");
    }
    if ( textWithoutKW != null && !textWithoutKW.isDisposed()){
      textWithoutKW.setText("");
    }
    if ( tv_subs_results != null) {
      tv_subs_results.setFilterText("");
    }
  }
});

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

if (!event.doit || isDisposed ()) return null;
return event.text;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

if (!event.doit || isDisposed ()) return null;
return event.text;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

if (!event.doit || isDisposed ()) return null;
return event.text;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

if (!event.doit || isDisposed ()) return null;
return event.text;

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

@Override
LRESULT WM_SIZE (int /*long*/ wParam, int /*long*/ lParam) {
  LRESULT result = super.WM_SIZE (wParam, lParam);
  if (isDisposed ()) return result;
  int width = OS.LOWORD (lParam), height = OS.HIWORD (lParam);
  int upDownWidth = OS.GetSystemMetrics (OS.SM_CXVSCROLL);
  int textWidth = width - upDownWidth;
  int border = OS.GetSystemMetrics (OS.SM_CXEDGE);
  int flags = OS.SWP_NOZORDER | OS.SWP_DRAWFRAME | OS.SWP_NOACTIVATE;
  SetWindowPos (hwndText, 0, 0, 0, textWidth + border, height, flags);
  SetWindowPos (hwndUpDown, 0, textWidth, 0, upDownWidth, height, flags);
  return result;
}

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

@Override
LRESULT wmCommandChild (int /*long*/ wParam, int /*long*/ lParam) {
  int code = OS.HIWORD (wParam);
  switch (code) {
    case OS.EN_CHANGE:
      if (ignoreModify) break;
      boolean [] parseFail = new boolean [1];
      int value = getSelectionText (parseFail);
      if (!parseFail [0]) {
        int pos;
        if (OS.IsWinCE) {
          pos = OS.LOWORD (OS.SendMessage (hwndUpDown, OS.UDM_GETPOS, 0, 0));
        } else {
          pos = (int)/*64*/OS.SendMessage (hwndUpDown, OS.UDM_GETPOS32, 0, 0);
        }
        if (pos != value) setSelection (value, true, false, true);
      }
      sendEvent (SWT.Modify);
      if (isDisposed ()) return LRESULT.ZERO;
      break;
  }
  return super.wmCommandChild (wParam, lParam);
}

相关文章