|
|||||||||
| 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.common.browsingpropchooser.PropChooserModel
public class PropChooserModel
This is the implementation of the Expandable List for editing card properties.
| Field Summary | |
|---|---|
static int |
COL_STATUS_ADDED_NEW
|
static int |
COL_STATUS_COMMITTED
|
static int |
EXPLIST_COL_MAX
Number total of columns |
static int |
EXPLIST_COL_NAME
|
static int |
EXPLIST_COL_PROPID
|
static int |
EXPLIST_COL_STATUS
|
protected PTImageType |
m_imgRowIcon
Icon to display on each row, just before the input text. |
protected java.lang.Object |
m_oDefaultValue
This is used on add to populate the input text of the newly added row. |
protected IPTSession |
m_ptSession
IPTSession |
XPSortedDictionary |
m_xpUnusedProperties
XPSortedDictionary |
static int |
NEW_PROP_DEFAULTVALUE
|
static int |
NEW_PROP_PROPID_UNSELECTED
|
static java.lang.String |
STR_MVC_CLASS_NAME
Class name for the activity space |
| Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
|---|
m_asOwner |
| Constructor Summary | |
|---|---|
PropChooserModel()
|
|
| Method Summary | |
|---|---|
void |
AddRowsOnRepost(XPHashtable _htFormData)
Will be called each time the add action is performed. |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
void |
DeleteRowsOnRepost(XPHashtable _htFormData)
Gets the array of checked rows and delete them from the list. |
java.lang.String |
GetName()
Returns the Class name. |
int |
GetNewlySelectedPropertyID()
|
PTImageType |
GetRowIcon()
Returns the icon to display on each row before the input text. |
java.lang.String |
GetRowName(int _nRowIndex)
|
int |
GetRowPropertyID(int _nRowIndex)
|
int |
GetRowStatus(int _nRowIndex)
|
protected int[] |
GetRowsToDelete(java.lang.String[] _aDataValue)
|
java.lang.String |
GetSelectedProperties()
|
XPSortedDictionary |
GetUnusedProperties()
|
boolean |
InitializeSelectedProperties(IPTSession _ptSession)
|
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. |
void |
SetEnableMoveRowActions(boolean _bEnableMoveRowActions)
Because this select ptobject list needs to support both move row actions enable and disable, we need to change the colspan of the header row when this happens. |
protected void |
SetRowStatus(int _nRowIndex,
int _nStatus)
|
| 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, 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 int EXPLIST_COL_MAX
public static final int EXPLIST_COL_PROPID
public static final int EXPLIST_COL_NAME
public static final int EXPLIST_COL_STATUS
public static final int COL_STATUS_COMMITTED
public static final int COL_STATUS_ADDED_NEW
public static final int NEW_PROP_DEFAULTVALUE
public static final int NEW_PROP_PROPID_UNSELECTED
public XPSortedDictionary m_xpUnusedProperties
protected IPTSession m_ptSession
protected java.lang.Object m_oDefaultValue
protected PTImageType m_imgRowIcon
| Constructor Detail |
|---|
public PropChooserModel()
| Method Detail |
|---|
public void AddRowsOnRepost(XPHashtable _htFormData)
ExpListModel
AddRowsOnRepost in class ExpListModel_htFormData - public java.lang.Object Create()
EditorHelperModel
Create in interface IManagedObjectCreate in class EditorHelperModelIManagedObject.Create()public void DeleteRowsOnRepost(XPHashtable _htFormData)
ExpListModel
DeleteRowsOnRepost in class ExpListModel_htFormData - public java.lang.String GetName()
GetName in interface IMVCObjectGetName in class EditorHelperModelpublic int GetNewlySelectedPropertyID()
GetNewlySelectedPropertyID in interface IPropChooserModelROpublic PTImageType GetRowIcon()
GetRowIcon in interface IPropChooserModelROcom.plumtree.uiinfrastructure.expandablelist.GrowableListModel#GetRowIcon()public java.lang.String GetRowName(int _nRowIndex)
GetRowName in interface IPropChooserModelRO_nRowIndex -
public int GetRowPropertyID(int _nRowIndex)
GetRowPropertyID in interface IPropChooserModelRO_nRowIndex -
public int GetRowStatus(int _nRowIndex)
GetRowStatus in interface IPropChooserModelRO_nRowIndex -
public java.lang.String GetSelectedProperties()
public XPSortedDictionary GetUnusedProperties()
GetUnusedProperties in interface IPropChooserModelROGetUnusedProperties in interface IExpListModelROGetUnusedProperties in class ExpListModelpublic boolean InitializeSelectedProperties(IPTSession _ptSession)
_ptSession - _ptObject - _sSectionTitle - _imgAddIcon - _sAddLabel - _nListKey -
public void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
InitializeSortedArray in class ExpListModel_saData - public void SetEnableMoveRowActions(boolean _bEnableMoveRowActions)
SetEnableMoveRowActions in class ExpListModel_bEnableMoveRowActions - protected int[] GetRowsToDelete(java.lang.String[] _aDataValue)
_aDataValue -
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 SetRowStatus(int _nRowIndex,
int _nStatus)
_nRowIndex - _nStatus -
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||