Package org.imixs.workflow.office.forms
Class ChildItemController
java.lang.Object
org.imixs.workflow.office.forms.ChildItemController
- All Implemented Interfaces:
Serializable
The CDI ChildItemController provides methods to display and edit sub items in
a sub-form. The controller provides methods to add or remove a childItem.
Each childItem is represented internally as a HashMap. To the front-end the
ChildItemController provides a list of ItemCollections
This CDI Controller can be used to provide different sub-views. The property
'_ChildItems' of the current WorkItem hold the items.
- Version:
- 1.0
- Author:
- rsoika
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd()Adds a new order itemdoubleconvertDouble(String aValue) protected voidexplodeChildList(org.imixs.workflow.ItemCollection workitem) converts the Map List of a workitem into a List of ItemCollectonsList<org.imixs.workflow.ItemCollection>This methd returns a ItemCollections for each orderItem stored in the property txtOrderItems.protected voidimplodeChildList(org.imixs.workflow.ItemCollection workitem) Convert the List of ItemCollections back into a List of Map elementsvoidonWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) WorkflowEvent listener to convert embeded HashMaps into ItemCollections and reconvert them before processingvoidremove(int pos) voidsetChildItems(List<org.imixs.workflow.ItemCollection> childItems)
-
Field Details
-
childItems
-
CHILD_ITEM_PROPERTY
- See Also:
-
-
Constructor Details
-
ChildItemController
public ChildItemController()
-
-
Method Details
-
setChildItems
-
getChildItems
This methd returns a ItemCollections for each orderItem stored in the property txtOrderItems. Example:#{childController.childItems}- Returns:
-
onWorkflowEvent
public void onWorkflowEvent(@Observes org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) throws org.imixs.workflow.exceptions.AccessDeniedException WorkflowEvent listener to convert embeded HashMaps into ItemCollections and reconvert them before processing- Parameters:
workflowEvent-- Throws:
org.imixs.workflow.exceptions.AccessDeniedException
-
add
public void add()Adds a new order item -
remove
public void remove(int pos) -
convertDouble
-
implodeChildList
protected void implodeChildList(org.imixs.workflow.ItemCollection workitem) Convert the List of ItemCollections back into a List of Map elements- Parameters:
workitem-
-
explodeChildList
protected void explodeChildList(org.imixs.workflow.ItemCollection workitem) converts the Map List of a workitem into a List of ItemCollectons
-