Plumtree Portal UI  
 

AConditionType.RegisterMyConditionsList Method 

This method will register the type of Expandable List that this condition type will use to display its list of conditions. The expandable list is registered using the condition type's unique identifier. The Expandable List itself is merely an abstract class that needs to be extended. There are two list objects that have extended the Expandable List: 1) Growable List under package com.plumtree.uiinfrastructure.expandablelist.growablelist. This is a vary simple, but useful extenstion of the Expandable List consisting of an input box per row. Adding a new condition is as easy as inputting the condition value in the text box. Check out com.plumtree.portalpages.condition.conditiontypes.ConditionTypeURLDomain as an example of how to use the Growable List. 2) Select PTObject List under package com.plumtree.portaluiinfrastructure.expandablelist.selectptobject. The Select PTObject List allows users to select ptobjects easily. It comes set up with a pop up tree picker where you can select more than one object at a time, and it displays the name of the objects selected in the rows. Check out com.plumtree.portalpages.condition.conditiontypes.ConditionTypeCommunityID as an example of how to use the Select PTObject List. If neither of the two lists above suits your need, another option would be to create a new list by extending either of the two lists mentioned above, or extending Expandable List itself. Registering the chosen list involves registering a list model, a list view, and a list control. To register the model, use the RegiserModel() method of the ActivitySpace: asCurrentSpace.RegisterModel(MyListModel.STR_MVC_CLASS_NAME, GetConditionTypeIdentifier()); The registered list model is needed to register the view and the control, therefore, we need to get back the Model we just registered using this condition type's identifier: IModel myListModel = asCurrentSpace.GetModel(GetConditionTypeIdentifier()); Now that we have the model, we can continue to register the list view and the list control: asCurrentSpace.RegisterView(MyListListView.STR_MVC_CLASS_NAME, GetConditionTypeIdentifier(), myListModel); asCurrentSpace.RegisterControl(ExpListControl.STR_MVC_CLASS_NAME, GetConditionTypeIdentifier(), myListModel); It is very likely that the ExpListControl is sufficient to use and will not need to be extended. In such a case, simply register the ExpListControl as your list control.

public virtual void RegisterMyConditionsList(
   AActivitySpace asCurrentSpace
);

Parameters

asCurrentSpace
- the activityspace the expandable list will be registered to

See Also

AConditionType Class | com.plumtree.portaluiinfrastructure.condition Namespace