dsto.dfc.swing.list
Class CmdDeleteRow
java.lang.Object
dsto.dfc.swing.commands.AbstractCommand
dsto.dfc.swing.commands.AbstractMutableCommand
dsto.dfc.swing.commands.AbstractSelectionBasedCommand
dsto.dfc.swing.commands.BasicDeleteCommand
dsto.dfc.swing.list.CmdDeleteRow
- All Implemented Interfaces:
- Command, SelectionListener, Iconic, Copyable, Disposable, PropertyEventSource, ActionListener, Cloneable, EventListener
public class CmdDeleteRow
- extends BasicDeleteCommand
Deletes the currently selected row of a list using that is
displaying a DfcListModel
.
- Version:
- $Revision$
- Author:
- Matthew Phillips
list
protected DfcList list
confirmDelete
protected boolean confirmDelete
CmdDeleteRow
public CmdDeleteRow(DfcList list)
setConfirmDelete
public void setConfirmDelete(boolean newValue)
- Enable/disable user confirmation dialog before delete.
isConfirmDelete
public boolean isConfirmDelete()
execute
public void execute()
- Description copied from interface:
Command
- Execute the command.
- Specified by:
execute
in interface Command
- Overrides:
execute
in class BasicDeleteCommand
checkDeleteOk
protected boolean checkDeleteOk()
- Return true if it is OK to delete items (check with user if confirmDelete
is true).
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