Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent

        org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
      • Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent

        org.zkoss.zk.ui.AbstractComponent.Children
    • Constructor Summary

      Constructors 
      Constructor Description
      Action()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addKeyboardSupport()  
      void addParameter​(java.lang.String key, java.lang.Object val)  
      void afterCompose()  
      protected ActionContext createActionContext​(ActionDefinition actionDefinition)  
      void destroy()  
      ActionContext getActionContext()  
      java.lang.String getActionId()  
      java.lang.String getActionUID()  
      java.lang.String getComponentID()  
      java.lang.Object getInputValue()  
      KeyboardSupportService getKeyboardSupportService()  
      java.lang.String getOutputProperty()  
      java.util.Map<java.lang.String,​java.lang.Object> getParameters()  
      java.lang.String getProperty()  
      protected CockpitActionRenderer getRenderer​(ActionDefinition actionDefinition)  
      java.lang.String getTriggerOnKeys()  
      java.lang.String getViewMode()  
      java.util.List<ComponentWidgetAdapterAware> getWidgetAdaptersAwareIfPresent()  
      void initialize()  
      protected void initializeActionContext​(ActionContext actionContext, org.zkoss.zk.ui.HtmlBasedComponent parent, ActionDefinition actionDefinition, CockpitAction action, boolean updateOnly)  
      protected CockpitAction instantiateAction​(ActionDefinition actionDefinition)  
      void reload()  
      protected void reloadIfNecessary()  
      void removeParameter​(java.lang.String key)  
      protected void renderAction​(org.zkoss.zk.ui.HtmlBasedComponent parent, ActionDefinition actionDefinition, CockpitAction action, boolean updateOnly)  
      protected CockpitAction resolveCockpitActionClassInstance()  
      protected CockpitAction resolveCockpitActionClassInstance​(ActionDefinition definition)  
      protected CockpitAction resolveCockpitActionClassInstance​(ActionDefinition definition, boolean create)  
      protected void sendOutput​(java.lang.String outputId, java.lang.Object object)  
      protected void sendOutputAfterOperation​(BackgroundOperationDefinition definition)  
      void setActionId​(java.lang.String actionId)  
      void setActionUID​(java.lang.String actionUID)  
      void setInputValue​(java.lang.Object value)  
      void setOutputProperty​(java.lang.String outputProperty)  
      void setParameters​(java.util.Map<java.lang.String,​java.lang.Object> parameters)  
      void setProperty​(java.lang.String property)  
      void setTriggerOnKeys​(java.lang.String triggerOnKeys)  
      void setViewMode​(java.lang.String viewMode)  
      • Methods inherited from class org.zkoss.zul.Div

        getAlign, renderProperties, setAlign
      • 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
      • Methods inherited from interface org.zkoss.zk.ui.IdSpace

        getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, hasFellow, hasFellow
      • Methods inherited from interface org.zkoss.zk.ui.ext.Scope

        addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
    • Field Detail

      • ON_ACTION_PERFORMED

        public static final java.lang.String ON_ACTION_PERFORMED
        See Also:
        Constant Field Values
      • KEYBOARD_SUPPORT_SERVICE_BEAN_ID

        public static final java.lang.String KEYBOARD_SUPPORT_SERVICE_BEAN_ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • Action

        public Action()
    • Method Detail

      • 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)
      • addKeyboardSupport

        protected void addKeyboardSupport()
      • 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:
        afterCompose in interface org.zkoss.zk.ui.ext.AfterCompose
      • sendOutput

        protected void sendOutput​(java.lang.String outputId,
                                  java.lang.Object object)
      • resolveCockpitActionClassInstance

        protected CockpitAction resolveCockpitActionClassInstance​(ActionDefinition definition,
                                                                  boolean create)
      • resolveCockpitActionClassInstance

        protected CockpitAction resolveCockpitActionClassInstance()