|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.plumtree.uiinfrastructure.editor.EditorHelperModel
com.plumtree.uiinfrastructure.expandablelist.ExpListModel
com.plumtree.portalpages.admin.editors.group.SelectActivityRightsModel
public class SelectActivityRightsModel
This is the implementation of the Expandable List framework for the the Select List. The Select List is a list of objects. New objects can be added to the list by selecting them from the associated Object tree. The list is by default sorted by name ascending.
| Field Summary | |
|---|---|
static int |
EXPLIST_COL_CLASSID
This column contains the Object Class IDs. |
static int |
EXPLIST_COL_MAX
Number total of columns |
static int |
EXPLIST_COL_OBJECTID
This column contains the Object IDs. |
static int |
EXPLIST_COL_STRING
This is the String that we doisplay in the list. |
static int |
EXPLIST_DEFAULT_INITIAL_SIZE
Default initial size for the sorted array. |
protected int[] |
m_arrObjectClassIDs
Class ID of the Objects displayed on the list. |
protected boolean |
m_bIsInherited
Is this instance for inherited rights? Defaults to no. |
protected PTImageType |
m_imgRowIcon
Icon to display on each row, just before the input text. |
protected java.lang.String |
m_sTreeSpaceID
Tree Space ID. |
static java.lang.String |
STR_MVC_CLASS_NAME
Class name for the activity space |
static java.lang.String |
SUBSPACE_NAME_SELECTTREE
Key name used by the Activity Space to store the tree. |
| Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
|---|
m_asOwner |
| Constructor Summary | |
|---|---|
SelectActivityRightsModel()
|
|
| Method Summary | |
|---|---|
void |
AddRowsOnRepost(XPHashtable _htFormData)
Clear the list and add all the values from the tree. |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
boolean |
GetIsInherited()
Returns whether this list is inherited rights. |
java.lang.String |
GetName()
Returns the Class name. |
java.lang.String |
GetObjectClassIDs()
Returns the array of Class ID of the Objects displayed on the list as a String. |
PTImageType |
GetRowIcon()
Returns the icon to display on each row before the input text. |
java.lang.String |
GetSelectedItems()
Returns a String of Activity Right Object IDs. |
java.lang.String |
GetTreeSpaceID()
Returns tree AS ID. |
void |
InitializeSelectList(java.lang.String _sSectionTitle,
java.lang.String _sSectionSubTitle,
PTImageType _imgAddIcon,
java.lang.String _sAddLabel,
int[] _arrObjectClassIDs,
int _nListKey,
boolean _bIsInherited)
Initializes the expandable list. |
void |
InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
Initalizes the list (PTGrowableSortedArrayWrapper) with a column mapping and an array of sort. |
protected int |
SaveRow(PTGrowableSortedArrayWrapper _saData,
int _nRowIndex,
XPHashtable _htFormData)
Saves the data on the row _nRowIndex. |
protected void |
SaveTreeID(XPHashtable _htFormData)
Helper method to save the Tree ID on repost. |
void |
SetDefaultObjects(java.lang.Object[][] _arrRows)
Add the array passed in argument to the list. |
void |
SetEnableMoveRowActions(boolean _bEnableMoveRowActions)
Because this select list needs to support both move row actions enable and disable, we need to change the colspan of the header row when this happens. |
void |
SetRowIcon(PTImageType _imgRowIcon)
Sets the icon to display on each row before the input text. |
| Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
|---|
CleanupAllData, CleanupTempData, Init |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.plumtree.uiinfrastructure.expandablelist.IExpListModelRO |
|---|
GetAddIcon, GetAddIconAlt, GetAddLabel, GetAlertMessageForEmptyList, GetArrExpListColInfo, GetDeleteIcon, GetDeleteIconAlt, GetDelRowConfirmMsg, GetEmptyListInstructions, GetEmptyListMainMessage, GetEnableMoveRowActions, GetIsListReadOnly, GetListKey, GetMainColumnSort, GetMainColumnSortDirection, GetModelStorageName, GetReadOnlyItems, GetSectionTitle, GetTableInstructions, GetUniqueInt, GetUniqueString, GetUnusedProperties, GetWrapColumnHeaders, IsAddButtonDisabled, IsCheckBoxesDisabled, IsPaginationEnabled |
| Methods inherited from interface com.plumtree.uiinfrastructure.form.pagination.IPaginationModelRO |
|---|
GetCurrentLowerObjectCount, GetCurrentUpperObjectCount, GetNumObjects, GetPaginationSize |
| Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IModel |
|---|
CleanupAllData, CleanupTempData, Init |
| Field Detail |
|---|
public static final java.lang.String STR_MVC_CLASS_NAME
public static final java.lang.String SUBSPACE_NAME_SELECTTREE
public static final int EXPLIST_COL_MAX
public static final int EXPLIST_COL_CLASSID
public static final int EXPLIST_COL_OBJECTID
public static final int EXPLIST_COL_STRING
public static final int EXPLIST_DEFAULT_INITIAL_SIZE
protected boolean m_bIsInherited
protected PTImageType m_imgRowIcon
protected java.lang.String m_sTreeSpaceID
protected int[] m_arrObjectClassIDs
| Constructor Detail |
|---|
public SelectActivityRightsModel()
| Method Detail |
|---|
public void AddRowsOnRepost(XPHashtable _htFormData)
AddRowsOnRepost in class ExpListModel_htFormData - Form datapublic java.lang.Object Create()
EditorHelperModel
Create in interface IManagedObjectCreate in class EditorHelperModelIManagedObject.Create()public java.lang.String GetName()
GetName in interface IMVCObjectGetName in class EditorHelperModelpublic java.lang.String GetObjectClassIDs()
GetObjectClassIDs in interface ISelectActivityRightsModelROcom.plumtree.portalpages.common.selectptobject.SelectPTObjectModel#GetObjectClassIDs()public PTImageType GetRowIcon()
GetRowIcon in interface ISelectActivityRightsModelROcom.plumtree.portalpages.common.selectptobject.SelectPTObjectModel#GetRowIcon()public java.lang.String GetSelectedItems()
GetSelectedItems in interface ISelectActivityRightsModelROSelectPTObjectModel.GetSelectedItems()public java.lang.String GetTreeSpaceID()
GetTreeSpaceID in interface ISelectActivityRightsModelROcom.plumtree.portalpages.common.selectptobject.SelectPTObjectModel#GetTreeSpaceID()public boolean GetIsInherited()
GetIsInherited in interface ISelectActivityRightsModelRO
public void InitializeSelectList(java.lang.String _sSectionTitle,
java.lang.String _sSectionSubTitle,
PTImageType _imgAddIcon,
java.lang.String _sAddLabel,
int[] _arrObjectClassIDs,
int _nListKey,
boolean _bIsInherited)
_sSectionTitle - Main title._sSectionSubTitle - Sub title_imgAddIcon - Icon for the add action._sAddLabel - Text to display next to the add icon._arrObjectClassIDs - Class ID of the Objects displayed on the list._nListKey - In case you have multiple Expandable Lists on
the same DP, they should have a different key (otherwise, just set it to 1)._bIsInherited - are we dealing with inherited rights.public void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
InitializeSortedArray in class ExpListModel_saData - public void SetDefaultObjects(java.lang.Object[][] _arrRows)
_arrRows - Array of rows to add.public void SetEnableMoveRowActions(boolean _bEnableMoveRowActions)
SetEnableMoveRowActions in class ExpListModel_bEnableMoveRowActions - public void SetRowIcon(PTImageType _imgRowIcon)
_imgRowIcon -
protected int SaveRow(PTGrowableSortedArrayWrapper _saData,
int _nRowIndex,
XPHashtable _htFormData)
SaveRow in class ExpListModel_saData - List to update the data on row _nRowIndex_nRowIndex - Index of the row to save._htFormData - Data posted by the form.
protected void SaveTreeID(XPHashtable _htFormData)
_htFormData - Form data
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||