Interface IComponentAdapterBinding

All Superinterfaces:
IDynamicContentBindingObject, Serializable
All Known Subinterfaces:
IComponentAdapterBinding2, IFIXGRIDComponentAdapterBinding
All Known Implementing Classes:
ComponentAdapterBindingBase, ComponentAdapterBindingMap, ComponentAdapterByAnnotation, ComponentAdapterByAnnotationForBeanProperty

public interface IComponentAdapterBinding extends IDynamicContentBindingObject, Serializable
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 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 Type
    Method
    Description
    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.
    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

      Set<String> getFixAttributeNames()
      Name of the attributes that are set one time but not changed later on anymore.
    • getDynamicAttributeNames

      Set<String> getDynamicAttributeNames()
      Name of the attributes that are dynamic over the whole lifecycle of the corresponding object.
    • setAttributeValue

      void setAttributeValue(String attributeName, Object value)
      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

      Class getAttibuteType(String attributeName)
      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

      Object getAttributeValue(String attributeName)
      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.