pivot.wtk
Class Action

java.lang.Object
  extended by pivot.wtk.Action

public abstract class Action
extends java.lang.Object

Abstract base class for "actions". Actions are common application behaviors generally triggered by buttons and keyboard shortcuts.

Author:
gbrown

Nested Class Summary
static class Action.ActionDictionary
          Action dictionary implementation.
 
Constructor Summary
Action()
           
Action(java.lang.String id)
           
 
Method Summary
 ListenerList<ActionListener> getActionListeners()
           
static Action.ActionDictionary getActions()
           
abstract  java.lang.String getDescription()
          Returns a text description of the action.
 java.lang.String getID()
           
 boolean isEnabled()
           
abstract  void perform()
          Performs the action.
 void setEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Action

public Action()

Action

public Action(java.lang.String id)
Method Detail

getID

public java.lang.String getID()

getDescription

public abstract java.lang.String getDescription()
Returns a text description of the action.


perform

public abstract void perform()
Performs the action.


isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

getActions

public static Action.ActionDictionary getActions()

getActionListeners

public ListenerList<ActionListener> getActionListeners()