|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
pl.psnc.vlab.util.gui.action.AbstractActionDefault
pl.psnc.vlab.util.gui.action.LocalizedAbstractAction
public abstract class LocalizedAbstractAction
LocalizedAbstractAction
class - provides default implementation for
the JFC Action interface with the localised text descriptions.
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 |
---|
public LocalizedAbstractAction(java.lang.String nameKey, java.lang.String iconPath, java.lang.String description)
nameKey
- name of the actioniconPath
- the icon for the current actiondescription
- action short descriptionMethod Detail |
---|
public abstract java.lang.String getBundle()
public void setShortDescription(java.lang.String description)
ActionDecorator
setShortDescription
in interface ActionDecorator
setShortDescription
in class AbstractActionDefault
description
- short descriptionpublic void setAcceleratorKey(java.lang.String acceleratorKey)
ActionDecorator
setAcceleratorKey
in interface ActionDecorator
setAcceleratorKey
in class AbstractActionDefault
acceleratorKey
- acceleratorpublic void setMnemonic(java.lang.String mnemonicKey)
mnemonicKey
- public void setDisabledActionIcon(java.lang.String iconPath)
iconPath
- path to the disabled icon
|
VLab Common 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |