org.dishevelled.identify
Class IdentifiableAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
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
protected IdentifiableAction(String name, IconBundle iconBundle)
          Create a new abstract identifiable action with the specified name and icon bundle.
 
Method Summary
 IconBundle getIconBundle()
          Return the icon bundle for this identifiable object.
 String getName()
          Return the name of this identifiable object.
 void setIconBundle(IconBundle iconBundle)
          Set the icon bundle for this identifiable action to iconBundle.
 
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
 

Constructor Detail

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 action
iconBundle - icon bundle for this identifiable action, must not be null
Method Detail

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).