|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.bpe.jsf.handler.BPCDetailsHandler
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.
<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 |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public BPCDetailsHandler()
Method Detail |
public java.lang.Object getModel()
public void itemChanged(java.lang.Object item)
ItemListener
itemChanged
in interface ItemListener
item
- The single item which has been selected.public java.lang.String getType()
public void setType(java.lang.String modelType)
modelType
- The model type namepublic java.util.List getPropertyList()
public java.util.List getSelectedItems()
ItemProvider
getSelectedItems
in interface ItemProvider
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |