public static class AbstractLayoutTool.ZOrderChangeUndoAction extends java.lang.Object implements UndoManager.UndoAction
| Constructor and Description |
|---|
ZOrderChangeUndoAction(DesignableDelegate delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChange(javax.swing.JComponent item,
int oldPosition,
int newPosition) |
boolean |
execute()
This function executes (redoes) the action
|
java.lang.String |
getDescription()
The description of the action will be used to determine grouping equality as well as for display purposes.
|
boolean |
isGroupSequenceIndependent()
This function should return true if a group of these actions can be undone by ONLY calling undo() on the
first action in the group, and redone by ONLY calling execute() on the last action in the group.
|
boolean |
undo()
This function will reverse the action
|
public ZOrderChangeUndoAction(DesignableDelegate delegate)
public void addChange(javax.swing.JComponent item,
int oldPosition,
int newPosition)
public java.lang.String getDescription()
UndoManager.UndoActiongetDescription in interface UndoManager.UndoActionpublic boolean undo()
UndoManager.UndoActionundo in interface UndoManager.UndoActionpublic boolean execute()
UndoManager.UndoActionexecute in interface UndoManager.UndoActionpublic boolean isGroupSequenceIndependent()
UndoManager.UndoActionisGroupSequenceIndependent in interface UndoManager.UndoAction