dsto.dfc.swing.table
Class CmdDeleteRows

java.lang.Object
  extended by dsto.dfc.swing.commands.AbstractCommand
      extended by dsto.dfc.swing.commands.AbstractMutableCommand
          extended by dsto.dfc.swing.commands.AbstractSelectionBasedCommand
              extended by dsto.dfc.swing.commands.BasicDeleteCommand
                  extended by dsto.dfc.swing.table.CmdDeleteRows
All Implemented Interfaces:
Command, SelectionListener, Iconic, Copyable, Disposable, PropertyEventSource, ActionListener, Cloneable, EventListener
Direct Known Subclasses:
MapTableView.CmdDeleteProperty

public class CmdDeleteRows
extends BasicDeleteCommand

Delete selected rows.

Version:
$Revision$

Field Summary
protected  DfcTable table
           
 
Fields inherited from class dsto.dfc.swing.commands.AbstractSelectionBasedCommand
source
 
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
CmdDeleteRows(DfcTable table)
           
 
Method Summary
 void execute()
          Execute the command.
 String getDescription()
          A short description of the command, suitable for a tooltip or use in a status panel.
 String getName()
          The formal identifying name for this command (eg edit.Copy, file.Open).
 void selectionChanged(SelectionEvent e)
          SelectionListener interface implementation: does nothing.
protected  void updateEnabled()
           
 
Methods inherited from class dsto.dfc.swing.commands.BasicDeleteCommand
getAccelerator, getGroupInView, getIcon, getMnemonic, isInteractive
 
Methods inherited from class dsto.dfc.swing.commands.AbstractSelectionBasedCommand
dispose
 
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, 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

CmdDeleteRows

public CmdDeleteRows(DfcTable table)
Method Detail

execute

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

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

getName

public String getName()
Description copied from interface: Command
The formal identifying name for this command (eg edit.Copy, file.Open). This must not change during the lifetime of a command instance.

Specified by:
getName in interface Command
Specified by:
getName in interface Iconic
Overrides:
getName in class BasicDeleteCommand

getDescription

public String getDescription()
Description copied from interface: Command
A short description of the command, suitable for a tooltip or use in a status panel.

Specified by:
getDescription in interface Command
Overrides:
getDescription in class BasicDeleteCommand

updateEnabled

protected void updateEnabled()

selectionChanged

public void selectionChanged(SelectionEvent e)
Description copied from class: AbstractSelectionBasedCommand
SelectionListener interface implementation: does nothing.

Specified by:
selectionChanged in interface SelectionListener
Overrides:
selectionChanged in class AbstractSelectionBasedCommand


Copyright © 2008 Commonwealth of Australia