com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.selectptobjectsbytype
Class SelectPTObjectsByTypeModel
java.lang.Object
com.plumtree.uiinfrastructure.editor.EditorHelperModel
com.plumtree.uiinfrastructure.expandablelist.ExpListModel
com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel
com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.selectptobjectsbytype.SelectPTObjectsByTypeModel
- All Implemented Interfaces:
- ISelectPTObjectModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IExpListModelRO, IPaginationModel, IPaginationModelRO
- Direct Known Subclasses:
- ObjectSecurityModel
public class SelectPTObjectsByTypeModel
- extends SelectPTObjectModel
This model sorts the expandable list of pt objects first by class id
and then by name.
- Author:
- DonH
Field Summary |
static java.lang.String |
STR_MVC_CLASS_NAME
Class name for the activity space |
Fields inherited from class com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel |
CREATE_NEW_COL_ASNAME, CREATE_NEW_COL_CLASSID, CREATE_NEW_COL_ICON, CREATE_NEW_COL_LABEL, CREATE_NEW_COL_MAX, CREATE_NEW_COL_MAXWITHPARAMS, CREATE_NEW_COL_PARAMS, EXPLIST_COL_CLASSID, EXPLIST_COL_MAX, EXPLIST_COL_OBJECTID, EXPLIST_COL_STRING, EXPLIST_DEFAULT_INITIAL_SIZE, HIDE_COL_CLASSID, HIDE_COL_MAX, HIDE_COL_OBJECTID, m_arrCreateNewInfo, m_arrObjectClassIDs, m_arrReadOnlyObjects, m_bNoRowIcons, m_bTreeMultiSelect, m_imgDefaultRowIcon, m_nAccessLevel, m_nCommunityFolderID, m_nCommunityMode, m_sDisplayObjects, m_sTreeSpaceID, m_sTreeSubTitle, m_sTreeTitle, m_strObjectsToHide, m_strTreeQueryFilter, m_treeLeafType, m_xphtRowIcons, PARAM_COL_PARAMNAME, PARAM_COL_PARAMVALUE, READ_ONLY_ROW_CLASSID, READ_ONLY_ROW_OBJECTID, SUBSPACE_KEY_SELECTTREE |
Fields inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListModel |
EXPLIST_COLUMN_COLSPAN, EXPLIST_COLUMN_ENABLESORT, EXPLIST_COLUMN_ID, EXPLIST_COLUMN_INVALID, EXPLIST_COLUMN_TITLE, EXPLIST_COLUMN_WIDTH, EXPLIST_SORTEDARRAY_PROPID_INDEX, m_arrExpListColInfo, m_bAddButtonDisabled, m_bCheckBoxesDisabled, m_bEnableMoveRowActions, m_bIsReadOnly, m_bWrapColumnHeaders, m_imgAddIcon, m_imgDeleteIcon, m_nListKey, m_nNextIndex, m_saData, m_sAddIconAlt, m_sAddLabel, m_sDeleteIconAlt, m_sDelRowConfirmMsg, m_sEmptyListAlert, m_sInstructions, m_sMainMessage, m_sSectionTitle, m_sTableInstructions, MAX_ROWS, MOVEACTION_DOWN, MOVEACTION_FIRST, MOVEACTION_LAST, MOVEACTION_UP, parent |
Method Summary |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed
objects. |
protected int[] |
GetArrayOfColumns()
Helper method to get the sort. |
int |
GetMainColumnSort()
Returns the column ID of the primary sorted column. |
int |
GetMainColumnSortDirection()
Returns the sort direction of the primary sorted column. |
java.lang.String |
GetName()
Returns the Class name. |
void |
InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
Initalizes the list (PTGrowableSortedArrayWrapper)
with a column mapping and an array of sort. |
void |
ReverseCurrentSort()
Reverses the sort of all the sorted columns. |
void |
SortByColumn(XPHashtable _htFormData)
Gets the column ID back from the form data and resort
the array by that column ID, ascending. |
Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.selectptobject.SelectPTObjectModel |
AddControlParamsToURL, AddRowsOnRepost, ClearHiddenObjects, ContainsObject, CreateIndexMapping, DoTaskOnComeBackFromSubEditor, GetAccessLevel, GetCommunityFolderID, GetCommunityMode, GetCreateNewInfo, GetCreateNewURL, GetDefaultRowIcon, GetDisplayObjects, GetEditObjectURL, GetHiddenObjects, GetIndex, GetNoRowIcons, GetObjectClassIDs, GetRowIconByClassID, GetSelectedItems, GetSelectedNamesAsHTML, GetTreeLeafType, GetTreeMultiSelect, GetTreeQueryFilter, GetTreeSpaceID, GetTreeSubTitle, GetTreeTitle, GetUniquePopUpName, InitializeListClassIDs, InitializeReadOnlySelectPTObject, InitializeSelectPTObject, IsEditLinkEnabled, IsObjectReadOnly, ResetTreeID, SaveRow, SaveTreeID, SetAccessLevel, SetCommunityFolderID, SetCommunityMode, SetDefaultObjects, SetDefaultRowIcon, SetDisplayObjects, SetEnableCreateNew, SetEnableMoveRowActions, SetHiddenObjects, SetNoRowIcons, SetReadOnlyObjects, SetRowIconByClassID, SetTreeLeafType, SetTreeMultiSelect, SetTreeQueryFilter, SetTreeSubTitle, SetTreeTitle |
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListModel |
DeleteRowsOnRepost, DisableAddButton, DisableCheckBoxes, EnablePagination, GetAddIcon, GetAddIconAlt, GetAddLabel, GetAlertMessageForEmptyList, GetArrayOfObjToDelete, GetArrExpListColInfo, GetCurrentLowerObjectCount, GetCurrentUpperObjectCount, GetDeleteIcon, GetDeleteIconAlt, GetDelRowConfirmMsg, GetEmptyListInstructions, GetEmptyListMainMessage, GetEnableMoveRowActions, GetIsListReadOnly, GetItems, GetListKey, GetModelStorageName, GetMoveAction, GetNumObjects, GetPaginationSize, GetReadOnlyItems, GetRowIndex, GetSectionTitle, GetTableInstructions, GetUniqueInt, GetUniqueString, GetUnusedProperties, GetWrapColumnHeaders, InitializeExpandableList, InitializeReadOnlyExpandableList, IsAddButtonDisabled, IsCheckBoxesDisabled, IsPaginationEnabled, ModifyRow, MoveDown, MoveFirst, MoveLast, MoveRow, MoveUp, SaveSection, SetAddIcon, SetAddIconAlt, SetDeleteIcon, SetDeleteIconAlt, SetDelRowConfirmMsg, SetEmptyListMessages, SetEnableEmptyListClientValidation, SetIsListReadOnly, SetListKey, SetPagination, SetSectionTitle, SetTableInstructions, SetWrapColumnHeaders |
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, GetModelStorageName, GetReadOnlyItems, GetSectionTitle, GetTableInstructions, GetUniqueInt, GetUniqueString, GetUnusedProperties, GetWrapColumnHeaders, IsAddButtonDisabled, IsCheckBoxesDisabled, IsPaginationEnabled |
STR_MVC_CLASS_NAME
public static final java.lang.String STR_MVC_CLASS_NAME
- Class name for the activity space
- See Also:
- Constant Field Values
SelectPTObjectsByTypeModel
public SelectPTObjectsByTypeModel()
GetMainColumnSort
public int GetMainColumnSort()
- Returns the column ID of the primary sorted column.
(the array can be sorted by multiple columns)
- Specified by:
GetMainColumnSort
in interface IExpListModelRO
- Overrides:
GetMainColumnSort
in class ExpListModel
- Returns:
- int
- See Also:
ExpListModel.GetMainColumnSort()
GetMainColumnSortDirection
public int GetMainColumnSortDirection()
- Returns the sort direction of the primary sorted column.
- Specified by:
GetMainColumnSortDirection
in interface IExpListModelRO
- Overrides:
GetMainColumnSortDirection
in class ExpListModel
- Returns:
- int
- See Also:
ExpListModel.GetMainColumnSortDirection()
InitializeSortedArray
public void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
- Initalizes the list (PTGrowableSortedArrayWrapper)
with a column mapping and an array of sort.
The growable array will always be sorted by the 1st
column ascending.
- Overrides:
InitializeSortedArray
in class SelectPTObjectModel
- Parameters:
_saData
-
GetArrayOfColumns
protected int[] GetArrayOfColumns()
- Helper method to get the sort.
This method should be overridden if the colums are different.
- Returns:
- int[]
ReverseCurrentSort
public void ReverseCurrentSort()
- Reverses the sort of all the sorted columns.
- Overrides:
ReverseCurrentSort
in class ExpListModel
SortByColumn
public void SortByColumn(XPHashtable _htFormData)
- Gets the column ID back from the form data and resort
the array by that column ID, ascending.
- Overrides:
SortByColumn
in class ExpListModel
- Parameters:
_htFormData
-
GetName
public java.lang.String GetName()
- Returns the Class name.
- Specified by:
GetName
in interface IMVCObject
- Overrides:
GetName
in class SelectPTObjectModel
- Returns:
- String
Create
public java.lang.Object Create()
- Description copied from class:
EditorHelperModel
- This method is used by the ASManager to return new instances of managed
objects.
- Specified by:
Create
in interface IManagedObject
- Overrides:
Create
in class SelectPTObjectModel
- Returns:
- A new instance of the managed class (i.e. return new Foo();)
- See Also:
IManagedObject.Create()