Modifier and Type | Method and Description |
---|---|
static OperationBase |
create()
Creates a new OperationBase object.
|
static OperationBase |
create(java.lang.String label,
java.lang.String type)
Creates a new OperationBase object.
|
java.lang.String |
getLabel()
Get the label for this operation.
|
java.lang.String |
getType()
Get the type of this operation
|
void |
performRedo()
Re-perform the last undo operation.
|
void |
performUndo()
Reverse the operation.
|
void |
setLabel(java.lang.String label)
Details about the operation, for example: "Update" may be the label for an edit operation that updates features.
|
void |
setRedoAction(RedoHandler handler) |
void |
setType(java.lang.String type)
The type of operation, for example: "edit" or "navigation".
|
void |
setUndoAction(UndoHandler handler) |
public static OperationBase create()
public static OperationBase create(java.lang.String label, java.lang.String type)
label
- - Details about the operationtype
- - The type of operationpublic final void setLabel(java.lang.String label)
label
- - operation labelpublic final java.lang.String getLabel()
public final void setType(java.lang.String type)
type
- - operation type.public final java.lang.String getType()
public final void performRedo()
public final void setRedoAction(RedoHandler handler)
public final void performUndo()
public final void setUndoAction(UndoHandler handler)