public static class HistoryBrowserInterface.InsertNodeBeforeCommand extends AbstractUndoableCommand
| Modifier and Type | Field and Description |
|---|---|
protected Node |
child
The node to be appended.
|
protected Node |
newNextSibling
The node's new next sibling.
|
protected Node |
oldNextSibling
The node's previous next sibling.
|
protected Node |
oldParent
The node's previous parent.
|
protected Node |
parent
The node's new parent.
|
name| Constructor and Description |
|---|
InsertNodeBeforeCommand(java.lang.String commandName,
Node parent,
Node sibling,
Node child)
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 oldParent
protected Node oldNextSibling
protected Node newNextSibling
protected Node parent
protected Node child
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 © 2022 Apache Software Foundation. All Rights Reserved.