@JsType(isNative=true,
namespace="window",
name="envelope")
public class StateControl
extends Object
| Constructor and Description |
|---|
StateControl() |
| Modifier and Type | Method and Description |
|---|---|
static StateControl |
get() |
<C> KogitoJSCommandRegistry<C> |
getCommandRegistry()
Retrieves the
KogitoJSCommandRegistry |
void |
setRedoCommand(StateControlCommand command)
Sets the
StateControlCommand that will be called when the StateControl engine is notified to redo last
undone command on the KogitoJSCommandRegistry |
void |
setUndoCommand(StateControlCommand command)
Sets the
StateControlCommand that will be called when the StateControl engine is notified to undo last
command on the KogitoJSCommandRegistry |
@JsProperty(name="registry") public <C> KogitoJSCommandRegistry<C> getCommandRegistry()
KogitoJSCommandRegistryC - Anything that can be considered a commandKogitoJSCommandRegistry@JsMethod public void setUndoCommand(StateControlCommand command)
StateControlCommand that will be called when the StateControl engine is notified to undo last
command on the KogitoJSCommandRegistrycommand - The command to execute on undo@JsMethod public void setRedoCommand(StateControlCommand command)
StateControlCommand that will be called when the StateControl engine is notified to redo last
undone command on the KogitoJSCommandRegistrycommand - The command to execute on redo@JsProperty(name="stateControl") public static StateControl get()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.