org.psychomad.psycholib.ui
Class EasyAbstractAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.psychomad.psycholib.ui.EasyAbstractAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, EasyAbstractActionValues

public abstract class EasyAbstractAction
extends javax.swing.AbstractAction
implements EasyAbstractActionValues

This class represent action that can be used in application. Furthermore it provide convenienci tools for the creation like retreiving in the properties files the icon, name, tooltip and accelerator for the key.

See Also:
Serialized Form

Field Summary
static java.lang.String GROUP
          The group of action (enable to get a better interface in toolbar)
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface org.psychomad.psycholib.ui.EasyAbstractActionValues
ACTION_SUFFIX, GROUP_SUFFIX, IMAGE_SUFFIX, KEY_STROKE_SUFFIX, LABEL_SUFFIX, MNEMONIC_SUFFIX, TOOL_TIP_SUFFIX
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
EasyAbstractAction(java.lang.String actionName, Config config, Resources resources)
          Construct a EasyAbstractAction object with all the values correctly set, ie uses the name pass in arg to retreive all infos (image,tooltip,shortkey) from the properties files and correctly update the action.
 
Method Summary
 
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

GROUP

public static final java.lang.String GROUP
The group of action (enable to get a better interface in toolbar)

See Also:
Constant Field Values
Constructor Detail

EasyAbstractAction

public EasyAbstractAction(java.lang.String actionName,
                          Config config,
                          Resources resources)
Construct a EasyAbstractAction object with all the values correctly set, ie uses the name pass in arg to retreive all infos (image,tooltip,shortkey) from the properties files and correctly update the action.

Parameters:
actionName - the default action name which is used to retreive infos in the properties files.


Copyright 2006 null. All Rights Reserved.