/** * Triggers the event to the listeners * * @param evt the event to fire */ protected void fireActionEvent(ActionEvent evt) { if (isEnabled() && !Display.getInstance().hasDragOccured()) { dispatcher.fireActionEvent(evt); } }
/** * Allows binding a listener to user selection actions * * @param l the action listener to be removed */ public void removeActionListener(ActionListener l) { dispatcher.removeListener(l); }
/** * This method allows extracting the action listeners from the current list * * @return vector containing the action listeners on the list * @deprecated use getListeners instead */ public Vector getActionListeners() { return dispatcher.getListenerVector(); }
/** * This method allows extracting the action listeners from the current list * * @return Collection containing the action listeners on the list */ public Collection getListeners() { return dispatcher.getListenerCollection(); }
/** * Allows binding a listener to user selection actions * * @param l the action listener to be added */ public void addActionListener(ActionListener l) { dispatcher.addListener(l); }