public class UndoRedoService extends DefaultService
Undoable command.
It must have an unique name if several stack are managed together. (Use a basic JRebirth component key)pendingTasksProperty| Modifier and Type | Field and Description |
|---|---|
private List<Undoable> |
commandStack
The command stack.
|
private static org.slf4j.Logger |
LOGGER
The class logger.
|
private List<Undoable> |
undoneStack
The commands that have been undone.
|
innerComponentMap, PROCESS_WAVE_METHOD_NAME, rootComponentCOUNT_LINES_ERROR, NO_RETURN_WAVE_CONSUMED, NO_RETURNED_WAVE_ITEM, NO_RETURNED_WAVE_TYPE_DEFINED, NO_WAVE_TYPE_DEFINED, SERVICE_TASK_ERROR, SERVICE_TASK_EXCEPTION, SERVICE_TASK_HANDLE_EXCEPTION, SERVICE_TASK_HAS_FAILED, SERVICE_TASK_NOT_MANAGED_EXCEPTION, SERVICE_TASK_RETURN_CONSUMES, SERVICE_TASK_RETURN_HANDLESADD_BEHAVIOR, CALL_ANNOTATED_METHOD_ERROR, COMMAND_NOT_FOUND_ERROR, COMMAND_NOT_FOUND_MESSAGE, COMPONENT_INJECTION_FAILURE, COMPONENT_RELEASE_ERROR, CUSTOM_METHOD_NOT_FOUND, LISTEN_WAVE_TYPE, MODEL_NOT_FOUND_ERROR, MODEL_NOT_FOUND_MESSAGE, NO_WAVE_LISTENER, NOTIFIER_CONSUMES, NOTIFIER_HANDLES, SEND_WAVE, SERVICE_NOT_FOUND_ERROR, SERVICE_NOT_FOUND_MESSAGE, UNLISTEN_WAVE_TYPE, WAVE_BEAN_CREATION_ERROR, WAVE_DISPATCH_ERROR, WAVE_HANDLING_ERROR, WAVE_LOST, WAVE_LOST_CONTEXT, WAVE_SENDING_ERROR| Constructor and Description |
|---|
UndoRedoService() |
| Modifier and Type | Method and Description |
|---|---|
void |
redo()
Redo the last command that was undo-ed.
|
void |
stackUp(Undoable command)
Stack up a command.
|
void |
undo()
Undo the last command.
|
initInnerComponents, initService, processWavefinalize, getPendingTask, getPendingTaskList, pendingTasksProperty, ready, removePendingTask, returnData, updateMessage, updateProgress, updateProgress, updateProgress, updateProgress, updateTitleaddBehavior, addBehavior, getBehavior, getBehaviorData, hasBehavior, manageOptionalDataaddInnerComponent, attachUi, callCommand, callCommand, getInnerComponent, getRootComponent, initInternalInnerComponents, listen, listen, listen, release, returnData, sendWave, sendWave, sendWave, setRootComponent, setup, unlistengetCommand, getCommand, getFirstKeyPart, getKey, getKeyPart, getListKeyPart, getLocalFacade, getModel, getModel, getSecondKeyPart, getService, getService, getThirdKeyPart, setKey, setLocalFacadeclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBehavior, addBehavior, getBehavior, getBehaviorData, hasBehavioraddInnerComponent, getInnerComponent, getRootComponent, listen, listen, listen, sendWave, sendWave, sendWave, setRootComponent, unlistengetKey, getLocalFacade, release, setKey, setLocalFacade, setuppublic void stackUp(Undoable command)
command - the commandpublic void undo()
public void redo()
Copyright © 2011–2015 JRebirth OSS. All rights reserved.