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) { arrowActionListener.actionPerformed( new ActionEvent(this, ActionEvent.ACTION_PERFORMED, evt.getActionCommand(), evt.getWhen(), evt.getModifiers() ) ); } //}}}
public void actionPerformed(ActionEvent e) { final MouseEvent newMouseEvent = new MouseEvent(me.getComponent(),me.getID(), e.getWhen(), me.getModifiers(), me.getX(), me.getY(), clickCounter, me.isPopupTrigger(), button); delegate.mouseClicked(newMouseEvent); timer = null; } });
public void actionPerformed(ActionEvent e) { e = new ActionEvent( this, ActionEvent.ACTION_PERFORMED, e.getActionCommand(), e.getWhen(), e.getModifiers()); mal.actionPerformed(e); }
public void onEvent(Object event) { if (actionListener != null) { ActionEvent ae = (ActionEvent) event; ActionEvent newEvent = new ActionEvent(ae.getSource(), ae.getID(), actionName, ae.getWhen(), ae.getModifiers()); actionListener.actionPerformed(newEvent); } }
@Override public void actionPerformed(final ActionEvent e) { final MouseEvent me = new MouseEvent((Component) e.getSource(), MouseEvent.MOUSE_CLICKED, e.getWhen(), MouseEvent.MOUSE_PRESSED, 0, 0, 0, true); helpActionMouseListener.mousePressed(me); } };
public CommandActionEvent(ActionEvent e, CustomCommand command) { super(e.getSource(), e.getID(), e.getActionCommand(), e.getWhen(), e.getModifiers()); this.command = command; }
private void onModeChanged(ActionEvent e) { _actionListener.actionPerformed(new ActionEvent(this, e.getID(), e.getActionCommand(), e.getWhen(), e.getModifiers())); }
public MRUActionEvent(Object sourceMRU, ActionEvent orig) { super(orig.getSource(), orig.getID(), orig.getActionCommand(), orig.getWhen(), orig.getModifiers()); this.sourceMRU = sourceMRU; }
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 protected void fireActionPerformed (ActionEvent e) { if (_event != null) { _event.setWhen(e.getWhen()); e = _event; } super.fireActionPerformed(e); }
public void actionPerformed(ActionEvent evt) { getDesignerPane().escape(evt.getWhen()); } } // End of EscapeAction.
public void actionPerformed( ActionEvent e ){ fireActionEvent( new ActionEvent( action, e.getID(), e.getActionCommand(), e.getWhen(), e.getModifiers() )); } }
@Override public void actionPerformed(ActionEvent e) { //System.err.println("actionPerformed: " + option); 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 invokeDeleteNextCharAction(ActionEvent evt) { DesignerPane designerPane = webform.getPane(); Action[] actions = designerPane.getActions(); for (Action action : actions) { if (action != null && action.getValue(Action.NAME) == DesignerPaneBase.deleteNextCharAction) { // XXX Pretend the event originated from the DesignerPane, otherwise the action wouldn't work. ActionEvent fakeEvt = new ActionEvent( designerPane, evt.getID(), evt.getActionCommand(), evt.getWhen(), evt.getModifiers()); action.actionPerformed(fakeEvt); break; } } }
public void actionPerformed ( ActionEvent actionEvent ) { StreamElement streamElement = new StreamElement( EMPTY_FIELD_LIST , EMPTY_FIELD_TYPES , EMPTY_DATA_PART , actionEvent.getWhen( ) ); if(delayPostingElements){ streamElementBuffer.add(streamElement); synchronized(objectLock){ objectLock.notifyAll(); } } else postStreamElement( streamElement ); }
public void actionPerformed(ActionEvent ae) { mal.actionPerformed(new ActionEvent(this, ae.getID(), ae.getCommand(), ae.getWhen(), ae.getModifiers() )); }
@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); }
private void sendButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendButtonActionPerformed KeyEvent e = new KeyEvent((Component) evt.getSource(),evt.getID(), evt.getWhen(), evt.getModifiers(), KeyEvent.VK_ENTER, '\n'); keyTyped(e); outbox.requestFocus(); }//GEN-LAST:event_sendButtonActionPerformed