|
||||||||||
| 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.UIGraphic
ilog.views.faces.component.IlvBasicView
public class IlvBasicView
This class defines a basic JViews Faces view by extending the JSF UIGraphic
object.
| Field Summary | |
|---|---|
protected IlvObjectSelectedFinder |
DEFAULT_OBJECT_FINDER
The default finder used to pick an object on this view. |
| Fields inherited from class javax.faces.component.UIGraphic |
|---|
COMPONENT_FAMILY, COMPONENT_TYPE |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
IlvBasicView()
Creates a new IlvBasicView instance. |
|
| Method Summary | |
|---|---|
void |
clearDecodedPropertyMap()
Clears the decoded properties. |
protected IlvFacesComponent |
createFacesComponent()
Creates the instance of IlvFacesComponent that will used as support. |
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). |
static String |
getComponentType()
Returns the component type identifier of this component. |
Object |
getData()
Returns the data to be displayed by this component |
IlvObjectSelectedFinder |
getDefaultObjectFinder()
Returns the default finder of this view. |
String |
getFamily()
Returns the identifier of the component family to which this component belongs. |
int |
getHeight()
Returns the height in pixels of this component. |
IlvMessageBox |
getMessageBox()
Returns the associated message box. |
String |
getMessageBoxId()
The ID of the associated message box. |
String |
getStyle()
Returns the inline client style of this component. |
String |
getStyleClass()
Returns the client CSS class(es) of this component. |
int |
getWidth()
Returns the width in pixels of this component. |
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 lifecycle. |
void |
resetDecodedProperties()
Resets the decoded properties of this component. |
void |
restoreState(FacesContext context,
Object stateObj)
Restores the state of this component from the stateObj parameter. |
Object |
saveState(FacesContext context)
Returns the state of this component. |
void |
setData(Object data)
Sets the data to be displayed by this component. |
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
lifecycle. |
void |
setHeight(int height)
Sets the height in pixels of this component. |
void |
setMessageBox(IlvMessageBox messageBox)
Sets the message box to this instance of this view. |
void |
setMessageBoxId(String messageBoxId)
Sets a message box ID to this view. |
void |
setStyle(String style)
Sets the inline client style. |
void |
setStyleClass(String styleClass)
Sets the client CSS class(es). |
void |
setWidth(int width)
Sets the width in pixels of this component. |
void |
updateModel(FacesContext context)
This method updates the referenced values with the local values of the component if these values were updated from the client. |
| Methods inherited from class javax.faces.component.UIGraphic |
|---|
getUrl, getValue, getValueBinding, getValueExpression, setUrl, setValue, setValueBinding, setValueExpression |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IlvObjectSelectedFinder DEFAULT_OBJECT_FINDER
| Constructor Detail |
|---|
public IlvBasicView()
IlvBasicView instance.
| Method Detail |
|---|
protected IlvFacesComponent createFacesComponent()
IlvFacesComponent that will used as support.
public String getFamily()
Returns 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.
This implementation returns the fully qualified class name.
getFamily in class UIGraphicpublic static String getComponentType()
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 writable, or an attempt is made to
set a property of primitive type to null,
throw IllegalArgumentException.remove - Throw
IllegalArgumentException.
getAttributes in class UIComponentBasepublic void clearDecodedPropertyMap()
clearDecodedPropertyMap in interface IlvFacesComponentpublic 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
lifecycle. 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 String getStyle()
style of this component.
style of this component.public String getStyleClass()
public void setStyle(String style)
style.
style - The inline client style.public void setStyleClass(String styleClass)
styleClass - The client CSS class(es).public IlvMessageBox getMessageBox()
public String getMessageBoxId()
public void setMessageBox(IlvMessageBox messageBox)
messageBox - The message box to set to the view.public void setMessageBoxId(String messageBoxId)
messageBoxId - The ID of the message box to set to the view.public int getHeight()
height in pixels of this component.
height in pixels of this component.public int getWidth()
width in pixels of this component.
width in pixels of this component.public void setHeight(int height)
height in pixels of this component. This attribute will override
the size defined by the style or styleClass attribute.
public void setWidth(int width)
width in pixels of this component. This attribute will override
the size defined by the style or styleClass attribute.
public Object getData()
public void setData(Object data)
data - The data to display.public IlvObjectSelectedFinder getDefaultObjectFinder()
null otherwise.public void processUpdates(FacesContext context)
processUpdates in class UIComponentBasepublic void updateModel(FacesContext context)
context - The current faces context.public Object saveState(FacesContext context)
saveState in interface IlvFacesComponentsaveState in interface StateHoldersaveState in class UIGraphiccontext - The current faces context.
state of this component.
public void restoreState(FacesContext context,
Object stateObj)
stateObj parameter.
restoreState in interface IlvFacesComponentrestoreState in interface StateHolderrestoreState in class UIGraphiccontext - The current faces context.stateObj - The previously saved state of this component.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||