public static class HistoryBrowser.DocumentCommandController extends java.lang.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.CommandController
execute
in interface HistoryBrowser.CommandController
public void undo(UndoableCommand command)
HistoryBrowser.CommandController
undo
in interface HistoryBrowser.CommandController
public void redo(UndoableCommand command)
HistoryBrowser.CommandController
redo
in interface HistoryBrowser.CommandController
public int getState()
HistoryBrowser.CommandController
getState
in interface HistoryBrowser.CommandController
Copyright © 2022 Apache Software Foundation. All Rights Reserved.