public interface ICommand
Modifier and Type | Method and Description |
---|---|
void |
execute(Document document)
Called to execute the command against the given document.
|
String |
type()
Returns the type of the command (i.e.
|
void |
undo(Document document)
Called to undo the command (restore the document to a previous state).
|
void execute(Document document)
document
- void undo(Document document)
document
- String type()
Copyright © 2021 Red Hat. All rights reserved.