public abstract class AbstractToggleAction extends AbstractStatefulAction<Object,Object>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
MODEL_ACTIVE |
protected static String |
MODEL_VALUE |
| Constructor and Description |
|---|
AbstractToggleAction() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getOutputSocket(ActionContext<Object> ctx) |
ActionResult<Object> |
perform(ActionContext<Object> ctx)
Performs the action.
|
protected Object |
restoreOutputValue(ActionContext<Object> ctx)
Reads action's output value from parent's widget model.
|
getActionUID, getValue, restoreModelValue, setValue, storeModelValueaddSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanPerform, getConfirmationMessage, needsConfirmationprotected static final String MODEL_VALUE
protected static final String MODEL_ACTIVE
public ActionResult<Object> perform(ActionContext<Object> ctx)
CockpitActionctx - context containing the data and other informationprotected Object restoreOutputValue(ActionContext<Object> ctx)
ctx - action contextprotected abstract String getOutputSocket(ActionContext<Object> ctx)
ctx - action contextCopyright © 2018. All rights reserved.