|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
ilog.views.faces.component.IlvFacesComponentBase
public abstract class IlvFacesComponentBase
This class is a base class for a JViews Faces component. It extends
UIComponentBase. If you want to extend from another JavaServer Faces base
class, you have to implement the IlvFacesComponent interface. An
IlvFacesComponentImpl utility class implements the methods defined by this
interface.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
IlvFacesComponentBase()
Creates a new IlvFacesComponentBase instance. |
| Method Summary | |
|---|---|
void |
clearDecodedPropertyMap()
Clears the decoded properties. |
protected IlvFacesComponent |
createFacesComponent()
Creates the IlvFacesComponent implementation. |
Map |
getAttributes()
Return a mutable Map representing the attributes
(and properties, see below) associated with this UIComponent,
keyed by attribute name (which must be a String). |
String |
getClientId(FacesContext context)
|
boolean |
isDecodedProperty(String property)
Returns true if the specified property was decoded during the "Apply
Request Value" phase of the JSF lifecycle, false otherwise. |
void |
processUpdates(FacesContext context)
Handles the "Update Model Values" phase of the JSF life cycle. |
void |
resetDecodedProperties()
Resets the decoded properties of this component. |
void |
restoreState(FacesContext context,
Object stateObj)
Perform any processing required to restore the state from the entries in the state Object. |
Object |
saveState(FacesContext context)
Gets the state of the instance as a Serializable Object. |
void |
setDecodedProperty(String property)
Sets the property to decoded, which means that the property value was
updated from the request during the "Apply Request Value" phase of the JSF
life cycle. |
void |
updateModel(FacesContext facesContext)
Handles the "Update Model Values" phase of the JSF life cycle. |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
getFamily |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected IlvFacesComponentBase()
IlvFacesComponentBase instance.
| Method Detail |
|---|
protected IlvFacesComponent createFacesComponent()
IlvFacesComponent implementation. By default, it returns an instance
of IlvFacesComponentImpl.
IlvFacesComponent implementation.public Map getAttributes()
Return a mutable Map representing the attributes
(and properties, see below) associated with this UIComponent,
keyed by attribute name (which must be a String). The returned
implementation must support all of the standard and optional
Map methods, plus support the following additional
requirements:
Map implementation must implement
the java.io.Serializable interface.null key or value must
throw a NullPointerException.ClassCastException.UIComponent's implementation class, the following
methods will have special behavior:
containsKey - Return false.get() - If the property is readable, call
the getter method and return the returned value (wrapping
primitive values in their corresponding wrapper classes);
otherwise throw IllegalArgumentException.put() - If the property is writable, call
the setter method to set the corresponding value (unwrapping
primitive values in their corresponding wrapper classes).
If the property is not writeable, or an attempt is made to
set a property of primitive type to null,
throw IllegalArgumentException.remove - Throw
IllegalArgumentException.
getAttributes in class UIComponentBasepublic boolean isDecodedProperty(String property)
true if the specified property was decoded during the "Apply
Request Value" phase of the JSF lifecycle, false otherwise.
isDecodedProperty in interface IlvFacesComponentproperty - The property to test.
true if the property was decoded, false otherwise.public void resetDecodedProperties()
resetDecodedProperties in interface IlvFacesComponentpublic void setDecodedProperty(String property)
decoded, which means that the property value was
updated from the request during the "Apply Request Value" phase of the JSF
life cycle. This method must be called by renderers only during the execution of their decode
method.
setDecodedProperty in interface IlvFacesComponentproperty - The property to set to decoded.public void clearDecodedPropertyMap()
clearDecodedPropertyMap in interface IlvFacesComponentpublic void processUpdates(FacesContext context)
processUpdates in class UIComponentBasepublic void updateModel(FacesContext facesContext)
facesContext - The current faces context.public Object saveState(FacesContext context)
Gets the state of the instance as a
Serializable Object.
If the class that implements this interface has references to
instances that implement StateHolder (such as a
UIComponent with event handlers, validators, etc.)
this method must call the saveState(javax.faces.context.FacesContext) method on all those
instances as well. This method must not save the state
of children and facets.
This method must not alter the state of the implementing object. In other words, after executing this code:
Object state = component.saveState(facesContext);
component should be the same as before executing
it.
The return from this method must be Serializable
saveState in interface IlvFacesComponentsaveState in interface StateHoldersaveState in class UIComponentBasecontext - The current faces context.
NullPointerException - if context is null
public void restoreState(FacesContext context,
Object stateObj)
Perform any processing required to restore the state from the entries in the state Object.
If the class that implements this interface has references to
instances that also implement StateHolder (such as a
UIComponent with event handlers, validators, etc.)
this method must call the restoreState(javax.faces.context.FacesContext, java.lang.Object) method on all those
instances as well.
restoreState in interface IlvFacesComponentrestoreState in interface StateHolderrestoreState in class UIComponentBasecontext - The current faces context.stateObj - The previously saved state of this component.
NullPointerException - if either context or
state are nullpublic String getClientId(FacesContext context)
getClientId in class UIComponentBase
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||