org.argouml.uml.diagram.ui
Class RadioAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byorg.tigris.toolbar.toolbutton.AbstractButtonAction
          extended byorg.argouml.uml.diagram.ui.RadioAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, org.tigris.toolbar.toolbutton.ModalAction, Serializable

public class RadioAction
extends org.tigris.toolbar.toolbutton.AbstractButtonAction

A wrapper around a standard action to indicate that any buttons created from this actions should act like radio buttons, i.e. that when the toolbar buttons are double-clicked, they remain active, and every click on the diagram will place a new modelelement.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private  Action realAction
           
 
Fields inherited from class org.tigris.toolbar.toolbutton.AbstractButtonAction
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
RadioAction(Action action)
           
 
Method Summary
 void actionPerformed(ActionEvent actionEvent)
           
 Action getAction()
           
 
Methods inherited from class org.tigris.toolbar.toolbutton.AbstractButtonAction
getIcon, getName, isDoubleClick
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

realAction

private Action realAction
Constructor Detail

RadioAction

public RadioAction(Action action)
Parameters:
action - the action
Method Detail

actionPerformed

public void actionPerformed(ActionEvent actionEvent)
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

getAction

public Action getAction()
Returns:
the action


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook