|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.editor.EditorHelperModel com.plumtree.uiinfrastructure.expandablelist.ExpListModel com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropModel
public abstract class ExpListPropModel
Expandable list model for properties
Field Summary | |
---|---|
static int |
EXPLIST_COL_NAME
Expandable list column for property name |
static int |
EXPLIST_COL_PROPID
Expandable list column for property ID |
static int |
EXPLIST_COL_STATUS
Expandable list column for row status (no change, added, deleted, edited) |
static int |
EXPLIST_COL_TYPE
Expandable list column for property type |
static int |
EXPLIST_COL_VALUE
Expandable list column for property value |
protected JSDateTimePickerMgr |
m_ptJSDateTimePickerMgr
DateTime picker control |
protected PageMgr |
m_ptPageMgr
Page manager |
static int |
ROW_STATUS_ADDED
Status of newly added row |
static int |
ROW_STATUS_MODIFIED
Status of modified row |
static int |
ROW_STATUS_NO_CHANGE
Status of unchanged row |
static java.lang.String |
STR_ROW_PROPERTY_DATE_PICKER_UNIQUE_ID_PREFIX
Prefix for unique ID of row containing datetime picker |
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
---|
m_asOwner |
Constructor Summary | |
---|---|
ExpListPropModel()
|
Method Summary | |
---|---|
abstract boolean |
CheckRowIsMandatory(int _nRowIndex)
Check whether row is mandatory |
abstract void |
Finish()
Implemented by the child class in order to save the properties. |
protected java.lang.String |
GetDataKey(int _nRowIndex,
XPHashtable _htFormData)
Returns data key for a row. |
protected XPDateTime |
GetDateTimeFromDatePicker(java.lang.String _strUniqueInstanceID)
Helper method to return XPDateTime from datetime picker, using the unique instance ID. |
JSDateTimePickerMgr |
GetDateTimePickerControlManager()
Returns the datetime-picker control manager. |
protected java.lang.String |
GetPasswordKey(int _nRowIndex,
XPHashtable _htFormData)
Returns data key for a row. |
static java.lang.Object |
GetPropValueFromString(java.lang.String strValue,
int nPropertyType)
Converts a property value from its string representation to the appropriate type. |
protected java.lang.String |
GetRowErrorMessage(int _nRowIndex,
java.lang.String strMessage)
Return an error message for row |
java.lang.String |
GetRowName(int _nRowIndex)
Returns the name of the property in the indicated row |
int |
GetRowPropertyID(int _nRowIndex)
Returns the property ID of the property in the indicated row |
int |
GetRowStatus(int _nRowIndex)
Returns the status of the row (added, deleted, edited, modified) |
int |
GetRowType(int _nRowIndex)
Returns the value type of the property |
java.lang.Object |
GetRowValue(int _nRowIndex)
Returns the value of the property |
java.lang.String |
GetUniqueDateTimePickerKey(int _nRowIndex)
Returns the unique date/time picker string ID for the row. |
void |
Init(AActivitySpace parent)
Inits the Model with the Activity Space. |
protected abstract void |
LoadProperties()
Implemented by the child class in order to load the properties. |
void |
ReverseCurrentSort()
Must update date/time picker rows when sorting by column. |
protected int |
SaveDataValue(int _nRowIndex,
XPHashtable _htFormData)
Saves the data value for the row |
protected int |
SaveDateTimeRow(int _nRowIndex,
XPHashtable _htFormData)
Saves the date/time value |
protected int |
SavePasswordValue(int _nRowIndex,
XPHashtable _htFormData)
Saves the data value for the row |
protected int |
SaveRow(PTGrowableSortedArrayWrapper _saData,
int _nRowIndex,
XPHashtable _htFormData)
Saves the data on the row _nRowIndex. |
protected void |
SetRowStatus(int _nRowIndex,
int _nStatus)
Set the row status |
protected void |
SetRowValue(int _nRowIndex,
java.lang.Object _oValue)
Set the row value |
void |
SortByColumn(XPHashtable _htFormData)
Must update date/time picker rows when sorting by column. |
protected void |
UpdateDateTimeUniqueKeys()
Remove all existing datetime components from the datetime picker manager, and re-register all datetime pickers. |
protected void |
UpdateRowInList(int _nRowIndex,
java.lang.Object _oValue)
Updates a row in the list with new values |
protected int |
ValidateMandatoryDataValue(int _nRowIndex,
java.lang.String strValue)
Check that a mandatory row does not have a null string value or empty string. |
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
---|
CleanupAllData, CleanupTempData, Create, GetName |
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.IMVCObject |
---|
GetName |
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IModel |
---|
CleanupAllData, CleanupTempData |
Methods inherited from interface com.plumtree.uiinfrastructure.activityspace.IManagedObject |
---|
Create |
Field Detail |
---|
public static final java.lang.String STR_ROW_PROPERTY_DATE_PICKER_UNIQUE_ID_PREFIX
public static final int EXPLIST_COL_PROPID
public static final int EXPLIST_COL_VALUE
public static final int EXPLIST_COL_NAME
public static final int EXPLIST_COL_TYPE
public static final int EXPLIST_COL_STATUS
public static final int ROW_STATUS_NO_CHANGE
public static final int ROW_STATUS_ADDED
public static final int ROW_STATUS_MODIFIED
protected JSDateTimePickerMgr m_ptJSDateTimePickerMgr
protected PageMgr m_ptPageMgr
Constructor Detail |
---|
public ExpListPropModel()
Method Detail |
---|
public void Init(AActivitySpace parent)
Init
in interface IModel
Init
in class EditorHelperModel
parent
- public JSDateTimePickerMgr GetDateTimePickerControlManager()
GetDateTimePickerControlManager
in interface IExpListPropModelRO
protected XPDateTime GetDateTimeFromDatePicker(java.lang.String _strUniqueInstanceID)
_strUniqueInstanceID
- The unique instance ID is the special prefix plus the row number.
public static java.lang.Object GetPropValueFromString(java.lang.String strValue, int nPropertyType)
strValue
- String valuenPropertyType
- Property type
java.lang.Exception
public java.lang.String GetRowName(int _nRowIndex)
GetRowName
in interface IExpListPropModelRO
_nRowIndex
- Row index
public int GetRowPropertyID(int _nRowIndex)
GetRowPropertyID
in interface IExpListPropModelRO
_nRowIndex
- Row index
public int GetRowStatus(int _nRowIndex)
GetRowStatus
in interface IExpListPropModelRO
_nRowIndex
- Row index
public int GetRowType(int _nRowIndex)
GetRowType
in interface IExpListPropModelRO
_nRowIndex
- Row index
public java.lang.Object GetRowValue(int _nRowIndex)
GetRowValue
in interface IExpListPropModelRO
_nRowIndex
- Row index
public java.lang.String GetUniqueDateTimePickerKey(int _nRowIndex)
GetUniqueDateTimePickerKey
in interface IExpListPropModelRO
_nRowIndex
-
protected void SetRowStatus(int _nRowIndex, int _nStatus)
_nRowIndex
- Row index_nStatus
- Status of rowprotected void SetRowValue(int _nRowIndex, java.lang.Object _oValue)
_nRowIndex
- Row index_oValue
- Value of property in rowprotected void UpdateRowInList(int _nRowIndex, java.lang.Object _oValue)
_nRowIndex
- Row index_oValue
- Value of property in rowprotected int SaveDateTimeRow(int _nRowIndex, XPHashtable _htFormData)
_nRowIndex
- Row index_htFormData
- Form data
protected java.lang.String GetDataKey(int _nRowIndex, XPHashtable _htFormData)
_nRowIndex
- Row index_htFormData
- Form data
protected java.lang.String GetPasswordKey(int _nRowIndex, XPHashtable _htFormData)
_nRowIndex
- Row index_htFormData
- Form data
protected int ValidateMandatoryDataValue(int _nRowIndex, java.lang.String strValue)
_nRowIndex
- Row indexstrValue
- String value
protected int SaveDataValue(int _nRowIndex, XPHashtable _htFormData)
_nRowIndex
- Row index_htFormData
- Form data
protected int SavePasswordValue(int _nRowIndex, XPHashtable _htFormData)
_nRowIndex
- Row index_htFormData
- Form data
protected java.lang.String GetRowErrorMessage(int _nRowIndex, java.lang.String strMessage)
_nRowIndex
- Row indexstrMessage
- Message
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 UpdateDateTimeUniqueKeys()
protected abstract void LoadProperties()
public abstract void Finish()
public abstract boolean CheckRowIsMandatory(int _nRowIndex)
_nRowIndex
- Row index
public void SortByColumn(XPHashtable _htFormData)
SortByColumn
in class ExpListModel
_htFormData
- Form datapublic void ReverseCurrentSort()
ReverseCurrentSort
in class ExpListModel
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |