public class IlvDHTMLDecoder extends Object implements IlvFacesConstants
IlvDHTMLDecoder
class is a utility class used to update the
JViews Faces components with the update data extracted from the
request. decodeXXXProperty
looks for an available update
for the specified property. "updated"
to
update a bound bean property, if any, during the update model
phase of the life cycle.Modifier and Type | Class and Description |
---|---|
static interface |
IlvDHTMLDecoder.ObjectDecoder
This simple interface defines a decoder that converts a String value that comes from
the request to the correct property type.
|
Modifier and Type | Field and Description |
---|---|
javax.faces.component.UIComponent |
component
The component which is being decoded.
|
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 |
---|
IlvDHTMLDecoder(HashMap parameterMap,
javax.faces.component.UIComponent component)
Builds a new
IlvDecoder object. |
Modifier and Type | Method and Description |
---|---|
void |
decodeBooleanProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeByteProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeCharProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeClassNameOrValueBindingRef(String refPropertyId,
String classPropertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeColorProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeDependencyProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeDoubleArrayProperty(String propertyId)
Decodes a property of type array that contains doubles.
|
void |
decodeDoubleProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeGenericProperty(String propertyId,
IlvDHTMLDecoder.ObjectDecoder decoder)
Decodes the update data from the request URL for a specified property.
|
void |
decodeIntegerProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeLongProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeMethodBindingProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeShortProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeStringArrayProperty(String propertyId)
Decodes a property of type array that contains strings.
|
void |
decodeStringMapProperty(String propertyId)
Decodes a property of type map for which keys and values
are
String . |
void |
decodeStringProperty(String propertyId)
Decodes the update data from the request URL for a specified property.
|
void |
decodeValueBindingRef(String propertyId)
Decodes the update data from the request URL for a specified property.
|
String |
getUpdateData(String propertyId)
Returns the property update data for this component property from the client request without any processing.
|
public javax.faces.component.UIComponent component
public IlvDHTMLDecoder(HashMap parameterMap, javax.faces.component.UIComponent component)
IlvDecoder
object.parameterMap
- The parameter map
of the decoded properties of the
current component. Can be obtained by
getParameterMap(context, component)
in the decode
method of the renderer.component
- The component to update with the update data extracted
from the request.public String getUpdateData(String propertyId)
propertyId
- The ID of the property.public void decodeProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeGenericProperty(String propertyId, IlvDHTMLDecoder.ObjectDecoder decoder)
"decoded"
to update a bound bean property, if any.
This method use the ObjectDecoder
instance to decode the update data.propertyId
- The ID of the property.decoder
- The object decoder that converts the update data to the new property value.public void decodeStringArrayProperty(String propertyId)
propertyId
- The ID of the property to decode.public void decodeStringMapProperty(String propertyId)
String
.propertyId
- The ID of the property to decode.public void decodeStringProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeDoubleArrayProperty(String propertyId)
propertyId
- The ID of the property to decode.public void decodeDoubleProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeIntegerProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeBooleanProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeLongProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeShortProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeByteProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeCharProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeDependencyProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeColorProperty(String propertyId)
"decoded"
to update a bound bean property, if any.propertyId
- The ID of the property.public void decodeMethodBindingProperty(String propertyId)
propertyId
- The ID of the property to decode.public void decodeClassNameOrValueBindingRef(String refPropertyId, String classPropertyId)
refPropertyId
property.classPropertyId
property.refPropertyId
- The ID of the reference property.classPropertyId
- The ID of the class name property.public void decodeValueBindingRef(String propertyId)
refPropertyId
property.classPropertyId
property.propertyId
- The ID of the property to decode.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.