net.clackrouter.actions
Class AbstractActionRadioButton

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

public abstract class AbstractActionRadioButton
extends AbstractActionToggle

See Also:
Serialized Form

Field Summary
 java.lang.String lastActionCommand
          Contains the last Action Command
 
Fields inherited from class net.clackrouter.actions.AbstractActionToggle
abstractButtons
 
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
AbstractActionRadioButton(ClackFramework graphpad)
          Constructor for AbstractActionRadioButton.
AbstractActionRadioButton(ClackFramework graphpad, java.lang.String name)
          Constructor for AbstractActionRadioButton.
AbstractActionRadioButton(ClackFramework graphpad, java.lang.String name, javax.swing.Icon icon)
          Constructor for AbstractActionRadioButton.
 
Method Summary
protected  java.awt.Component getMenuComponent(java.lang.String actionCommand)
          Returns a JMenuItem with a link to this action.
 java.awt.Component[] getMenuComponents()
          Creates by default an arry with one entry.
abstract  java.lang.String[] getPossibleActionCommands()
           
protected  java.awt.Component getToolComponent(java.lang.String actionCommand)
          Returns a clean JButton which has a link to this action.
 java.awt.Component[] getToolComponents()
          Returns by default a list with one JButton.
 boolean isSelected(java.lang.String actionCommand)
          Should return true if the action value is true
 
Methods inherited from class net.clackrouter.actions.AbstractActionToggle
removeAbstractButton, update
 
Methods inherited from class net.clackrouter.actions.AbstractActionDefault
getCurrentDocument, getCurrentGraph, getCurrentGraphLayoutCache, getGraphpad, getName, getPresentationText, 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

lastActionCommand

public java.lang.String lastActionCommand
Contains the last Action Command

Constructor Detail

AbstractActionRadioButton

public AbstractActionRadioButton(ClackFramework graphpad)
Constructor for AbstractActionRadioButton.

Parameters:
graphpad -

AbstractActionRadioButton

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

Parameters:
graphpad -
name -

AbstractActionRadioButton

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

Parameters:
graphpad -
name -
icon -
Method Detail

getPossibleActionCommands

public abstract java.lang.String[] getPossibleActionCommands()

getMenuComponents

public java.awt.Component[] getMenuComponents()
Description copied from class: AbstractActionDefault
Creates by default an arry with one entry. The entry contains a JMenuItem which joins the instance of this Action.

Overrides:
getMenuComponents in class AbstractActionDefault
See Also:
AbstractActionDefault.getMenuComponents()

getToolComponents

public java.awt.Component[] getToolComponents()
Description copied from class: AbstractActionDefault
Returns by default a list with one JButton. The button joints this action.

Overrides:
getToolComponents in class AbstractActionDefault
See Also:
AbstractActionDefault.getToolComponents()

getMenuComponent

protected java.awt.Component getMenuComponent(java.lang.String actionCommand)
Description copied from class: AbstractActionDefault
Returns a JMenuItem with a link to this action.

Overrides:
getMenuComponent in class AbstractActionDefault
See Also:
AbstractActionDefault.getMenuComponents()

getToolComponent

protected java.awt.Component getToolComponent(java.lang.String actionCommand)
Description copied from class: AbstractActionDefault
Returns a clean JButton which has a link to this action.

Overrides:
getToolComponent in class AbstractActionDefault
See Also:
AbstractActionDefault.getToolComponent(String)

isSelected

public boolean isSelected(java.lang.String actionCommand)
Description copied from class: AbstractActionToggle
Should return true if the action value is true

Specified by:
isSelected in class AbstractActionToggle
See Also:
AbstractActionToggle.isSelected(String)