public class IlvBasicView extends javax.faces.component.UIGraphic implements IlvFacesComponent
UIGraphic
object.Modifier and Type | Field and Description |
---|---|
protected IlvObjectSelectedFinder |
DEFAULT_OBJECT_FINDER
The default finder used to pick an object on this view.
|
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
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 |
---|
IlvBasicView()
Creates a new
IlvBasicView instance. |
Modifier and Type | Method and Description |
---|---|
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). |
String |
getBaseTextDirection()
Returns the baseTextDirection.
|
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(javax.faces.context.FacesContext context)
Handles the "Update Model Values" phase of the JSF lifecycle.
|
void |
resetDecodedProperties()
Resets the decoded properties of this component.
|
void |
restoreState(javax.faces.context.FacesContext context,
Object stateObj)
Restores the state of this component from the
stateObj parameter. |
Object |
saveState(javax.faces.context.FacesContext context)
Returns the state of this component.
|
void |
setBaseTextDirection(String baseTextDirection)
Sets the baseTextDirection.
|
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(javax.faces.context.FacesContext context)
This method updates the referenced values with the local values of the
component if these values were updated from the client.
|
getUrl, getValue, getValueBinding, getValueExpression, setUrl, setValue, setValueBinding, setValueExpression
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTree
protected IlvObjectSelectedFinder DEFAULT_OBJECT_FINDER
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 javax.faces.component.UIGraphic
public 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 javax.faces.component.UIComponentBase
public void clearDecodedPropertyMap()
clearDecodedPropertyMap
in interface IlvFacesComponent
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 IlvFacesComponent
property
- The property
to test.true
if the property
was decoded, false
otherwise.public void resetDecodedProperties()
resetDecodedProperties
in interface IlvFacesComponent
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 IlvFacesComponent
property
- 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 String getBaseTextDirection()
public void setBaseTextDirection(String baseTextDirection)
baseTextDirection
- The base Text Direction to set.public IlvObjectSelectedFinder getDefaultObjectFinder()
null
otherwise.public void processUpdates(javax.faces.context.FacesContext context)
processUpdates
in class javax.faces.component.UIComponentBase
public void updateModel(javax.faces.context.FacesContext context)
context
- The current faces context.public Object saveState(javax.faces.context.FacesContext context)
saveState
in interface IlvFacesComponent
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
context
- The current faces context.state
of this component.public void restoreState(javax.faces.context.FacesContext context, Object stateObj)
stateObj
parameter.restoreState
in interface IlvFacesComponent
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
context
- The current faces context.stateObj
- The previously saved state of this component.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.