org.hd.d.pg2k.clApp.atHome
Class JLFAbstractAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.hd.d.pg2k.clApp.atHome.JLFAbstractAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
AboutAction, ExitAction

abstract class JLFAbstractAction
extends javax.swing.AbstractAction

Abstract Action for the JLF. Defines some useful methods.


Field Summary
static java.lang.String LARGE_ICON
          The key used for storing a large icon for the action, used for toolbar buttons.
private  javax.swing.event.EventListenerList listeners
           
 
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
JLFAbstractAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Forwards the ActionEvent to the registered listener.
 void addActionListener(java.awt.event.ActionListener l)
           
 java.lang.String getActionCommand()
          Gets the value from the key Action.ACTION_COMMAND_KEY
 java.lang.String getLongDescription()
          Gets the value from the key Action.LONG_DESCRIPTION
 java.lang.String getShortDescription()
          Gets the value from the key Action.SHORT_DESCRIPTION
 void removeActionListener(java.awt.event.ActionListener l)
           
 
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
 

Field Detail

listeners

private javax.swing.event.EventListenerList listeners

LARGE_ICON

public static final java.lang.String LARGE_ICON
The key used for storing a large icon for the action, used for toolbar buttons.

Note: Eventually this key belongs in the javax.swing.Action interface.

See Also:
Constant Field Values
Constructor Detail

JLFAbstractAction

JLFAbstractAction()
Method Detail

getActionCommand

public java.lang.String getActionCommand()
Gets the value from the key Action.ACTION_COMMAND_KEY


getShortDescription

public java.lang.String getShortDescription()
Gets the value from the key Action.SHORT_DESCRIPTION


getLongDescription

public java.lang.String getLongDescription()
Gets the value from the key Action.LONG_DESCRIPTION


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Forwards the ActionEvent to the registered listener.


addActionListener

public void addActionListener(java.awt.event.ActionListener l)

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)

DHD Multimedia Gallery V1.50.55

Copyright (c) 1996-2008, Damon Hart-Davis. All rights reserved.