net.sf.sdedit.ui.components.configuration
Class ConfigurationAction<T extends DataObject>

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by net.sf.sdedit.ui.components.configuration.ConfigurationAction<T>
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, Runnable, EventListener, Action

public abstract class ConfigurationAction<T extends DataObject>
extends AbstractAction
implements Runnable

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
ConfigurationAction(String property, String name, String tooltip, String icon)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected abstract  Bean<T> getBean()
           
 void run()
           
 void setButton(AbstractButton button)
           
 void update()
           
 
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

ConfigurationAction

public ConfigurationAction(String property,
                           String name,
                           String tooltip,
                           String icon)
Method Detail

getBean

protected abstract Bean<T> getBean()

setButton

public void setButton(AbstractButton button)

update

public void update()

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2011. All Rights Reserved.