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

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

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

ScrollBar.notifyListeners介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

public void handleNotifySelection( ScrollBar scrollBar ) {
 scrollBar.notifyListeners( SWT.Selection, new Event() );
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.css.swt

/**
 * Notifies that a scroll event happened.
 *
 * @param scrollable
 *            The current scrollable control.
 * @param detail
 *            The detail for the scroll (see
 *            #org.eclipse.swt.widgets.ScrollBar.wmScrollChild(long, long)).
 */
protected void notifyScrollbarSelectionChanged(Scrollable scrollable, int detail) {
  Event e = new Event();
  e.type = SWT.Selection;
  e.x = 0;
  e.y = 0;
  e.button = 0;
  e.stateMask = 0;
  e.count = 1;
  e.display = scrollable.getDisplay();
  e.widget = fScrollBar;
  e.time = 0;
  e.data = null;
  e.character = '\0';
  e.detail = detail;
  e.doit = true;
  fScrollBar.notifyListeners(SWT.Selection, e);
}

相关文章