WB - The WaveBean type used for this command (by default you can use the WaveBean interface)public abstract class AbstractUndoableCommand<WB extends org.jrebirth.af.api.wave.WaveBean> extends AbstractSingleCommand<WB> implements Undoable<WB>
runIntoThread, runnablePriorityinnerComponentList, innerComponentMap, PROCESS_WAVE_METHOD_NAME, rootComponentADD_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 |
|---|
AbstractUndoableCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
init(org.jrebirth.af.api.wave.Wave wave)
Initialize the command internal properties to be able to undo or redo the command.
|
protected void |
perform(org.jrebirth.af.api.wave.Wave wave) |
protected abstract void |
redo()
Do or Redo the command.
|
protected abstract void |
undo()
Undo the command.
|
afterPerform, beforePerform, initCommand, isRunning, readyfinalize, fireConsumed, fireFailed, fireHandled, getRunInto, getRunnablePriority, getWaveBean, processWave, run, runaddBehavior, addBehavior, getBehavior, getBehaviorData, hasBehavior, manageOptionalDataaddInnerComponent, attachUi, callCommand, callCommand, getInnerComponent, getInnerComponentList, getInnerComponentMap, getRootComponent, initInnerComponents, 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, setupprotected void perform(org.jrebirth.af.api.wave.Wave wave)
throws CommandException
perform in class AbstractBaseCommand<WB extends org.jrebirth.af.api.wave.WaveBean>CommandExceptionprotected abstract void init(org.jrebirth.af.api.wave.Wave wave)
wave - the waveprotected abstract void undo()
protected abstract void redo()
Copyright © 2011–2015 JRebirth OSS. All rights reserved.