public static class HistoryBrowser.DocumentCommandController extends Object implements HistoryBrowser.CommandController
| Modifier and Type | Field and Description |
|---|---|
protected DOMViewerController |
controller
The DOMViewerController.
|
protected int |
state
The current state of the command controller.
|
| Constructor and Description |
|---|
DocumentCommandController(DOMViewerController controller)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(UndoableCommand command)
Wrapps the execute method.
|
int |
getState()
Gets the state of the command controller.
|
void |
redo(UndoableCommand command)
Wrapps the redo method.
|
void |
undo(UndoableCommand command)
Wrapps the undo method.
|
protected DOMViewerController controller
protected int state
public DocumentCommandController(DOMViewerController controller)
controller - The DOMViewerControllerpublic void execute(UndoableCommand command)
HistoryBrowser.CommandControllerexecute in interface HistoryBrowser.CommandControllerpublic void undo(UndoableCommand command)
HistoryBrowser.CommandControllerundo in interface HistoryBrowser.CommandControllerpublic void redo(UndoableCommand command)
HistoryBrowser.CommandControllerredo in interface HistoryBrowser.CommandControllerpublic int getState()
HistoryBrowser.CommandControllergetState in interface HistoryBrowser.CommandControllerCopyright © 2000–2020 Apache Software Foundation. All rights reserved.