Package org.imixs.workflow.office.forms
Class ChildItemController
- java.lang.Object
-
- org.imixs.workflow.office.forms.ChildItemController
-
- All Implemented Interfaces:
Serializable
@Named @ConversationScoped public class ChildItemController extends Object implements 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHILD_ITEM_PROPERTYprotected List<org.imixs.workflow.ItemCollection>childItems
-
Constructor Summary
Constructors Constructor Description ChildItemController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd()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>getChildItems()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 Detail
-
childItems
protected List<org.imixs.workflow.ItemCollection> childItems
-
CHILD_ITEM_PROPERTY
public static final String CHILD_ITEM_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setChildItems
public void setChildItems(List<org.imixs.workflow.ItemCollection> childItems)
-
getChildItems
public List<org.imixs.workflow.ItemCollection> 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.AccessDeniedExceptionWorkflowEvent 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
public double convertDouble(String aValue)
-
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
-
-