com.ibm.bpe.jsf.handler
Class BPCDetailsHandler
- java.lang.Object
com.ibm.bpe.jsf.handler.BPCDetailsHandler
All implemented interfaces:
- public class BPCDetailsHandler
- extends java.lang.Object
- implements ItemListener, ItemProvider
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 |
---|---|
|
COPYRIGHT
|
Constructor Summary
Constructor and Description |
---|
BPCDetailsHandler()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getModel()
Returns the model managed by this instance.
|
|
getPropertyList()
Returns a list of the objects that represent the properties of the model class.
|
|
getSelectedItems()
|
|
getType()
Returns the model type that this instance is to be associated with.
|
|
itemChanged(java.lang.Object item)
|
|
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
COPYRIGHT
- public static final java.lang.String COPYRIGHT
See Also:
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
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
- public java.lang.String getType( )
Returns the model type that this instance is to be associated with.
Returns:
The model type
setType
- 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
- 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
- public java.util.List getSelectedItems( )
Description copied from interface:
ItemProvider
Returns the list of selected items.
Specified by:
getSelectedItems
in interface ItemProvider
Returns:
a list of the selected items.