org.oddjob.arooa.design.actions
Class AbstractArooaAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.oddjob.arooa.design.actions.AbstractArooaAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, ArooaAction
Direct Known Subclasses:
JobSwingAction

public abstract class AbstractArooaAction
extends AbstractAction
implements ArooaAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface org.oddjob.arooa.design.actions.ArooaAction
VISIBLE_PROPERTY
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AbstractArooaAction()
          Defines an Action object with a default description string and default icon.
AbstractArooaAction(String name)
          Defines an Action object with the specified description string and a default icon.
AbstractArooaAction(String name, Icon icon)
          Defines an Action object with the specified description string and a the specified icon.
 
Method Summary
 boolean isVisible()
          Returns true if the action is visible.
 void setVisible(boolean newValue)
          Make the action visible or invisible.
 
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 javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

AbstractArooaAction

public AbstractArooaAction()
Defines an Action object with a default description string and default icon.


AbstractArooaAction

public AbstractArooaAction(String name)
Defines an Action object with the specified description string and a default icon.


AbstractArooaAction

public AbstractArooaAction(String name,
                           Icon icon)
Defines an Action object with the specified description string and a the specified icon.

Method Detail

isVisible

public boolean isVisible()
Returns true if the action is visible.

Specified by:
isVisible in interface ArooaAction
See Also:
ArooaAction#isVisible.
Returns:
true if the action is visible, false otherwise

setVisible

public void setVisible(boolean newValue)
Make the action visible or invisible.

Specified by:
setVisible in interface ArooaAction
See Also:
ArooaAction.setVisible(boolean)
Parameters:
newValue - true to make the action visible, false to make it invisible.