public class IlvFacesComponentImpl extends Object implements IlvFacesComponent
IlvFacesComponentImpl, implements the IlvFacesComponent interface and
specifically manages the decoded state of the properties and the rendering
state of the component.AFTER_HANDLER, BASETEXTDIRECTION, BEFORE_HANDLER, BUTTON_GROUP_ID, BUTTON_TYPE, CHARTS_BUNDLE, CHARTS_MESSAGE_BUNDLE, CORE_BUNDLE, CORE_MESSAGE_BUNDLE, CURSOR, DATA, DECODED_PROPERTY, DEFAULT_LINE_COLOR, DELETION_ALLOWED, DIAGRAMMER_BUNDLE, DIAGRAMMER_MESSAGE_BUNDLE, ENABLED, EVENT_TYPE, FILL_ON, FORCE_UPDATE_PROPERTIES, FRAMEWORK_BUNDLE, FRAMEWORK_MESSAGE_BUNDLE, GANTT_BUNDLE, GANTT_MESSAGE_BUNDLE, HEIGHT, IMAGE, IMAGE_MODE, INFO_PROVIDER_MB, INT_NOT_DEFINED, INTERACTORS, INTERCEPT_INTERACTOR, ITEM_DISABLED_STYLE_CLASS, ITEM_HIGHLIGHTED_STYLE_CLASS, ITEM_STYLE_CLASS, LINE_COLOR, LINE_WIDTH, MAPS_BUNDLE, MAPS_MESSAGE_BUNDLE, MENU_MODEL_ID, MESSAGE, MESSAGE_BOX, MESSAGE_BOX_ID, MOVE_ALLOWED, OBJECT_FINDER, PARAM_COMPID, PARAM_DATA, PARAM_KEY, PARAM_NAMESPACE, PARAM_RESOURCE, PARAM_SERVICE, PARAM_TYPE, POPUP_MENU, POPUP_MENU_FACTORY, POPUP_MENU_FACTORY_CLASS, PORTLET_NAMESPACE, PROGRESSIVE_ZOOM, PROJECT, RENDER, RESOURCES_PATH, RESOURCES_PATH_PREFIX, ROLLOVER_IMAGE, SCROLL_BAR, SELECTED, SELECTED_IMAGE, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVLET, SERVLET_CLASS, SERVLET_URL, STYLE, STYLE_CLASS, TGO_BUNDLE, TGO_MESSAGE_BUNDLE, TITLE, TOGGLE, VALUE, VIEW, VIEW_ID, WIDTH| Constructor and Description |
|---|
IlvFacesComponentImpl()
Creates a new
IlvFacesComponentImpl instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
clearDecodedPropertyMap()
Empties the decoded properties maps.
|
Map |
getAttributes(jakarta.faces.component.UIComponent component)
Return a mutable
Map representing the attributes
(and properties, see below) associated with this UIComponent,
keyed by attribute name (which must be a String). |
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 |
resetDecodedProperties()
Resets the decoded properties of this component.
|
void |
restoreState(jakarta.faces.context.FacesContext context,
Object stateObj)
Restores the state of this component from the state parameter.
|
Object |
saveState(jakarta.faces.context.FacesContext context)
Returns the state of 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. |
public IlvFacesComponentImpl()
IlvFacesComponentImpl instance.public 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 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 as 'decoded'.public void resetDecodedProperties()
resetDecodedProperties in interface IlvFacesComponentpublic void clearDecodedPropertyMap()
clearDecodedPropertyMap in interface IlvFacesComponentpublic Map getAttributes(jakarta.faces.component.UIComponent component)
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.public Object saveState(jakarta.faces.context.FacesContext context)
saveState in interface IlvFacesComponentcontext - The current faces context.public void restoreState(jakarta.faces.context.FacesContext context,
Object stateObj)
restoreState in interface IlvFacesComponentcontext - The current faces context.stateObj - The previously saved state of this component.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.