com.plumtree.uiinfrastructure.expandablelist.multicolumnlist.sorted
Class SortedMultiColumnListModel
java.lang.Object
com.plumtree.uiinfrastructure.editor.EditorHelperModel
com.plumtree.uiinfrastructure.expandablelist.ExpListModel
com.plumtree.uiinfrastructure.expandablelist.multicolumnlist.MultiColumnListModel
com.plumtree.uiinfrastructure.expandablelist.multicolumnlist.sorted.SortedMultiColumnListModel
- All Implemented Interfaces:
- IManagedObject, IModel, IModelRO, IMVCObject, IExpListModelRO, IMultiColumnListModelRO, IPaginationModel, IPaginationModelRO
- Direct Known Subclasses:
- SortedMetaDataListModel, TagLibListModel
public class SortedMultiColumnListModel
- extends MultiColumnListModel
This model allows you to use a sorted multi column list.
- Author:
- DonH
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. |
java.lang.String |
GetName()
Returns the Class name. |
void |
InitializeMultiColumnList(java.lang.String _sSectionTitle,
java.lang.String[] _sSectionSubTitle,
java.lang.Boolean[] _bEnableSort,
int _nDefaultSortColumn,
PTImageType _imgAddIcon,
java.lang.String _sAddLabel,
int _nListKey)
Initializes the expandable list. |
void |
InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
Initalizes the list (PTGrowableSortedArrayWrapper) with a column mapping
and a sort array. |
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.multicolumnlist.MultiColumnListModel |
AddRowsOnRepost, AddRowsToList, GetListValues, GetNumColumns, GetRowIcon, InitializeMultiColumnList, SaveRow, SetDefaultValue, SetFormDataKeys, SetNumColumns, SetRowIcon |
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, GetMainColumnSort, GetMainColumnSortDirection, GetModelStorageName, GetMoveAction, GetNumObjects, GetPaginationSize, GetReadOnlyItems, GetRowIndex, GetSectionTitle, GetTableInstructions, GetUniqueInt, GetUniqueString, GetUnusedProperties, GetWrapColumnHeaders, InitializeExpandableList, InitializeReadOnlyExpandableList, IsAddButtonDisabled, IsCheckBoxesDisabled, IsPaginationEnabled, ModifyRow, MoveDown, MoveFirst, MoveLast, MoveRow, MoveUp, ReverseCurrentSort, SaveSection, SetAddIcon, SetAddIconAlt, SetDeleteIcon, SetDeleteIconAlt, SetDelRowConfirmMsg, SetEmptyListMessages, SetEnableEmptyListClientValidation, SetEnableMoveRowActions, SetIsListReadOnly, SetListKey, SetPagination, SetSectionTitle, SetTableInstructions, SetWrapColumnHeaders, SortByColumn |
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 |
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
m_nDefaultSortColumn
protected int m_nDefaultSortColumn
- Zero based column id for the default column to sort by.
SortedMultiColumnListModel
public SortedMultiColumnListModel()
InitializeMultiColumnList
public void InitializeMultiColumnList(java.lang.String _sSectionTitle,
java.lang.String[] _sSectionSubTitle,
java.lang.Boolean[] _bEnableSort,
int _nDefaultSortColumn,
PTImageType _imgAddIcon,
java.lang.String _sAddLabel,
int _nListKey)
- Initializes the expandable list.
- Parameters:
_sSectionTitle
- Main title._sSectionSubTitle
- Sub title_bEnableSort
- for each column_nDefaultSortColumn
- the zero based column id for the default column to sort by._imgAddIcon
- Icon for the add action._sAddLabel
- Text to display next to the add icon._nListKey
- In case you have multiple Expandable Lists on the same
DP, they should have a different key (otherwise, just set it to
1).
InitializeSortedArray
public void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
- Initalizes the list (PTGrowableSortedArrayWrapper) with a column mapping
and a sort array. The growable array will always be sorted by the
1st column ascending.
- Overrides:
InitializeSortedArray
in class MultiColumnListModel
- Parameters:
_saData
-
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 MultiColumnListModel
- Returns:
- A new instance of the managed class (i.e. return new Foo();)
- See Also:
IManagedObject.Create()
GetName
public java.lang.String GetName()
- Returns the Class name.
- Specified by:
GetName
in interface IMVCObject
- Overrides:
GetName
in class MultiColumnListModel
- Returns:
- String