public class WindowResizeUndoAction extends java.lang.Object implements UndoManager.UndoAction
| Constructor and Description |
|---|
WindowResizeUndoAction(TopLevelContainer window,
java.awt.Dimension oldSize,
java.awt.Dimension newSize) |
| Modifier and Type | Method and Description |
|---|---|
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 WindowResizeUndoAction(TopLevelContainer window, java.awt.Dimension oldSize, java.awt.Dimension newSize)
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