Ejemplo n.º 1
0
 /**
  * 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);
   }
 }
Ejemplo n.º 2
0
 /**
  * Allows binding a listener to user selection actions
  *
  * @param l the action listener to be removed
  */
 public void removeActionListener(ActionListener l) {
   dispatcher.removeListener(l);
 }
Ejemplo n.º 3
0
 /**
  * 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();
 }
Ejemplo n.º 4
0
 /**
  * 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();
 }
Ejemplo n.º 5
0
 /**
  * Allows binding a listener to user selection actions
  *
  * @param l the action listener to be added
  */
 public void addActionListener(ActionListener l) {
   dispatcher.addListener(l);
 }