|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase javax.faces.component.UICommand com.ibm.xsp.component.UICommandEx2 com.ibm.xsp.component.UIEventHandler
public class UIEventHandler
An Abstract Component that is used to apply event handling to its parent component. Event Handling is in two parts, by means of Server side actions and client side script, which can be assigned to any valid event of the parent Component.
By default, the rendererType
property must be set to "com.ibm.faces.CommandBehaviour
"
This value can be changed by calling the setRendererType()
method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.faces.component.UIComponentBase |
---|
javax.faces.component.UIComponentBase.AggregatedIterator, javax.faces.component.UIComponentBase.UnmodifiableIterator |
Nested classes/interfaces inherited from class javax.faces.component.UIComponent |
---|
javax.faces.component.UIComponent.StateMap, javax.faces.component.UIComponent.StateMapEntry |
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_TYPE
The standard component type for this component. |
Fields inherited from class com.ibm.xsp.component.UICommandEx2 |
---|
COMPONENT_FAMILY, EXEC_COMPLETE, EXEC_PARTIAL, MODE_COMPLETE, MODE_NOREFRESH, MODE_PARTIAL |
Fields inherited from class javax.faces.component.UIComponentBase |
---|
EMPTY_ITERATOR |
Fields inherited from class javax.faces.component.UIComponent |
---|
_xspStateId |
Fields inherited from interface javax.faces.component.NamingContainer |
---|
SEPARATOR_CHAR |
Constructor Summary | |
---|---|
UIEventHandler()
Abstract Event Handler used to add event handling behaviour to its parent component. |
Method Summary | |
---|---|
void |
addFor(java.lang.String id)
Add an id of a control that this event handler is for |
void |
addHandler(ClientEventHandler handler)
Set the value of the handlers property. |
void |
addParameter(Parameter parameter)
Add a parameter |
void |
broadcast(javax.faces.event.FacesEvent event)
|
void |
changedParent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent oldParent,
javax.faces.component.UIComponent newParent)
|
void |
encodeBegin(javax.faces.context.FacesContext context)
|
javax.faces.el.MethodBinding |
getAction()
|
java.lang.String |
getEvent()
Return the value of the event property. |
java.util.List<java.lang.String> |
getFor()
Return the list of control ids that this event handler is for |
ClientEventHandler[] |
getHandlers()
Return the value of the handlers property. |
java.util.List<Parameter> |
getParameters()
Return the list of parameters |
javax.faces.el.MethodBinding |
getScript()
The MethodBinding that, when invoked, yields the literal outcome
value. |
boolean |
isSubmit()
JavaScript Code to be executed on the client side. |
protected boolean |
isSuccessOutcome()
|
void |
queueEvent(javax.faces.event.FacesEvent event)
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setEvent(java.lang.String event)
Set the value of the event property. |
void |
setScript(javax.faces.el.MethodBinding script)
|
void |
setSubmit(boolean submit)
Set the value of the submit property. |
Methods inherited from class com.ibm.xsp.component.UICommandEx2 |
---|
doNavigation, doSave, getExecId, getExecMode, getFamily, getOnComplete, getOnError, getOnStart, getRefreshId, getRefreshMode, isDisableValidators, isNavigate, isPartialRefresh, isSave, setDisableValidators, setExecId, setExecMode, setNavigate, setOnComplete, setOnError, setOnStart, setRefreshId, setRefreshMode, setSave |
Methods inherited from class javax.faces.component.UICommand |
---|
addActionListener, getActionListener, getActionListeners, getValue, isImmediate, removeActionListener, setAction, setActionListener, setImmediate, setValue |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
_xspCleanTransientData, _xspGetReadOnlyObj, _xspGetRendererData, _xspRemoveReadOnlyObj, _xspRemoveRendererData, _xspSetIdUnchecked, _xspSetReadOnlyObj, _xspSetRendererData, addFacesListener, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class javax.faces.component.UIComponent |
---|
_xspGetStateId, _xspGetStateMap, _xspRestoreAttribute, _xspRestoreState, _xspSaveState, invokeOnComponent, isVisitable, markInitialState, setControlState, visitTree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMPONENT_TYPE
The standard component type for this component.
Constructor Detail |
---|
public UIEventHandler()
Method Detail |
---|
public void addParameter(Parameter parameter)
parameter
- public java.util.List<Parameter> getParameters()
public void addFor(java.lang.String id)
parameter
- public java.util.List<java.lang.String> getFor()
public javax.faces.el.MethodBinding getScript()
The MethodBinding
that, when invoked, yields the literal outcome
value.
public void setScript(javax.faces.el.MethodBinding script)
public java.lang.String getEvent()
Return the value of the event
property. Contents:
the type of event that this behaviour is to attach to on its parent (typically onChange, or onClick).
public void setEvent(java.lang.String event)
Set the value of the event
property.
public ClientEventHandler[] getHandlers()
Return the value of the handlers
property. Contents:
JavaScript Code to be executed on the client side. This is defined as a collection of Handler complex properties, each of which define the renderer they're to be used with and the script language used. There can be multiple event handlers defined.
public void addHandler(ClientEventHandler handler)
Set the value of the handlers
property.
public boolean isSubmit()
public void setSubmit(boolean submit)
Set the value of the submit
property.
protected boolean isSuccessOutcome()
public javax.faces.el.MethodBinding getAction()
getAction
in interface javax.faces.component.ActionSource
getAction
in class javax.faces.component.UICommand
public void queueEvent(javax.faces.event.FacesEvent event)
queueEvent
in class javax.faces.component.UICommand
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class UICommandEx2
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class UICommandEx2
public void changedParent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent oldParent, javax.faces.component.UIComponent newParent)
changedParent
in interface FacesParentReliantComponent
public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException
encodeBegin
in class UICommandEx2
java.io.IOException
public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
broadcast
in class javax.faces.component.UICommand
javax.faces.event.AbortProcessingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |