|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
org.apache.cocoon.faces.samples.components.components.AreaComponent
public class AreaComponent
AreaComponent is a JavaServer Faces component that represents
a particular hotspot in a client-side image map defined by our parent
MapComponent. The valueRef property (if present)
must point at a JavaBean of type org.apache.cocoon.faces.samples.components.model.ImageArea;
if not present, an ImageArea instance will be synthesized
from the values of the alt, coords, and
shape properties, and assigned to the value
property.
| Field Summary |
|---|
| Fields inherited from class javax.faces.component.UIOutput |
|---|
COMPONENT_FAMILY, COMPONENT_TYPE |
| Constructor Summary | |
|---|---|
AreaComponent()
|
|
| Method Summary | |
|---|---|
String |
getAlt()
Return the alternate text for our synthesized ImageArea. |
String |
getCoords()
Return the hotspot coordinates for our synthesized ImageArea. |
String |
getFamily()
Return the component family for this component. |
String |
getShape()
Return the shape for our synthesized ImageArea. |
String |
getTargetImage()
Set the image that is the target of this AreaComponent. |
Object |
getValue()
Synthesize and return an ImageArea bean for this hotspot,
if there is no valueRef property on this component. |
void |
restoreState(javax.faces.context.FacesContext context,
Object state)
Restore the state for this component. |
Object |
saveState(javax.faces.context.FacesContext context)
Return the state to be saved for this component. |
void |
setAlt(String alt)
Set the alternate text for our synthesized ImageArea. |
void |
setCoords(String coords)
Set the hotspot coordinates for our synthesized ImageArea. |
void |
setShape(String shape)
Set the shape for our synthesized ImageArea. |
void |
setTargetImage(String targetImage)
Set the image that is the target of this AreaComponent. |
| Methods inherited from class javax.faces.component.UIOutput |
|---|
getConverter, getLocalValue, setConverter, setValue |
| 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, getPathToComponent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AreaComponent()
| Method Detail |
|---|
public String getAlt()
Return the alternate text for our synthesized ImageArea.
public void setAlt(String alt)
Set the alternate text for our synthesized ImageArea.
alt - The new alternate textpublic String getCoords()
Return the hotspot coordinates for our synthesized ImageArea.
public void setCoords(String coords)
Set the hotspot coordinates for our synthesized ImageArea.
coords - The new coordinatespublic String getShape()
Return the shape for our synthesized ImageArea.
public void setShape(String shape)
Set the shape for our synthesized ImageArea.
shape - The new shape (default, rect, circle, poly)public String getTargetImage()
Set the image that is the target of this AreaComponent.
public void setTargetImage(String targetImage)
Set the image that is the target of this AreaComponent.
targetImage - the ID of the target of this AreaComponentpublic String getFamily()
Return the component family for this component.
getFamily in class javax.faces.component.UIOutputpublic Object getValue()
Synthesize and return an ImageArea bean for this hotspot,
if there is no valueRef property on this component.
getValue in interface javax.faces.component.ValueHoldergetValue in class javax.faces.component.UIOutputpublic Object saveState(javax.faces.context.FacesContext context)
Return the state to be saved for this component.
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIOutputcontext - FacesContext for the current request
public void restoreState(javax.faces.context.FacesContext context,
Object state)
Restore the state for this component.
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIOutputcontext - FacesContext for the current requeststate - State to be restored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||