public void run() { actionPerformed(evt, target); } });
public static void performAction(Action a, ActionEvent evt, JTextComponent target) { if (a instanceof BaseAction) { ((BaseAction) a).actionPerformed(evt, target); } else { a.actionPerformed(evt); } }
public static void performAction(Action a, ActionEvent evt, JTextComponent target) { if (a instanceof BaseAction) { ((BaseAction)a).actionPerformed(evt, target); } else { a.actionPerformed(evt); } }
public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { for (int i = 0; i < actions.length; i++) { Action a = actions[i]; if (a instanceof BaseAction) { ((BaseAction)a).actionPerformed(evt, target); } else { a.actionPerformed(evt); } } } } }
public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { for (int i = 0; i < actions.length; i++) { Action a = actions[i]; if (a instanceof BaseAction) { ((BaseAction) a).actionPerformed(evt, target); } else { a.actionPerformed(evt); } } } } }
public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { BaseKit kit = Utilities.getKit(target); if (kit != null) { for (int i = 0; i < actionNames.length; i++) { Action a = kit.getActionByName(actionNames[i]); if (a != null) { if (a instanceof BaseAction) { ((BaseAction)a).actionPerformed(evt, target); } else { a.actionPerformed(evt); } } } } } } }
public void actionPerformed(ActionEvent evt, JTextComponent target) { if (target != null) { BaseKit kit = Utilities.getKit(target); if (kit != null) { for (int i = 0; i < actionNames.length; i++) { Action a = kit.getActionByName(actionNames[i]); if (a != null) { if (a instanceof BaseAction) { ((BaseAction) a).actionPerformed(evt, target); } else { a.actionPerformed(evt); } } } } } } }
/** * This method is made final here as there's an important processing that * must be done before the real action functionality is performed. It can * include the following: 1. Updating of the target component depending on * the update mask given in action constructor. 2. Possible macro recoding * when the macro recording is turned on. The real action functionality * should be done in the method actionPerformed(ActionEvent evt, * JTextComponent target) which must be redefined by the target action. */ public final void actionPerformed(ActionEvent evt) { JTextComponent target = getTextComponent(evt); if (recording && 0 == (updateMask & NO_RECORDING)) { recordAction(target, evt); } updateComponent(target); actionPerformed(evt, target); }
if (originalAction != null && !isUsingCamelCase()) { if (originalAction instanceof BaseAction) { ((BaseAction) originalAction).actionPerformed(evt, target); } else { originalAction.actionPerformed(evt);
if (originalAction != null && !isUsingCamelCase()) { if (originalAction instanceof BaseAction) { ((BaseAction) originalAction).actionPerformed(evt, target); } else { originalAction.actionPerformed(evt);
/** This method is made final here as there's an important * processing that must be done before the real action * functionality is performed. It can include the following: * 1. Updating of the target component depending on the update * mask given in action constructor. * 2. Possible macro recoding when the macro recording * is turned on. * The real action functionality should be done in * the method actionPerformed(ActionEvent evt, JTextComponent target) * which must be redefined by the target action. */ public final void actionPerformed(final ActionEvent evt) { final JTextComponent target = getTextComponent(evt); if( recording && 0 == (updateMask & NO_RECORDING) ) { recordAction( target, evt ); } updateComponent(target); if (asynchonous()) { RequestProcessor.getDefault().post(new Runnable () { public void run() { actionPerformed(evt, target); } }); } else { actionPerformed(evt, target); } }
if( a instanceof BaseAction ) { ((BaseAction)a).updateComponent(target); ((BaseAction)a).actionPerformed( newEvt, target ); } else { a.actionPerformed( newEvt ); if( a instanceof BaseAction ) { ((BaseAction)a).updateComponent(target); ((BaseAction)a).actionPerformed( fakeEvt, target ); } else { a.actionPerformed( fakeEvt );
if (a instanceof BaseAction) { ((BaseAction) a).updateComponent(target); ((BaseAction) a).actionPerformed(newEvt, target); if (a instanceof BaseAction) { ((BaseAction) a).updateComponent(target); ((BaseAction) a).actionPerformed(fakeEvt, target);
private void performDefaultAction(ActionEvent evt, JTextComponent target) { BaseAction action = (BaseAction) CslActions.createToggleBlockCommentAction(); if (getValue(FORCE_COMMENT) != null) { action.putValue(FORCE_COMMENT, getValue(FORCE_COMMENT)); } if (getValue(FORCE_UNCOMMENT) != null) { action.putValue(FORCE_UNCOMMENT, getValue(FORCE_UNCOMMENT)); } action.actionPerformed(evt, target); }