com.ibm.bpe.jsf.handler

Class BPCDetailsHandler

  1. java.lang.Object
  2. extended bycom.ibm.bpe.jsf.handler.BPCDetailsHandler
All implemented interfaces:
ItemListener, ItemProvider

  1. public class BPCDetailsHandler
  2. extends java.lang.Object
  3. implements ItemListener, ItemProvider
This class can be used as a Faces Managed Bean that provides the data displayed in a Details Component. In order to associate a Managed Bean of type BPCDetailsHandler with a Details Component on a page, the Value Binding Expression of the list tag must be targeted at the Managed Bean. For more information about the Details Component, see DetailsTag. In order to be notified of selection changes, the DetailsHandler must be set as ItemListener on the BPCListHandler. For more information about using the ItemListener interface, see the example in ItemListener.

Example:

        <managed-bean>
                <managed-bean-name>TaskTemplateDetails</managed-bean-name>
                <managed-bean-class>com.ibm.bpe.jsf.handler.BPCDetailsHandler</managed-bean-class>
                <managed-bean-scope>session</managed-bean-scope>
                <managed-property>
                        <property-name>type</property-name>
                        <value>com.ibm.bpe.client.model.TaskTemplateBean</value>
                </managed-property>
        </managed-bean>


 
The specified type enables Components to retrieve metadata about the model objects, accessed through an instance of the BPCDetailsHandler class.

Example of referencing a BPCDetailsComponent instance as a model of a DetailsComponent:

              <bpe:details model="#{ProcessInstanceDetails}" styleClass="details" columnClasses="detailsProperty,detailsValue">
                                                <bpe:property name="processTemplateName" />                          
                                                <bpe:property name="starter" />                      
                                                <bpe:property name="processAdministrators" />                        
                                                <bpe:property name="creationTime" />
                                                <bpe:property name="startTime" />
              </bpe:details>

 

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Constructor Summary

Constructor and Description
BPCDetailsHandler()

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
getModel()
Returns the model managed by this instance.
  1. java.util.List
getPropertyList()
Returns a list of the objects that represent the properties of the model class.
  1. java.util.List
getSelectedItems()
  1. java.lang.String
getType()
Returns the model type that this instance is to be associated with.
  1. void
itemChanged(java.lang.Object item)
  1. void
setType(java.lang.String modelType)
Sets the model type that this instance is to be associated with.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

  1. public static final java.lang.String COPYRIGHT
See Also:

Constructor Detail

BPCDetailsHandler

  1. public BPCDetailsHandler()

Method Detail

getModel

  1. public java.lang.Object getModel( )
Returns the model managed by this instance.
Returns:
The model object

itemChanged

  1. public void itemChanged(java.lang.Object item)
Description copied from interface: ItemListener
Triggered whenever a new element is selected in the ItemListener event provider.
Specified by:
itemChanged in interface ItemListener
Parameters:
item - The item that has been selected.

getType

  1. public java.lang.String getType( )
Returns the model type that this instance is to be associated with.
Returns:
The model type

setType

  1. public void setType(java.lang.String modelType)
Sets the model type that this instance is to be associated with.
Parameters:
modelType - The model type name

getPropertyList

  1. public java.util.List getPropertyList( )
Returns a list of the objects that represent the properties of the model class. Each of the objects in the list feature a name and value property, which can be accessed using Value Binding Expressions.
Returns:
A list of the model's properties

getSelectedItems

  1. public java.util.List getSelectedItems( )
Description copied from interface: ItemProvider
Returns the list of selected items.
Specified by:
Returns:
a list of the selected items.