net.clackrouter.actions
Class AbstractActionToggle

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.clackrouter.actions.AbstractActionDefault
          extended by net.clackrouter.actions.AbstractActionToggle
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, TranslatorConstants
Direct Known Subclasses:
AbstractActionCheckBox, AbstractActionRadioButton

public abstract class AbstractActionToggle
extends AbstractActionDefault

See Also:
Serialized Form

Field Summary
protected  java.util.Vector<javax.swing.AbstractButton> abstractButtons
          Container with abstract buttons of this type
 
Fields inherited from class net.clackrouter.actions.AbstractActionDefault
graphpad
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface net.clackrouter.jgraph.pad.resources.TranslatorConstants
PREFIX_COMPONENT, PREFIX_MESSAGE_ERROR, PREFIX_MESSAGE_INFORMATION, PREFIX_MESSAGE_WARING, SUFFIX_ACCELERATOR, SUFFIX_ACTION, SUFFIX_ICON, SUFFIX_IMAGE, SUFFIX_LABEL, SUFFIX_MENU, SUFFIX_MNEMONIC, SUFFIX_TEXT, SUFFIX_TITLE, SUFFIX_TOOL_TIP_TEXT
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AbstractActionToggle(ClackFramework graphpad)
          Constructor for AbstractActionToggle.
AbstractActionToggle(ClackFramework graphpad, java.lang.String name)
          Constructor for AbstractActionToggle.
AbstractActionToggle(ClackFramework graphpad, java.lang.String name, javax.swing.Icon icon)
          Constructor for AbstractActionToggle.
 
Method Summary
abstract  boolean isSelected(java.lang.String actionCommand)
          Should return true if the action value is true
 void removeAbstractButton(javax.swing.AbstractButton button)
          removes the abstract action from the action control
 void update()
          updates all Abstract Buttons from this action
 
Methods inherited from class net.clackrouter.actions.AbstractActionDefault
getCurrentDocument, getCurrentGraph, getCurrentGraphLayoutCache, getGraphpad, getMenuComponent, getMenuComponents, getName, getPresentationText, getToolComponent, getToolComponents, setGraphpad, setSelectionAttributes
 
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
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

abstractButtons

protected java.util.Vector<javax.swing.AbstractButton> abstractButtons
Container with abstract buttons of this type

Constructor Detail

AbstractActionToggle

public AbstractActionToggle(ClackFramework graphpad)
Constructor for AbstractActionToggle.

Parameters:
graphpad -

AbstractActionToggle

public AbstractActionToggle(ClackFramework graphpad,
                            java.lang.String name)
Constructor for AbstractActionToggle.

Parameters:
graphpad -
name -

AbstractActionToggle

public AbstractActionToggle(ClackFramework graphpad,
                            java.lang.String name,
                            javax.swing.Icon icon)
Constructor for AbstractActionToggle.

Parameters:
graphpad -
name -
icon -
Method Detail

update

public void update()
updates all Abstract Buttons from this action

Overrides:
update in class AbstractActionDefault

removeAbstractButton

public void removeAbstractButton(javax.swing.AbstractButton button)
removes the abstract action from the action control


isSelected

public abstract boolean isSelected(java.lang.String actionCommand)
Should return true if the action value is true