com.ibm.bpe.jsf.handler
Class BPCDetailsHandler

java.lang.Object
  extended bycom.ibm.bpe.jsf.handler.BPCDetailsHandler
All Implemented Interfaces:
ItemListener, ItemProvider

public class BPCDetailsHandler
extends java.lang.Object
implements ItemListener, ItemProvider

This class can be used as a Faces Managed Bean which provides the data shown in a Details Component. In order to link a Managed Bean of the type BPCDetailsHandler with a Details Component on a page, the Value Binding Expression of the list tag has to be targeted at the Managed Bean. For more information about the Details Component see DetailsTag. In order to get notified about selection changes, the DetailsHandler has to be set as ItemListener on the BPCListHandler. For more information about using the ItemListener interface, see the example under 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 get hold of meta information about the model objects that are accessed through the instance of the BPCDetailsHandler.

Example for referencing a BPCDetailsComponent instance as 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
static java.lang.String COPYRIGHT
           
 
Constructor Summary
BPCDetailsHandler()
           
 
Method Summary
 java.lang.Object getModel()
          Returns the model managed by this instance.
 java.util.List getPropertyList()
          Returns a list of objects that represent the properties of the model class.
 java.util.List getSelectedItems()
          Provides the list of selected items.
 java.lang.String getType()
          Returns the model type that this instance is supposed to deal with.
 void itemChanged(java.lang.Object item)
          Will be triggered if a new element has been selected in the ItemListener Event provider.
 void setType(java.lang.String modelType)
          Sets the model type that this this instance is supposed to deal with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

BPCDetailsHandler

public BPCDetailsHandler()
Method Detail

getModel

public java.lang.Object getModel()
Returns the model managed by this instance.

Returns:
The model object

itemChanged

public void itemChanged(java.lang.Object item)
Description copied from interface: ItemListener
Will be triggered if a new element has been selected in the ItemListener Event provider.

Specified by:
itemChanged in interface ItemListener
Parameters:
item - The single item which has been selected.

getType

public java.lang.String getType()
Returns the model type that this instance is supposed to deal with.

Returns:
The model type

setType

public void setType(java.lang.String modelType)
Sets the model type that this this instance is supposed to deal with.

Parameters:
modelType - The model type name

getPropertyList

public java.util.List getPropertyList()
Returns a list of objects that represent the properties of the model class. The objects in the list feature a name and value property that can be accessed using Value Binding Expressions.

Returns:
A list of the properties of the model

getSelectedItems

public java.util.List getSelectedItems()
Description copied from interface: ItemProvider
Provides the list of selected items.

Specified by:
getSelectedItems in interface ItemProvider
Returns:
a list of the selected items.