UndoableCommandHistoryBrowserInterface.CompoundUpdateCommandpublic abstract class AbstractCompoundCommand extends AbstractUndoableCommand
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.ArrayList |
atomCommands |
The atom UndoableCommand command list.
|
name| Constructor | Description |
|---|---|
AbstractCompoundCommand() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addCommand(UndoableCommand command) |
Adds the given command to the atomCommand list.
|
void |
execute() |
Executes this command.
|
int |
getCommandNumber() |
Returns the command number that this compound command contains.
|
void |
redo() |
Performs redo for this command.
|
boolean |
shouldExecute() |
Tests if the command can be executed.
|
void |
undo() |
Performs undo for this command.
|
getName, setNameprotected java.util.ArrayList atomCommands
public void addCommand(UndoableCommand command)
command - The given commandpublic void execute()
UndoableCommandexecute in interface UndoableCommandexecute in class AbstractUndoableCommandpublic void undo()
UndoableCommandundo in interface UndoableCommandundo in class AbstractUndoableCommandpublic void redo()
UndoableCommandredo in interface UndoableCommandredo in class AbstractUndoableCommandpublic boolean shouldExecute()
UndoableCommandshouldExecute in interface UndoableCommandshouldExecute in class AbstractUndoableCommandpublic int getCommandNumber()
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.