本文整理了Java中javax.swing.JMenuItem.setArmed()
方法的一些代码示例,展示了JMenuItem.setArmed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuItem.setArmed()
方法的具体详情如下:
包路径:javax.swing.JMenuItem
类名称:JMenuItem
方法名:setArmed
暂无
代码示例来源:origin: google/sagetv
public void mouseEntered(MouseEvent evt)
{
exity.setArmed(true);
}
public void mouseExited(MouseEvent evt)
代码示例来源:origin: google/sagetv
public void mouseEntered(MouseEvent evt)
{
cancely.setArmed(true);
}
public void mouseExited(MouseEvent evt)
代码示例来源:origin: google/sagetv
public void mouseExited(MouseEvent evt)
{
resty.setArmed(false);
}
});
代码示例来源:origin: GoldenGnu/jeveassets
@Override
public void mouseReleased(MouseEvent e) {
showPopupMenu();
jMenuItem.setArmed(true);
}
@Override
代码示例来源:origin: google/sagetv
public void mouseEntered(MouseEvent evt)
{
resty.setArmed(true);
}
public void mouseExited(MouseEvent evt)
代码示例来源:origin: GoldenGnu/jeveassets
@Override
public void mouseEntered(MouseEvent e) {
jMenuItem.setArmed(true);
}
@Override
代码示例来源:origin: google/sagetv
public void mouseExited(MouseEvent evt)
{
exity.setArmed(false);
}
});
代码示例来源:origin: google/sagetv
public void mouseExited(MouseEvent evt)
{
cancely.setArmed(false);
}
});
代码示例来源:origin: GoldenGnu/jeveassets
@Override
public void mouseExited(MouseEvent e) {
jMenuItem.setArmed(false);
}
});
代码示例来源:origin: org.xworker/xworker_core
public static void init(JMenuItem comp, Thing thing, Container parent, ActionContext actionContext){
AbstractButtonCreator.init(comp, thing, parent, actionContext);
Boolean armed = JavaCreator.createBoolean(thing, "armed");
if(armed != null){
comp.setArmed(armed);
}
KeyStroke accelerator = SwingCreator.createKeyStroke(thing, "accelerator", actionContext);
if(accelerator != null){
comp.setAccelerator(accelerator);
}
}
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected void uninstallDefaults() {
menuItem.setArmed(false);
menuItem.setSelected(false);
menuItem.resetKeyboardActions();
super.uninstallDefaults();
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected void uninstallDefaults() {
menuItem.setArmed(false);
menuItem.setSelected(false);
menuItem.resetKeyboardActions();
super.uninstallDefaults();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
protected void uninstallDefaults() {
menuItem.setArmed(false);
menuItem.setSelected(false);
menuItem.resetKeyboardActions();
super.uninstallDefaults();
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
protected void uninstallDefaults() {
menuItem.setArmed(false);
menuItem.setSelected(false);
menuItem.resetKeyboardActions();
super.uninstallDefaults();
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
protected void uninstallDefaults() {
menuItem.setArmed(false);
menuItem.setSelected(false);
menuItem.resetKeyboardActions();
super.uninstallDefaults();
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
public void processMouseEvent(JMenuItem item, MouseEvent e,
MenuElement path[], MenuSelectionManager manager) {
Point p = e.getPoint();
if(p.x >= 0 && p.x < item.getWidth() && p.y >= 0
&& p.y < item.getHeight()) {
if(e.getID() == MouseEvent.MOUSE_RELEASED) {
manager.clearSelectedPath();
item.doClick(0);
item.setArmed(false);
}
else manager.setSelectedPath(path);
}
else if(item.getModel().isArmed()) {
MenuElement newPath[] = new MenuElement[path.length - 1];
int i, c;
for(i = 0, c = path.length - 1; i < c; i++) {
newPath[i] = path[i];
}
manager.setSelectedPath(newPath);
}
}
}
代码示例来源:origin: JChemPaint/jchempaint
/**
* Constructor for the JChemPaintPopupMenu object.
*
* @param jcpPanel The JChemPaintPanel this menu is used for.
* @param type The String used to identify the Menu
* @param guiString The string identifying the gui to build (i. e. the properties file to use)
* @param blacklist A list of menuitesm/buttons which should be ignored when building gui.
*/
JChemPaintPopupMenu(JChemPaintPanel jcpPanel, String type, String guiString, List<String> blacklist)
{
String menuTitle = jcpPanel.getMenuTextMaker().getText(type + "MenuTitle");
JMenuItem titleMenuItem = new JMenuItem(menuTitle);
titleMenuItem.setEnabled(false);
titleMenuItem.setArmed(false);
this.add(titleMenuItem);
this.addSeparator();
this.setLabel(type);
menuHelper.createMenu(jcpPanel, type + "popup", true, guiString, this, blacklist);
}
代码示例来源:origin: khuxtable/seaglass
public void processMouseEvent(JMenuItem item, MouseEvent e, MenuElement path[], MenuSelectionManager manager) {
Point p = e.getPoint();
if (p.x >= 0 && p.x < item.getWidth() && p.y >= 0 && p.y < item.getHeight()) {
if (e.getID() == MouseEvent.MOUSE_RELEASED) {
manager.clearSelectedPath();
item.doClick(0);
item.setArmed(false);
} else
manager.setSelectedPath(path);
} else if (item.getModel().isArmed()) {
MenuElement newPath[] = new MenuElement[path.length - 1];
int i, c;
for (i = 0, c = path.length - 1; i < c; i++)
newPath[i] = path[i];
manager.setSelectedPath(newPath);
}
}
代码示例来源:origin: com.jidesoft/jide-oss
public void processMouseEvent(JMenuItem item, MouseEvent e, MenuElement path[], MenuSelectionManager manager) {
Point p = e.getPoint();
if (p.x >= 0 && p.x < item.getWidth() &&
p.y >= 0 && p.y < item.getHeight()) {
if (e.getID() == MouseEvent.MOUSE_RELEASED) {
manager.clearSelectedPath();
item.doClick(0);
item.setArmed(false);
}
else
manager.setSelectedPath(path);
}
else if (item.getModel().isArmed()) {
MenuElement newPath[] = new MenuElement[path.length - 1];
int i, c;
for (i = 0, c = path.length - 1; i < c; i++)
newPath[i] = path[i];
manager.setSelectedPath(newPath);
}
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
item.setArmed(false);
内容来源于网络,如有侵权,请联系作者删除!