Interface IComponentAdapterBinding
- All Superinterfaces:
IDynamicContentBindingObject
,Serializable
- All Known Subinterfaces:
IComponentAdapterBinding2
,IFIXGRIDComponentAdapterBinding
- All Known Implementing Classes:
ComponentAdapterBindingBase
,ComponentAdapterBindingMap
,ComponentAdapterByAnnotation
,ComponentAdapterByAnnotationForBeanProperty
Interface to be implemented by objects serving as "adapter binding" objects.
Implementations need to declare which properties they are providing - by implementing the corresponding methods
Implementations need to declare which properties they are providing - by implementing the corresponding methods
getFixAttributeNames()
and getDynamicAttributeNames()
.
The differentiation is made because of performance reasons: fix properties are only examined
once at runtime, dynamic properties are examined with every request processing.-
Method Summary
Modifier and TypeMethodDescriptiongetAttibuteType
(String attributeName) This method needs only to be implemented for these attributes which are set later on.getAttributeValue
(String attributeName) Get the attribute value for an attribute.Name of the attributes that are dynamic over the whole lifecycle of the corresponding object.Name of the attributes that are set one time but not changed later on anymore.void
onAction
(javax.faces.event.ActionEvent event) Action listener that is called when the component processes an action event.void
setAttributeValue
(String attributeName, Object value) Set the attribute value.
-
Method Details
-
getFixAttributeNames
Name of the attributes that are set one time but not changed later on anymore. -
getDynamicAttributeNames
Name of the attributes that are dynamic over the whole lifecycle of the corresponding object. -
setAttributeValue
Set the attribute value. This only needs to be implemented for these attributes that are actually set (e.g. in case of a FIELD component only the attribute that manages the TEXT attribute needs to implement the corresponding reaction). -
getAttibuteType
This method needs only to be implemented for these attributes which are set later on. It needs not to be implemented for these attributes that are "get-only". In case of returning null as type the default mechanism will be used for transferring the UI value into an object value. -
getAttributeValue
Get the attribute value for an attribute. -
onAction
void onAction(javax.faces.event.ActionEvent event) Action listener that is called when the component processes an action event. This action listener is called when no explicit actionListener is defined with the component.
-