本文整理了Java中org.eclipse.swt.widgets.MenuItem.getAccelerator()
方法的一些代码示例,展示了MenuItem.getAccelerator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MenuItem.getAccelerator()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.MenuItem
类名称:MenuItem
方法名:getAccelerator
[英]Returns the widget accelerator. An accelerator is the bit-wise OR of zero or more modifier masks and a key. Examples: SWT.CONTROL | SWT.SHIFT | 'T', SWT.ALT | SWT.F2
. The default value is zero, indicating that the menu item does not have an accelerator.
[中]返回小部件加速器。加速器是由零个或多个修改器掩码和一个键组成的逐位OR。示例:[$0$]。默认值为零,表示菜单项没有加速器。
代码示例来源:origin: BiglySoftware/BiglyBT
if(menuItem.getAccelerator() != 0) // opt-in only for now; remove this conditional check to allow accelerators for arbitrary MenuItem objects
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
final MenuItem proxyItem = new MenuItem(proxy, realItem.getStyle());
proxyItem.setData(realItem);
proxyItem.setAccelerator(realItem.getAccelerator());
proxyItem.setEnabled(realItem.getEnabled());
proxyItem.setImage(realItem.getImage());
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface
final MenuItem proxyItem = new MenuItem(proxy, realItem.getStyle());
proxyItem.setData(realItem);
proxyItem.setAccelerator(realItem.getAccelerator());
proxyItem.setEnabled(realItem.getEnabled());
proxyItem.setImage(realItem.getImage());
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface
final MenuItem proxyItem = new MenuItem(proxy, realItem.getStyle());
proxyItem.setData(realItem);
proxyItem.setAccelerator(realItem.getAccelerator());
proxyItem.setEnabled(realItem.getEnabled());
proxyItem.setImage(realItem.getImage());
代码示例来源:origin: BiglySoftware/BiglyBT
SkinConstants.VIEWID_PLUGINBAR, true, -1);
if ( accelerator != -1 && mi.getAccelerator() == accelerator ){
内容来源于网络,如有侵权,请联系作者删除!