org.psychomad.psycholib.ui
Class EasyActions

java.lang.Object
  extended by org.psychomad.psycholib.ui.EasyActions

public abstract class EasyActions
extends java.lang.Object

This class ease the creation of Actions.


Field Summary
protected  java.util.Hashtable<java.lang.String,javax.swing.Action> commands
          Hashtable containing the commands.
 
Constructor Summary
EasyActions()
          The coonstructor instanciate required components.
 
Method Summary
 javax.swing.Action getAction(java.lang.String cmd)
          Allow to retrieve an action from the whole set of available action.
abstract  javax.swing.Action[] getActions()
          Fetch the list of actions supported by this application.
protected abstract  void updateStateActions()
          This method is able to decide which action is enabled or disable in the current state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commands

protected java.util.Hashtable<java.lang.String,javax.swing.Action> commands
Hashtable containing the commands. The keys are the default action name.

Constructor Detail

EasyActions

public EasyActions()
The coonstructor instanciate required components.

Method Detail

getActions

public abstract javax.swing.Action[] getActions()
Fetch the list of actions supported by this application. It is implemented to return the list of the actions defined locally.


getAction

public javax.swing.Action getAction(java.lang.String cmd)
Allow to retrieve an action from the whole set of available action.


updateStateActions

protected abstract void updateStateActions()
This method is able to decide which action is enabled or disable in the current state.



Copyright 2006 null. All Rights Reserved.