Uiinfrastructure API Docs  
 

PTSortedArrayWrapper Fields

The fields of the PTSortedArrayWrapper class are listed below. For a complete list of PTSortedArrayWrapper class members, see the PTSortedArrayWrapper Members topic.

Public Static Fields

PTSAW_NEWITEMSINFO_INDEX JF- This is used by the SetItems method. The new items info (row index, prop ID and new cell value) is a 2D array. PTSAW_NEWITEMSINFO_INDEX identifies the column in the array that stores the row index of the cell to modify.
PTSAW_NEWITEMSINFO_NEWVALUE JF- This is used by the SetItems method. The new items info (row index, prop ID and new cell value) is a 2D array. PTSAW_NEWITEMSINFO_NEWVALUE identifies the column in the array that stores the new cell value.
PTSAW_NEWITEMSINFO_PROPERTYID JF- This is used by the SetItems method. The new items info (row index, prop ID and new cell value) is a 2D array. PTSAW_NEWITEMSINFO_COLUMNID identifies the column in the array that stores the column of the cell to modify.
PTSAW_SORT_ASCENDING MES- PTSAW_SORT_ASCENDING indicates that a column is sorted ascending
PTSAW_SORT_DESCENDING MES- PTSAW_SORT_DESCENDING indicates that a column is sorted descending
PTSAW_SORT_ROW_DIRECTION MES- Sort direction is indicated via a 2D array. PTSAW_SORT_ROW_DIRECTION identifies the row in the array that stores the sort direction, which should store PTSAW_SORT_ASCENDING or PTSAW_SORT_DESCENDING.
PTSAW_SORT_ROW_PROPID MES- Sort direction is indicated via a 2D array. PTSAW_SORT_ROW_PROPID identifies the row in the array that stores the Property ID to sort by.

Protected Instance Fields

m_arrData MES- m_arrData stores the actual data
m_arrSort MES- m_arrSort stores the current sort we're displaying
m_bSortOptimized MES- When the data is correctly sorted according to m_arrSort, we can skip the step of dereferencing rows through m_lstRowMapping. m_bSortOptimized holds a boolean to indicate if we can skip the dereferencing.
m_hashPropIDtoColumn MES- m_hashPropIDtoColumn stores a map of Property ID to the column that contains data for that property. Note that the map points to the actual column object.
m_lstRowMapping MES- m_lstRowMapping holds the row numbers. When we do a sort, we rearrange the items in m_lstRowMapping, but we do NOT rearrange the data itself. This layer of indirection lets us resort easily and relatively cheaply.

See Also

PTSortedArrayWrapper Class | com.plumtree.uiinfrastructure.arraywrapper Namespace