Class RemoteCommand

  • All Implemented Interfaces:
    java.util.EventListener, javax.faces.component.ActionSource, javax.faces.component.ActionSource2, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, org.primefaces.component.api.AjaxSource

    public class RemoteCommand
    extends javax.faces.component.UICommand
    implements org.primefaces.component.api.AjaxSource
    Component class for the RemoteCommand component.
    Since:
    0.2
    Version:
    $Revision$
    Author:
    Thomas Andraschko / last modified by $Author$
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  RemoteCommand.PropertyKeys
      Properties that are tracked by state saving.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String COMPONENT_FAMILY  
      static java.lang.String COMPONENT_TYPE  
      • Fields inherited from class javax.faces.component.UIComponent

        ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteCommand()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void broadcast​(javax.faces.event.FacesEvent event)  
      protected void findChildParameters()  
      javax.el.MethodExpression getActionListenerMethodExpression()  
      protected java.util.List<AbstractParameter> getAllParameters()  
      protected java.util.List<AssignableParameter> getAssignableParameters()  
      protected java.lang.Object[] getConvertedMethodParameters​(javax.faces.context.FacesContext context)  
      java.lang.String getDelay()  
      java.lang.String getFamily()  
      java.lang.String getForm()  
      protected java.util.List<MethodParameter> getMethodParameters()  
      java.lang.String getName()  
      java.lang.String getOncomplete()  
      java.lang.String getOnerror()  
      java.lang.String getOnstart()  
      java.lang.String getOnsuccess()  
      java.lang.String getParameterValue​(javax.faces.context.FacesContext context, java.lang.String name)  
      java.lang.String getPartialSubmitFilter()  
      java.lang.String getProcess()  
      int getTimeout()  
      java.lang.String getUpdate()  
      boolean isAjaxified()  
      boolean isAsync()  
      boolean isAutoRun()  
      boolean isGlobal()  
      boolean isIgnoreAutoUpdate()  
      boolean isIgnoreComponentNotFound()  
      boolean isPartialSubmit()  
      boolean isPartialSubmitSet()  
      boolean isResetValues()  
      boolean isResetValuesSet()  
      java.lang.Object saveState​(javax.faces.context.FacesContext context)  
      void setActionListenerMethodExpression​(javax.el.MethodExpression actionListener)  
      void setAsync​(boolean async)  
      void setAutoRun​(boolean autoRun)  
      void setDelay​(java.lang.String delay)  
      void setForm​(java.lang.String _form)  
      void setGlobal​(boolean global)  
      void setIgnoreAutoUpdate​(boolean ignoreAutoUpdate)  
      void setIgnoreComponentNotFound​(boolean ignoreComponentNotFound)  
      void setName​(java.lang.String name)  
      void setOncomplete​(java.lang.String oncomplete)  
      void setOnerror​(java.lang.String onerror)  
      void setOnstart​(java.lang.String onstart)  
      void setOnsuccess​(java.lang.String onsuccess)  
      void setPartialSubmit​(boolean partialSubmit)  
      void setPartialSubmitFilter​(java.lang.String _partialSubmitFilter)  
      void setProcess​(java.lang.String process)  
      void setResetValues​(boolean resetValues)  
      void setTimeout​(int timeout)  
      void setUpdate​(java.lang.String update)  
      • Methods inherited from class javax.faces.component.UICommand

        addActionListener, getAction, getActionExpression, getActionListener, getActionListeners, getValue, isImmediate, queueEvent, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue
      • Methods inherited from class javax.faces.component.UIComponentBase

        addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
      • Methods inherited from class javax.faces.component.UIComponent

        encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoteCommand

        public RemoteCommand()
    • Method Detail

      • getFamily

        public java.lang.String getFamily()
        Overrides:
        getFamily in class javax.faces.component.UICommand
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getUpdate

        public java.lang.String getUpdate()
        Specified by:
        getUpdate in interface org.primefaces.component.api.AjaxSource
      • setUpdate

        public void setUpdate​(java.lang.String update)
      • getProcess

        public java.lang.String getProcess()
        Specified by:
        getProcess in interface org.primefaces.component.api.AjaxSource
      • setProcess

        public void setProcess​(java.lang.String process)
      • getOnstart

        public java.lang.String getOnstart()
        Specified by:
        getOnstart in interface org.primefaces.component.api.AjaxSource
      • setOnstart

        public void setOnstart​(java.lang.String onstart)
      • getOncomplete

        public java.lang.String getOncomplete()
        Specified by:
        getOncomplete in interface org.primefaces.component.api.AjaxSource
      • setOncomplete

        public void setOncomplete​(java.lang.String oncomplete)
      • getOnerror

        public java.lang.String getOnerror()
        Specified by:
        getOnerror in interface org.primefaces.component.api.AjaxSource
      • setOnerror

        public void setOnerror​(java.lang.String onerror)
      • getOnsuccess

        public java.lang.String getOnsuccess()
        Specified by:
        getOnsuccess in interface org.primefaces.component.api.AjaxSource
      • setOnsuccess

        public void setOnsuccess​(java.lang.String onsuccess)
      • isGlobal

        public boolean isGlobal()
        Specified by:
        isGlobal in interface org.primefaces.component.api.AjaxSource
      • setGlobal

        public void setGlobal​(boolean global)
      • isAsync

        public boolean isAsync()
        Specified by:
        isAsync in interface org.primefaces.component.api.AjaxSource
      • setAsync

        public void setAsync​(boolean async)
      • isPartialSubmit

        public boolean isPartialSubmit()
        Specified by:
        isPartialSubmit in interface org.primefaces.component.api.AjaxSource
      • setPartialSubmit

        public void setPartialSubmit​(boolean partialSubmit)
      • isAutoRun

        public boolean isAutoRun()
      • setAutoRun

        public void setAutoRun​(boolean autoRun)
      • getActionListenerMethodExpression

        public javax.el.MethodExpression getActionListenerMethodExpression()
      • setActionListenerMethodExpression

        public void setActionListenerMethodExpression​(javax.el.MethodExpression actionListener)
      • isPartialSubmitSet

        public boolean isPartialSubmitSet()
        Specified by:
        isPartialSubmitSet in interface org.primefaces.component.api.AjaxSource
      • isResetValues

        public boolean isResetValues()
        Specified by:
        isResetValues in interface org.primefaces.component.api.AjaxSource
      • setResetValues

        public void setResetValues​(boolean resetValues)
      • isIgnoreAutoUpdate

        public boolean isIgnoreAutoUpdate()
        Specified by:
        isIgnoreAutoUpdate in interface org.primefaces.component.api.AjaxSource
      • setIgnoreAutoUpdate

        public void setIgnoreAutoUpdate​(boolean ignoreAutoUpdate)
      • isResetValuesSet

        public boolean isResetValuesSet()
        Specified by:
        isResetValuesSet in interface org.primefaces.component.api.AjaxSource
      • getDelay

        public java.lang.String getDelay()
        Specified by:
        getDelay in interface org.primefaces.component.api.AjaxSource
      • setDelay

        public void setDelay​(java.lang.String delay)
      • getTimeout

        public int getTimeout()
        Specified by:
        getTimeout in interface org.primefaces.component.api.AjaxSource
      • setTimeout

        public void setTimeout​(int timeout)
      • getPartialSubmitFilter

        public java.lang.String getPartialSubmitFilter()
        Specified by:
        getPartialSubmitFilter in interface org.primefaces.component.api.AjaxSource
      • setPartialSubmitFilter

        public void setPartialSubmitFilter​(java.lang.String _partialSubmitFilter)
      • getForm

        public java.lang.String getForm()
        Specified by:
        getForm in interface org.primefaces.component.api.AjaxSource
      • setForm

        public void setForm​(java.lang.String _form)
      • broadcast

        public void broadcast​(javax.faces.event.FacesEvent event)
        Overrides:
        broadcast in class javax.faces.component.UICommand
      • findChildParameters

        protected void findChildParameters()
      • getAssignableParameters

        protected java.util.List<AssignableParameter> getAssignableParameters()
      • getMethodParameters

        protected java.util.List<MethodParameter> getMethodParameters()
      • getConvertedMethodParameters

        protected java.lang.Object[] getConvertedMethodParameters​(javax.faces.context.FacesContext context)
      • getParameterValue

        public java.lang.String getParameterValue​(javax.faces.context.FacesContext context,
                                                  java.lang.String name)
      • isAjaxified

        public boolean isAjaxified()
        Specified by:
        isAjaxified in interface org.primefaces.component.api.AjaxSource
      • isIgnoreComponentNotFound

        public boolean isIgnoreComponentNotFound()
        Specified by:
        isIgnoreComponentNotFound in interface org.primefaces.component.api.AjaxSource
      • setIgnoreComponentNotFound

        public void setIgnoreComponentNotFound​(boolean ignoreComponentNotFound)
      • saveState

        public java.lang.Object saveState​(javax.faces.context.FacesContext context)
        Specified by:
        saveState in interface javax.faces.component.StateHolder
        Overrides:
        saveState in class javax.faces.component.UIComponentBase