VLab Common 1.2

pl.psnc.vlab.util.gui.action
Class LocalizedAbstractAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by pl.psnc.vlab.util.gui.action.AbstractActionDefault
          extended by pl.psnc.vlab.util.gui.action.LocalizedAbstractAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, ActionDecorator
Direct Known Subclasses:
LocalizedObservableAbstractAction

public abstract class LocalizedAbstractAction
extends AbstractActionDefault

LocalizedAbstractAction class - provides default implementation for the JFC Action interface with the localised text descriptions.

Author:
Dominik Stoklosa (~osa~)
See Also:
Serialized Form
Email address
osa@man.poznan.pl

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface pl.psnc.vlab.util.gui.action.ActionDecorator
DISABLED_ICON, PARENT_OBJECT
 
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
LocalizedAbstractAction(java.lang.String nameKey, java.lang.String iconPath, java.lang.String description)
          Define an Action Object with a specified action name, icon and short description.
 
Method Summary
abstract  java.lang.String getBundle()
          Get bundle with the i18n keys for the given exception
 void setAcceleratorKey(java.lang.String acceleratorKey)
          Set Accelerator key.
 void setDisabledActionIcon(java.lang.String iconPath)
          Set disabled icon
 void setMnemonic(java.lang.String mnemonicKey)
          Set mnemonic key for the given action
 void setShortDescription(java.lang.String description)
          Set short description for this ActionDecorator
 
Methods inherited from class pl.psnc.vlab.util.gui.action.AbstractActionDefault
actionPerformed, addSource, getDisabledActionIcon, getName, getShortDescription, getSources, setDisabledActionIcon, setIcon, setMnemonic, setName
 
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
 

Constructor Detail

LocalizedAbstractAction

public LocalizedAbstractAction(java.lang.String nameKey,
                               java.lang.String iconPath,
                               java.lang.String description)
Define an Action Object with a specified action name, icon and short description.

Parameters:
nameKey - name of the action
iconPath - the icon for the current action
description - action short description
Method Detail

getBundle

public abstract java.lang.String getBundle()
Get bundle with the i18n keys for the given exception

Returns:
bundle name for the given exception

setShortDescription

public void setShortDescription(java.lang.String description)
Description copied from interface: ActionDecorator
Set short description for this ActionDecorator

Specified by:
setShortDescription in interface ActionDecorator
Overrides:
setShortDescription in class AbstractActionDefault
Parameters:
description - short description

setAcceleratorKey

public void setAcceleratorKey(java.lang.String acceleratorKey)
Description copied from interface: ActionDecorator
Set Accelerator key. The key used for storing a KeyStroke to be used as the accelerator for the action.

Specified by:
setAcceleratorKey in interface ActionDecorator
Overrides:
setAcceleratorKey in class AbstractActionDefault
Parameters:
acceleratorKey - accelerator

setMnemonic

public void setMnemonic(java.lang.String mnemonicKey)
Set mnemonic key for the given action

Parameters:
mnemonicKey -

setDisabledActionIcon

public void setDisabledActionIcon(java.lang.String iconPath)
Set disabled icon

Parameters:
iconPath - path to the disabled icon

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.