public abstract class AbstractStatefulActionRenderer<INPUT,OUTPUT> extends DefaultActionRenderer<INPUT,OUTPUT>
DefaultActionRenderer.DefaultActionRendererEventListener<T extends org.zkoss.zk.ui.event.Event>tooltipText| Constructor and Description |
|---|
AbstractStatefulActionRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStateSocketListener(Action parent,
ActionContext<INPUT> context,
String listenerIdentity,
String socket,
Supplier<org.zkoss.zk.ui.event.EventListener<SocketEvent>> listenerSupplier)
Registers new socket listener on parent's widget, if it hasn't been done yet.
|
protected org.zkoss.zk.ui.event.EventListener<SocketEvent> |
createStateSocketListener(Action parent,
ActionContext<INPUT> context,
String key,
Function valueSupplier)
Creates new instance of socket listener.
|
protected <V> V |
getValue(ActionContext<INPUT> actionContext,
String key)
Reads a value from parent's widget model.
|
protected org.zkoss.zk.ui.event.EventListener<SocketEvent> |
initializeStateSocketListener(Action parent,
String listenerIdentity,
org.zkoss.zk.ui.event.EventListener<SocketEvent> socketListener)
Initialized newly created listener.
|
protected void |
setValue(ActionContext<INPUT> actionContext,
String key,
Object value)
Puts a value to parent's widget model.
|
addEventListener, addKeyboardSupport, adjustUri, checkDataCompatibleWithDefinedInput, createEventListener, createYTestId, extractIconDisabledUri, extractIconHoverUri, extractIconUri, extractKeyEvent, findActionComponent, findGroupComponent, findParentComponent, getActionBodySclass, getIconHoverUri, getIconUri, getKeyboardSupportService, getLocalizedName, getOrCreateContainer, getOrCreateIcon, getOrCreateLabel, getTooltipText, getToolTipWithCtrlKeysText, loadFromParentModel, perform, performWithConfirmationCheck, registerHoverEventsOnContainer, removeEventListeners, removeEventListeners, removeIcon, removeLabel, render, setTooltipText, storeInParentModel, triggerFromKeyEventprotected <V> V getValue(ActionContext<INPUT> actionContext, String key)
Method is resistant to situation when many instances of a particular action used in single parent widgets.
V - value typeactionContext - action contextkey - value keynullprotected void setValue(ActionContext<INPUT> actionContext, String key, Object value)
Method is resistant to situation when many instances of a particular action used in single parent widgets.
actionContext - action contextkey - value keyvalue - value to be putprotected void addStateSocketListener(Action parent, ActionContext<INPUT> context, String listenerIdentity, String socket, Supplier<org.zkoss.zk.ui.event.EventListener<SocketEvent>> listenerSupplier)
parent - action componentcontext - action contextlistenerIdentity - unique identity of listener in scope of actionsocket - name of socket to attach tolistenerSupplier - a method creating new instance of listenerinitializeStateSocketListener(Action, String, EventListener),
createStateSocketListener(Action, ActionContext, String, Function)protected org.zkoss.zk.ui.event.EventListener<SocketEvent> initializeStateSocketListener(Action parent, String listenerIdentity, org.zkoss.zk.ui.event.EventListener<SocketEvent> socketListener)
parent - action componentlistenerIdentity - unique identity of listener in scope of actionsocketListener - listener to be initializedaddStateSocketListener(Action, ActionContext, String, String, Supplier),
createStateSocketListener(Action, ActionContext, String, Function)protected org.zkoss.zk.ui.event.EventListener<SocketEvent> createStateSocketListener(Action parent, ActionContext<INPUT> context, String key, Function valueSupplier)
parent - action componentcontext - action contextkey - model key under which a processed input message will be keptvalueSupplier - processing methodCopyright © 2018. All rights reserved.