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

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

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

Spinner.getSelectionText介绍

暂无

代码示例

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

void textDidEndEditing(long /*int*/ id, long /*int*/ sel, long /*int*/ aNotification) {
  boolean [] parseFail = new boolean [1];
  int value = getSelectionText (parseFail);
  if (parseFail [0]) {
    value = (int)buttonView.doubleValue();
    setSelection (value, false, true, false);
  }
  super.textDidEndEditing(id, sel, aNotification);
}

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

void textDidChange (long /*int*/ id, long /*int*/ sel, long /*int*/ aNotification) {
  super.textDidChange (id, sel, aNotification);
  boolean [] parseFail = new boolean [1];
  int value = getSelectionText (parseFail);
  if (!parseFail [0]) {
    int pos = (int)buttonView.doubleValue();
    if (value != pos) {
      setSelection (value, true, false, true);
    }
  }
  postEvent (SWT.Modify);
}

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

@Override
LRESULT wmKillFocus (int /*long*/ hwnd, int /*long*/ wParam, int /*long*/ lParam) {
  boolean [] parseFail = new boolean [1];
  int value = getSelectionText (parseFail);
  if (parseFail [0]) {
    if (OS.IsWinCE) {
      value = OS.LOWORD (OS.SendMessage (hwndUpDown, OS.UDM_GETPOS, 0, 0));
    } else {
      value = (int)/*64*/OS.SendMessage (hwndUpDown, OS.UDM_GETPOS32, 0, 0);
    }
    setSelection (value, false, true, false);
  }
  return super.wmKillFocus (hwnd, wParam, lParam);
}

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

int value = getSelectionText (parseFail);
  if (parseFail [0]) {
    value = (int)buttonView.doubleValue();
} else {
  boolean [] parseFail = new boolean [1];
  int value = getSelectionText (parseFail);
  if (!parseFail [0]) {
    int pos = (int)buttonView.doubleValue();

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

int value = getSelectionText (parseFail);
if (parseFail [0]) {
  if (OS.IsWinCE) {

代码示例来源: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);
}

相关文章