org.dishevelled.identify
Class IdentifiableAction
java.lang.Object
javax.swing.AbstractAction
org.dishevelled.identify.IdentifiableAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action, Identifiable
public abstract class IdentifiableAction
- extends AbstractAction
- implements Identifiable
Abstract identifiable action.
- Version:
- $Revision: 1059 $ $Date: 2012-01-03 14:03:02 -0600 (Tue, 03 Jan 2012) $
- Author:
- Michael Heuer
- See Also:
- Serialized Form
| 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 |
IdentifiableAction
protected IdentifiableAction(String name,
IconBundle iconBundle)
- Create a new abstract identifiable action with the specified name
and icon bundle.
- Parameters:
name - name for this identifiable actioniconBundle - icon bundle for this identifiable action, must
not be null
setIconBundle
public final void setIconBundle(IconBundle iconBundle)
- Set the icon bundle for this identifiable action to
iconBundle.
This is a bound property.
- Parameters:
iconBundle - icon bundle for this identifiable action, must not be null
getName
public final String getName()
- Return the name of this identifiable object.
- Specified by:
getName in interface Identifiable
- Returns:
- the name of this identifiable object
getIconBundle
public final IconBundle getIconBundle()
- Return the icon bundle for this identifiable object.
- Specified by:
getIconBundle in interface Identifiable
- Returns:
- the icon bundle for this identifiable object
Copyright (c) 2003-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).