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

x33g5p2x  于2022-01-25 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(145)

本文整理了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 ){

相关文章