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

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

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

Spinner.sendEvent介绍

暂无

代码示例

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

sendEvent (SWT.Verify, event);
if (!event.doit || isDisposed ()) return null;
return event.text;

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

event.end = mbcsToWcsPos (end);
sendEvent (SWT.Verify, event);
if (!event.doit || isDisposed ()) return null;
return event.text;

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

sendEvent (SWT.Verify, event);
if (!event.doit || isDisposed ()) return null;
return event.text;

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

NSText fieldEditor = textView.currentEditor();
if (fieldEditor != null) fieldEditor.setSelectedRange(selection);
sendEvent (SWT.Modify);

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

sendEvent (SWT.Verify, event);
if (!event.doit || isDisposed ()) return null;
return event.text;

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

sendEvent (SWT.Verify, event);
if (!event.doit || isDisposed ()) return null;
return event.text;

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

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

if (!result) sendEvent (SWT.Modify);

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

postEvent (SWT.Modify);
} else {
  sendEvent (SWT.Modify);

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

postEvent (SWT.Modify);
} else {
  sendEvent (SWT.Modify);

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

postEvent (SWT.Modify);
} else {
  sendEvent (SWT.Modify);

相关文章