Package com.hybris.cockpitng.components
Class Action
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Div
-
- com.hybris.cockpitng.components.AbstractCockpitComponent
-
- com.hybris.cockpitng.components.Action
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.AfterCompose,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.IdSpace,org.zkoss.zk.ui.sys.ComponentCtrl
public class Action extends AbstractCockpitComponent implements org.zkoss.zk.ui.ext.AfterCompose, org.zkoss.zk.ui.IdSpace
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultActionRendererDEFAULT_ACTION_RENDERERstatic java.lang.StringKEYBOARD_SUPPORT_SERVICE_BEAN_IDstatic java.lang.StringON_ACTION_PERFORMED-
Fields inherited from class com.hybris.cockpitng.components.AbstractCockpitComponent
COCKPIT_COMPONENTS_ATTIBUTE, initialized, modelObserver, widgetInstanceManager
-
-
Constructor Summary
Constructors Constructor Description Action()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddKeyboardSupport()voidaddParameter(java.lang.String key, java.lang.Object val)voidafterCompose()protected ActionContextcreateActionContext(ActionDefinition actionDefinition)voiddestroy()ActionContextgetActionContext()java.lang.StringgetActionId()java.lang.StringgetActionUID()java.lang.StringgetComponentID()java.lang.ObjectgetInputValue()KeyboardSupportServicegetKeyboardSupportService()java.lang.StringgetOutputProperty()java.util.Map<java.lang.String,java.lang.Object>getParameters()java.lang.StringgetProperty()protected CockpitActionRenderergetRenderer(ActionDefinition actionDefinition)java.lang.StringgetTriggerOnKeys()java.lang.StringgetViewMode()java.util.List<ComponentWidgetAdapterAware>getWidgetAdaptersAwareIfPresent()voidinitialize()protected voidinitializeActionContext(ActionContext actionContext, org.zkoss.zk.ui.HtmlBasedComponent parent, ActionDefinition actionDefinition, CockpitAction action, boolean updateOnly)protected CockpitActioninstantiateAction(ActionDefinition actionDefinition)voidreload()protected voidreloadIfNecessary()voidremoveParameter(java.lang.String key)protected voidrenderAction(org.zkoss.zk.ui.HtmlBasedComponent parent, ActionDefinition actionDefinition, CockpitAction action, boolean updateOnly)protected CockpitActionresolveCockpitActionClassInstance()protected CockpitActionresolveCockpitActionClassInstance(ActionDefinition definition)protected CockpitActionresolveCockpitActionClassInstance(ActionDefinition definition, boolean create)protected voidsendOutput(java.lang.String outputId, java.lang.Object object)protected voidsendOutputAfterOperation(BackgroundOperationDefinition definition)voidsetActionId(java.lang.String actionId)voidsetActionUID(java.lang.String actionUID)voidsetInputValue(java.lang.Object value)voidsetOutputProperty(java.lang.String outputProperty)voidsetParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)voidsetProperty(java.lang.String property)voidsetTriggerOnKeys(java.lang.String triggerOnKeys)voidsetViewMode(java.lang.String viewMode)-
Methods inherited from class com.hybris.cockpitng.components.AbstractCockpitComponent
getComponentDefinitionService, getComponentWidgetAdapter, getWidgetInstanceManager, initializeComponentWidgetAdapter, isInitialized, setComponentDefinitionService, setWidgetInstanceManager, unregisterObserver, unregisterWidgetStubInstance
-
Methods inherited from class org.zkoss.zul.impl.XulElement
clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ON_ACTION_PERFORMED
public static final java.lang.String ON_ACTION_PERFORMED
- See Also:
- Constant Field Values
-
DEFAULT_ACTION_RENDERER
public static final DefaultActionRenderer DEFAULT_ACTION_RENDERER
-
KEYBOARD_SUPPORT_SERVICE_BEAN_ID
public static final java.lang.String KEYBOARD_SUPPORT_SERVICE_BEAN_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
destroy
public void destroy()
- Overrides:
destroyin classAbstractCockpitComponent
-
reload
public void reload()
-
reloadIfNecessary
protected void reloadIfNecessary()
-
initialize
public void initialize()
-
renderAction
protected void renderAction(org.zkoss.zk.ui.HtmlBasedComponent parent, ActionDefinition actionDefinition, CockpitAction action, boolean updateOnly)
-
initializeActionContext
protected void initializeActionContext(ActionContext actionContext, org.zkoss.zk.ui.HtmlBasedComponent parent, ActionDefinition actionDefinition, CockpitAction action, boolean updateOnly)
-
createActionContext
protected ActionContext createActionContext(ActionDefinition actionDefinition)
-
addKeyboardSupport
protected void addKeyboardSupport()
-
instantiateAction
protected CockpitAction instantiateAction(ActionDefinition actionDefinition)
-
getRenderer
protected CockpitActionRenderer getRenderer(ActionDefinition actionDefinition)
-
getInputValue
public java.lang.Object getInputValue()
-
setInputValue
public void setInputValue(java.lang.Object value)
-
getProperty
public java.lang.String getProperty()
-
setProperty
public void setProperty(java.lang.String property)
-
getOutputProperty
public java.lang.String getOutputProperty()
-
setOutputProperty
public void setOutputProperty(java.lang.String outputProperty)
-
getTriggerOnKeys
public java.lang.String getTriggerOnKeys()
-
setTriggerOnKeys
public void setTriggerOnKeys(java.lang.String triggerOnKeys)
-
getActionId
public java.lang.String getActionId()
-
setActionId
public void setActionId(java.lang.String actionId)
-
getViewMode
public java.lang.String getViewMode()
-
setViewMode
public void setViewMode(java.lang.String viewMode)
-
getParameters
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
-
setParameters
public void setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
-
addParameter
public void addParameter(java.lang.String key, java.lang.Object val)
-
removeParameter
public void removeParameter(java.lang.String key)
-
getActionUID
public java.lang.String getActionUID()
-
setActionUID
public void setActionUID(java.lang.String actionUID)
-
afterCompose
public void afterCompose()
- Specified by:
afterComposein interfaceorg.zkoss.zk.ui.ext.AfterCompose
-
sendOutput
protected void sendOutput(java.lang.String outputId, java.lang.Object object)
-
sendOutputAfterOperation
protected void sendOutputAfterOperation(BackgroundOperationDefinition definition)
-
resolveCockpitActionClassInstance
protected CockpitAction resolveCockpitActionClassInstance(ActionDefinition definition, boolean create)
-
resolveCockpitActionClassInstance
protected CockpitAction resolveCockpitActionClassInstance(ActionDefinition definition)
-
getComponentID
public java.lang.String getComponentID()
- Specified by:
getComponentIDin classAbstractCockpitComponent
-
getWidgetAdaptersAwareIfPresent
public java.util.List<ComponentWidgetAdapterAware> getWidgetAdaptersAwareIfPresent()
- Specified by:
getWidgetAdaptersAwareIfPresentin classAbstractCockpitComponent
-
resolveCockpitActionClassInstance
protected CockpitAction resolveCockpitActionClassInstance()
-
getKeyboardSupportService
public KeyboardSupportService getKeyboardSupportService()
-
getActionContext
public ActionContext getActionContext()
-
-