本文整理了Java中javax.swing.JMenuItem.doClick()
方法的一些代码示例,展示了JMenuItem.doClick()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JMenuItem.doClick()
方法的具体详情如下:
包路径:javax.swing.JMenuItem
类名称:JMenuItem
方法名:doClick
暂无
代码示例来源:origin: ron190/jsql-injection
@Override
protected void doClick(MenuSelectionManager msm) {
this.menuItem.doClick(0);
}
}
代码示例来源:origin: ron190/jsql-injection
@Override
protected void doClick(MenuSelectionManager msm) {
this.menuItem.doClick(0);
}
}
代码示例来源:origin: ron190/jsql-injection
@Override
protected void doClick(MenuSelectionManager msm) {
this.menuItem.doClick(0);
}
}
代码示例来源:origin: ron190/jsql-injection
@Override
protected void doClick(MenuSelectionManager msm) {
this.menuItem.doClick(0);
}
}
代码示例来源:origin: ron190/jsql-injection
@Override
protected void doClick(MenuSelectionManager msm) {
this.menuItem.doClick(0);
}
}
代码示例来源:origin: com.github.axet/desktop
public void fire() {
item.doClick();
}
}
代码示例来源:origin: com.github.axet/desktop
@Override
public void signal(Pointer data) {
item.doClick();
}
};
代码示例来源:origin: igniterealtime/Spark
public void showAddContact(String contact)
{
addContactMenu.doClick();
};
代码示例来源:origin: girtel/Net2Plan
@Override
public void actionPerformed(ActionEvent actionEvent)
{
menuItem.doClick();
}
});
代码示例来源:origin: org.orbisgis/orbisgis-view
public void actionPerformed(ActionEvent ae) {
//Trigger actionEvent on the last select menu item
if(buttonAsMenuItem && selectedItem!=null) {
selectedItem.doClick();
}
JPopupMenu popup = getComponentPopupMenu();
popup.show(this, 0, this.getHeight());
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public void actionPerformed(ActionEvent e)
{
JMenuItem mi= (JMenuItem) e.getSource();
MenuSelectionManager.defaultManager().clearSelectedPath();
mi.doClick();
}
}
代码示例来源:origin: com.jidesoft/jide-oss
public void actionPerformed(ActionEvent e) {
JMenuItem mi = (JMenuItem) e.getSource();
MenuSelectionManager.defaultManager().clearSelectedPath();
mi.doClick();
}
}
代码示例来源:origin: com.jidesoft/jide-oss
public void actionPerformed(ActionEvent e) {
JMenuItem mi = (JMenuItem) e.getSource();
MenuSelectionManager.defaultManager().clearSelectedPath();
mi.doClick();
}
}
代码示例来源:origin: orbisgis/orbisgis
public void actionPerformed(ActionEvent ae) {
//Trigger actionEvent on the last select menu item
if(buttonAsMenuItem && selectedItem!=null) {
selectedItem.doClick();
}
JPopupMenu popup = getComponentPopupMenu();
popup.show(this, 0, this.getHeight());
}
代码示例来源:origin: com.jidesoft/jide-oss
public void actionPerformed(ActionEvent e) {
JMenuItem mi = (JMenuItem) e.getSource();
MenuSelectionManager.defaultManager().clearSelectedPath();
mi.doClick();
}
}
代码示例来源:origin: com.github.axet/desktop
public void callback(Pointer self, Pointer selector) {
if (selector.equals(registerActionSelector)) {
OSXSysTrayAction a = map.get(Pointer.nativeValue(self));
a.mi.doClick();
}
}
};
代码示例来源:origin: joel-costigliola/assertj-swing
@RunsInEDT
private static void validateAndDoClick(final @Nonnull JMenuItem menuItem) {
execute(() -> {
checkEnabledAndShowing(menuItem);
menuItem.doClick();
});
}
代码示例来源:origin: com.jidesoft/jide-oss
/**
* Call this method when a menu item is to be activated. This method handles some of the details of menu item
* activation such as clearing the selected path and messaging the JMenuItem's doClick() method.
*
* @param msm A MenuSelectionManager. The visual feedback and internal bookkeeping tasks are delegated to this
* MenuSelectionManager. If <code>null</code> is passed as this argument, the
* <code>MenuSelectionManager.defaultManager</code> is used.
* @see javax.swing.MenuSelectionManager
* @see javax.swing.JMenuItem#doClick(int)
* @since 1.4
*/
protected void doClick(MenuSelectionManager msm) {
// Visual feedback
if (msm == null) {
msm = MenuSelectionManager.defaultManager();
}
msm.clearSelectedPath();
menuItem.doClick(0);
}
代码示例来源: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);
}
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: 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);
}
}
内容来源于网络,如有侵权,请联系作者删除!