public static class HistoryBrowserInterface.AppendChildCommand extends AbstractUndoableCommand
| Modifier and Type | Field and Description |
|---|---|
protected Node |
childNode
The node to be appended.
|
protected Node |
oldNextSibling
The node's previous next sibling.
|
protected Node |
oldParentNode
The node's previous parent.
|
protected Node |
parentNode
The node's new parent.
|
name| Constructor and Description |
|---|
AppendChildCommand(String commandName,
Node parentNode,
Node childNode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes this command.
|
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 Node oldParentNode
protected Node oldNextSibling
protected Node parentNode
protected Node childNode
public 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 AbstractUndoableCommandCopyright © 2000–2021 Apache Software Foundation. All rights reserved.