Class ComponentAdapterByAnnotation
java.lang.Object
org.eclnt.jsfserver.elements.adapter.ComponentAdapterByAnnotation
- All Implemented Interfaces:
Serializable
,IComponentAdapterBinding
,IComponentAdapterBinding2
,IDynamicContentBindingObject
- Direct Known Subclasses:
ComponentAdapterByAnnotationForBeanProperty
Component adapter binding that is configured by get-/set-methods and
annotations. Component attributes can be directly bound to get-/set-method
using the annotation
ComponentAttribute
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionListener
(IActionListener listener) getAttibuteType
(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.Used if adapter is used in grid column.void
initComponent
(IBaseComponent component) This method is called when the component processing first time "touches" the component adapter binding instance.void
onAction
(javax.faces.event.ActionEvent event) Action listener that is called when the component processes an action event.void
removeActionListener
(IActionListener listener) void
setAttributeValue
(String attributeName, Object value) Set the attribute value.
-
Constructor Details
-
ComponentAdapterByAnnotation
public ComponentAdapterByAnnotation()
-
-
Method Details
-
initComponent
Description copied from interface:IComponentAdapterBinding2
This method is called when the component processing first time "touches" the component adapter binding instance. By passing the component, the adapter binding can directly react and adapt its behavior.
Example the edit-able value behind a component is kept in different attributes, dependent on the control (FIELD-TEXT, COMBOFIELD-VALUE, CHECKBOX-SELECTED).- Specified by:
initComponent
in interfaceIComponentAdapterBinding2
-
getFixAttributeNames
Description copied from interface:IComponentAdapterBinding
Name of the attributes that are set one time but not changed later on anymore.- Specified by:
getFixAttributeNames
in interfaceIComponentAdapterBinding
-
getDynamicAttributeNames
Description copied from interface:IComponentAdapterBinding
Name of the attributes that are dynamic over the whole lifecycle of the corresponding object.- Specified by:
getDynamicAttributeNames
in interfaceIComponentAdapterBinding
-
setAttributeValue
Description copied from interface:IComponentAdapterBinding
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).- Specified by:
setAttributeValue
in interfaceIComponentAdapterBinding
-
getAttibuteType
Description copied from interface:IComponentAdapterBinding
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.- Specified by:
getAttibuteType
in interfaceIComponentAdapterBinding
-
getAttributeValue
Description copied from interface:IComponentAdapterBinding
Get the attribute value for an attribute.- Specified by:
getAttributeValue
in interfaceIComponentAdapterBinding
-
onAction
public void onAction(javax.faces.event.ActionEvent event) Description copied from interface:IComponentAdapterBinding
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.- Specified by:
onAction
in interfaceIComponentAdapterBinding
-
addActionListener
-
removeActionListener
-
getSortValue
Used if adapter is used in grid column. In this case the sorting uses this method to retrieve the value to sort for. Default implementation: check for value in default properties "text", "value", "selected" -
getExportValue
-
getExportValueFormat
-
getExportValueFormatmask
-
getExportValueTimezone
-