|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.bpe.jsf.handler.BPCDetailsHandler
public class BPCDetailsHandler
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.
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 | |
---|---|
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 the objects that represent the properties of the model class. |
java.util.List |
getSelectedItems()
Returns the list of selected items. |
java.lang.String |
getType()
Returns the model type that this instance is to be associated with. |
void |
itemChanged(java.lang.Object item)
Triggered whenever a new element is selected in the ItemListener event provider. |
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 |
---|
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 item that 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 |