org.primefaces.extensions.component.remotecommand
Class RemoteCommand

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UICommand
              extended by org.primefaces.extensions.component.remotecommand.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
protected static class RemoteCommand.PropertyKeys
          Properties that are tracked by state saving.
 
Field Summary
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
RemoteCommand()
           
 
Method Summary
 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 getFamily()
           
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 getProcess()
           
 java.lang.String getUpdate()
           
 boolean isAsync()
           
 boolean isAutoRun()
           
 boolean isGlobal()
           
 boolean isPartialSubmit()
           
 boolean isPartialSubmitSet()
           
 void setActionListenerMethodExpression(javax.el.MethodExpression actionListener)
           
 void setAsync(boolean async)
           
 void setAttribute(RemoteCommand.PropertyKeys property, java.lang.Object value)
           
 void setAutoRun(boolean autoRun)
           
 void setGlobal(boolean global)
           
 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 setProcess(java.lang.String process)
           
 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, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, 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
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values
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

setAttribute

public void setAttribute(RemoteCommand.PropertyKeys property,
                         java.lang.Object value)

broadcast

public void broadcast(javax.faces.event.FacesEvent event)
               throws javax.faces.event.AbortProcessingException
Overrides:
broadcast in class javax.faces.component.UICommand
Throws:
javax.faces.event.AbortProcessingException

findChildParameters

protected void findChildParameters()

getAllParameters

protected java.util.List<AbstractParameter> getAllParameters()

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)


Copyright © 2011-2013. All Rights Reserved.