public void actionPerformed(@NotNull ActionEvent e) { ExTextField target = (ExTextField)getTextComponent(e); final Action currentAction = target.getCurrentAction(); if (currentAction != null) { currentAction.actionPerformed(e); } else { KeyStroke key = convert(e); if (key != null) { final char c = key.getKeyChar(); if (c > 0) { ActionEvent event = new ActionEvent(e.getSource(), e.getID(), "" + c, e.getWhen(), e.getModifiers()); super.actionPerformed(event); target.saveLastEntry(); } } else { super.actionPerformed(e); target.saveLastEntry(); } } } }
@Override public void actionPerformed( ActionEvent e ) { nd.setValue(option); if (buttonListener != null) { // #34485: some listeners expect that the action source is the option, not the button ActionEvent e2 = new ActionEvent( option, e.getID(), e.getActionCommand(), e.getWhen(), e.getModifiers() ); buttonListener.actionPerformed(e2); } if ((closingOptions == null) || Arrays.asList(closingOptions).contains(option)) { haveFinalValue = true; setVisible(false); } } }
public void actionPerformed(ActionEvent _evt) { listener_.actionPerformed(new ActionEvent (_evt.getSource(),_evt.getID(),action_)); } }
@Override public void actionPerformed(final ActionEvent e) { _tabIndex = e.getID(); final MouseEvent mouseEvent = (MouseEvent) e.getSource(); showPopup(_tabbedPane, mouseEvent.getX(), mouseEvent.getY()); }
public void actionPerformed(ActionEvent e) { if (null != successListener) { successListener.actionPerformed(new ActionEvent(AddUserDialog.this, e.getID(), "addUser")); } dispose(); } });
public void actionPerformed(ActionEvent e) { if (null != successListener) { successListener.actionPerformed(new ActionEvent(EditNodeOptionDialog.this, e.getID(), "editNodeOption")); } dispose(); } });
/** * Handles click on warnIndicator */ @Override public void actionPerformed(ActionEvent event) { if (event.getSource() == warnIndicator) { ActionRouter.getInstance().doActionNow( new ActionEvent(event.getSource(), event.getID(), ActionNames.LOGGER_PANEL_ENABLE_DISABLE)); } }
@Override public void actionPerformed(ActionEvent e) { JTextComponent c = getFocusedComponent(); if (s.equals("Find")) { Action a = c.getActionMap().get("Find"); if (a.isEnabled()) { // generate new event to modify the source (menu item -> text component) ActionEvent ae = new ActionEvent(c, e.getID(), e.getCommand()); a.actionPerformed(ae); } } }
final public void actionPerformed(ActionEvent e) { if (!delegateActionPerformed(e)) { if (_action != null) { if (_target == null) { _action.actionPerformed(e); } else { _action.actionPerformed(new ActionEvent(getTarget(), e.getID(), e.getActionCommand(), e.getWhen(), e.getModifiers())); } } } }
@Override public void actionPerformed(ActionEvent e) { String[] source = new String[] { Help.HELP_FUNCTIONS, functionList.getText() }; ActionRouter.getInstance().doActionNow( new ActionEvent(source, e.getID(), ActionNames.HELP)); } }
public void actionPerformed(ActionEvent ae) { mal.actionPerformed(new ActionEvent(this, ae.getID(), ae.getCommand(), ae.getWhen(), ae.getModifiers() )); }
public void actionPerformed (ActionEvent e) { if (e instanceof CommandEvent) { fireObjectAction(handler, scobj, e); } else { SceneObjectActionEvent event = new SceneObjectActionEvent( e.getSource(), e.getID(), e.getActionCommand(), e.getModifiers(), scobj); fireObjectAction(handler, scobj, event); } } });
@Override public void actionPerformed(ActionEvent e) { if(e != null && e.getSource() == dce){ super.actionPerformed(new ActionEvent(getEditor(), e.getID(), e.getActionCommand(),e.getWhen(),e.getModifiers())); } else super.actionPerformed(e); }
public void redo_actionPerformed(ActionEvent e) { ActionEvent e1 = new ActionEvent(this.ids.editor.getGraph(), e.getID(), e.getActionCommand(), e.getModifiers()); if (ids.editor.getGraph()!=null){ resources.getCommonButtons().getRedo().actionPerformed(e1); ids.otherChange(); } } }
public void undo_actionPerformed(ActionEvent e) { ActionEvent e1 = new ActionEvent(this.ids.editor.getGraph(), e.getID(), e.getActionCommand(), e.getModifiers()); if (ids.editor.getGraph()!=null){ resources.getCommonButtons().getUndo().actionPerformed(e1); ids.otherChange(); } }
void delete_actionPerformed(ActionEvent e) { ActionEvent e1 = new ActionEvent(this.ids.editor.getGraph(), e.getID(), e.getActionCommand(), e.getModifiers()); if (ids.editor.getGraph()!=null){ resources.getCommonButtons().getRemove().actionPerformed(e1); ids.otherChange(); } }
public void copy_actionPerformed(ActionEvent e) { ActionEvent e1 = new ActionEvent(this.ids.editor.getGraph(), e.getID(), e.getActionCommand(), e.getModifiers()); if (ids.editor.getGraph()!=null) { (this.ids.editor.getGraph().getTransferHandler().getCopyAction()). actionPerformed(e1); } }
public void paste_actionPerformed(ActionEvent e) { ActionEvent e1 = new ActionEvent(this.ids.editor.getGraph(), e.getID(), e.getActionCommand(), e.getModifiers()); if (ids.editor.getGraph()!=null) { (this.ids.editor.getGraph().getTransferHandler().getPasteAction()). actionPerformed(e1); ids.otherChange(); } } }
static void closeProject(ActionEvent e) { GuiPackage guiPackage = GuiPackage.getInstance(); guiPackage.clearTestPlan(); JTree tree = guiPackage.getTreeListener().getJTree(); tree.setSelectionRow(0); FocusRequester.requestFocus(tree); FileServer.getFileServer().setScriptName(null); ActionRouter.getInstance().actionPerformed(new ActionEvent(e.getSource(), e.getID(), ActionNames.ADD_ALL)); } }