|
||||||||||
| 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.UIGraphic
UIGraphic is a UIComponent that displays
a graphical image to the user. The user cannot manipulate this component;
it is for display purposes only.
By default, the rendererType property must be set to
"javax.faces.Image". This value can be changed by calling the
setRendererType() method.
| Field Summary | |
static java.lang.String |
COMPONENT_FAMILY
The standard component family for this component. |
static java.lang.String |
COMPONENT_TYPE
The standard component type for this component. |
| Constructor Summary | |
UIGraphic()
Create a new UIGraphic instance with default property
values. |
|
| Method Summary | |
java.lang.String |
getFamily()
Return the identifier of the component family to which this component belongs. |
java.lang.String |
getUrl()
Return the image URL for this UIGraphic. |
java.lang.Object |
getValue()
Returns the value property of the
UIGraphic. |
javax.faces.el.ValueBinding |
getValueBinding(java.lang.String name)
Return any ValueBinding set for value if a
ValueBinding for url is requested; otherwise,
perform the default superclass processing for this method. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
Perform any processing required to restore the state from the entries in the state Object. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
Gets the state of the instance as a Serializable Object. |
void |
setUrl(java.lang.String url)
Set the image URL for this UIGraphic. |
void |
setValue(java.lang.Object value)
Sets the value property of the UIGraphic. |
void |
setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
Store any ValueBinding specified for url under
value instead; otherwise, perform the default superclass
processing for this method. |
| Methods inherited from class javax.faces.component.UIComponentBase |
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| 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.
public static final java.lang.String COMPONENT_FAMILY
The standard component family for this component.
| Constructor Detail |
public UIGraphic()
Create a new UIGraphic instance with default property
values.
| Method Detail |
public java.lang.String getFamily()
UIComponentReturn the identifier of the component family to which this
component belongs. This identifier, in conjunction with the value
of the rendererType property, may be used to select
the appropriate Renderer for this component instance.
getFamily in class UIComponentpublic java.lang.String getUrl()
Return the image URL for this UIGraphic. This method is a
typesafe alias for getValue().
public void setUrl(java.lang.String url)
Set the image URL for this UIGraphic. This method is a
typesafe alias for setValue().
url - The new image URLpublic java.lang.Object getValue()
Returns the value property of the
UIGraphic. This will typically be rendered as an URL.
public void setValue(java.lang.Object value)
Sets the value property of the UIGraphic.
This will typically be rendered as an URL.
value - the new valuepublic javax.faces.el.ValueBinding getValueBinding(java.lang.String name)
Return any ValueBinding set for value if a
ValueBinding for url is requested; otherwise,
perform the default superclass processing for this method.
getValueBinding in class UIComponentBasename - Name of the attribute or property for which to retrieve
a ValueBinding
java.lang.NullPointerException - if name
is null
public void setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
Store any ValueBinding specified for url under
value instead; otherwise, perform the default superclass
processing for this method.
setValueBinding in class UIComponentBasename - Name of the attribute or property for which to set
a ValueBindingbinding - The ValueBinding to set, or null
to remove any currently set ValueBinding
java.lang.NullPointerException - if name
is nullpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
StateHolder 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 StateHolder.saveState(javax.faces.context.FacesContext) method on all those
instances as well. This method must not save the state
of children and facets. That is done via the StateManager
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 StateHoldersaveState in class UIComponentBase
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
StateHolderPerform 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 StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object) method on all those
instances as well.
restoreState in interface StateHolderrestoreState in class UIComponentBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||