dsto.dfc.swing.table
Class AbstractCustomizeRowCommand

java.lang.Object
  extended by dsto.dfc.swing.commands.AbstractCommand
      extended by dsto.dfc.swing.commands.AbstractMutableCommand
          extended by dsto.dfc.swing.commands.BasicPropertiesCommand
              extended by dsto.dfc.swing.table.AbstractCustomizeRowCommand
All Implemented Interfaces:
Command, SelectionListener, Iconic, Copyable, Disposable, PropertyEventSource, ActionListener, Cloneable, EventListener

public abstract class AbstractCustomizeRowCommand
extends BasicPropertiesCommand
implements SelectionListener, Disposable

Abstract base class for commands that customize the selected row of a table.

Version:
$Revision$

Field Summary
protected  DfcTable table
           
 
Fields inherited from class dsto.dfc.swing.commands.BasicPropertiesCommand
ICON
 
Fields inherited from class dsto.dfc.swing.commands.AbstractMutableCommand
listeners
 
Fields inherited from class dsto.dfc.swing.commands.AbstractCommand
displayName, icon
 
Fields inherited from interface dsto.dfc.swing.icons.Iconic
NULL_ICON
 
Constructor Summary
AbstractCustomizeRowCommand(DfcTable table)
           
 
Method Summary
 void dispose()
          Dispose of the object (unregister listeners, close open resources etc).
abstract  void execute()
          Execute the command.
 void selectionChanged(SelectionEvent e)
          Indicates the selection has changed in some way.
protected  void updateEnabled()
           
 
Methods inherited from class dsto.dfc.swing.commands.BasicPropertiesCommand
getDescription, getGroupInView, getIcon, getMnemonic, getName, isInteractive
 
Methods inherited from class dsto.dfc.swing.commands.AbstractMutableCommand
addPropertyChangeListener, clone, isEnabled, removePropertyChangeListener, setEnabled, setIcon
 
Methods inherited from class dsto.dfc.swing.commands.AbstractCommand
actionPerformed, canReplace, getAccelerator, getDefaultDisplayName, getDisplayName, getLargeIcon, getLogString, setDisplayName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected DfcTable table
Constructor Detail

AbstractCustomizeRowCommand

public AbstractCustomizeRowCommand(DfcTable table)
Method Detail

dispose

public void dispose()
Description copied from interface: Disposable
Dispose of the object (unregister listeners, close open resources etc). It should be safe to call this method more than once. Note for beans that support client event listeners: if there are listeners registered when this is called, this method should do nothing.

Specified by:
dispose in interface Disposable

execute

public abstract void execute()
Description copied from interface: Command
Execute the command.

Specified by:
execute in interface Command
Overrides:
execute in class BasicPropertiesCommand

updateEnabled

protected void updateEnabled()

selectionChanged

public void selectionChanged(SelectionEvent e)
Description copied from interface: SelectionListener
Indicates the selection has changed in some way.

Specified by:
selectionChanged in interface SelectionListener


Copyright © 2008 Commonwealth of Australia