|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdsto.dfc.swing.commands.AbstractCommand
dsto.dfc.swing.commands.AbstractMutableCommand
dsto.dfc.swing.commands.AbstractSelectionBasedCommand
dsto.dfc.swing.commands.AbstractMoveCommand
dsto.dfc.swing.tree.CmdMoveEntry
public class CmdMoveEntry
A command that moves tree entries up/down within their parent.
| Field Summary |
|---|
| Fields inherited from class dsto.dfc.swing.commands.AbstractMoveCommand |
|---|
direction, MOVE_DOWN, MOVE_DOWN_ICON, MOVE_UP, MOVE_UP_ICON |
| 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 | |
|---|---|
CmdMoveEntry(DfcTree tree,
boolean direction)
Create a new instance. |
|
| Method Summary | |
|---|---|
void |
execute()
Execute the command. |
protected int |
getNextIndex(DfcTreeModel model,
Object parent,
int index)
|
protected void |
updateEnabled()
Override this to update the enabled property appopriately. |
| Methods inherited from class dsto.dfc.swing.commands.AbstractMoveCommand |
|---|
getAccelerator, getDescription, getGroupInView, getIcon, getMnemonic, getName, isInteractive, selectionChanged |
| 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 |
| Constructor Detail |
|---|
public CmdMoveEntry(DfcTree tree,
boolean direction)
tree - The tree to operate on.direction - The direction to move the entries (MOVE_UP or
MOVE_DOWN).| Method Detail |
|---|
public void execute()
Command
execute in interface Commandexecute in class AbstractMoveCommandprotected void updateEnabled()
AbstractMoveCommand
updateEnabled in class AbstractMoveCommand
protected int getNextIndex(DfcTreeModel model,
Object parent,
int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||