|
|||||||||
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 com.plumtree.portalpages.browsing.editors.dircommon.editdocumentproperty.EditCardPropModel
public class EditCardPropModel
This is the implementation of the Expandable List for editing card properties.
Field Summary | |
---|---|
static int |
EXPLIST_COL_MAX
Number total of columns |
static java.lang.String |
HTMLINPUT_ITEM
Input for input text box |
protected boolean |
m_bAddMultiValuedPropSortLater
This flag is used to commit MultiValued property and when we add a value |
protected XPHashtable |
m_htPickListValues
|
protected XPHashtable |
m_htPickTypes
|
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 IPTCardPropertyValues |
m_ptCardPropertyValues
IPTCardPropertyValues |
protected IPTObject |
m_ptObject
IPTObject |
protected IPTSession |
m_ptSession
IPTSession |
XPSortedDictionary |
m_xpCardProperties
Card properties |
XPArrayList |
m_xpDeletedProperties
XPArrayList: This holds only the original properties that have been deleted. |
XPSortedDictionary |
m_xpUnusedProperties
XPSortedDictionary |
static int |
NEW_PROP_DEFAULTVALUE
|
static int |
NEW_PROP_PROPID_UNSELECTED
|
static int |
ROW_STATUS_ADDED_NEW
|
static java.lang.String |
STR_MVC_CLASS_NAME
Class name for the activity space |
static java.lang.String |
SUBSPACE_KEY_PICKTREE
Subspace key for pick tree |
Fields inherited from class com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropModel |
---|
EXPLIST_COL_NAME, EXPLIST_COL_PROPID, EXPLIST_COL_STATUS, EXPLIST_COL_TYPE, EXPLIST_COL_VALUE, m_ptJSDateTimePickerMgr, m_ptPageMgr, ROW_STATUS_ADDED, ROW_STATUS_MODIFIED, ROW_STATUS_NO_CHANGE, STR_ROW_PROPERTY_DATE_PICKER_UNIQUE_ID_PREFIX |
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
---|
m_asOwner |
Constructor Summary | |
---|---|
EditCardPropModel()
Creates a new EditCardPropModel object. |
Method Summary | |
---|---|
void |
AddRowsOnRepost(XPHashtable _htFormData)
Will be called each time the add action is performed. |
boolean |
CheckPickValuesAreValid(int _nRowIndex)
If a property has a pick tree or pick list, check that the pick values can be successfully retrieved. |
boolean |
CheckRowIsMandatory(int _nRowIndex)
Check whether row is mandatory |
boolean |
CheckRowIsMultiValued(int _nRowIndex)
Checks to see if the property is multivalued |
boolean |
CheckRowIsReadOnly(int _nRowIndex)
Checks to see if the property is read-only |
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. |
void |
DoTaskOnComeBackFromSubEditor()
This method will be called when you come back to the main Editor from a sub Editor. |
void |
Finish()
Implemented by the child class in order to save the properties. |
java.lang.Object[][] |
GetArrExpListColInfo()
Returns the array of column titles, associated column IDs and column width. |
protected java.lang.String |
GetDataKey(int _nRowIndex,
XPHashtable _htFormData)
Override method to save pick list data |
protected IASQueryResult |
GetEditCardProperties(IPTObjectProperties _ptObjProp)
|
java.lang.String |
GetName()
Returns the Class name. |
int |
GetNewlySelectedPropertyID()
|
int |
GetNumProperties()
|
java.lang.Object[][] |
GetPickListValues(int _nPropertyID)
Return cached pick list values for the property. |
int |
GetPickType(int _nRowIndex)
Return the pick type for the property. |
PTImageType |
GetRowIcon()
Returns the icon to display on each row before the input text. |
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) |
protected java.lang.Object[][] |
GetRowsToAdd(java.lang.String[] _aDataValue)
|
protected int[] |
GetRowsToDelete(java.lang.String[] _aDataValue)
|
int |
GetRowType(int _nRowIndex)
Returns the value type of the property |
java.lang.String |
GetStringFromObjectValue(java.lang.Object oValue,
int nPropertyType)
Returns string representation of property value |
XPSortedDictionary |
GetUnusedProperties()
|
boolean |
InitializeCardProperties(IPTSession _ptSession,
IPTCardPropertyValues ptCardPropValues,
XPSortedDictionary xpCardProperties,
java.lang.String _sSectionTitle,
PTImageType _imgAddIcon,
java.lang.String _sAddLabel,
int _nListKey)
|
void |
InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
Initalizes the list (PTGrowableSortedArrayWrapper) with a column mapping and an array of sort. |
protected void |
LoadProperties()
Implemented by the child class in order to load the properties. |
void |
ModifyRow(XPHashtable _htFormData)
Action for modifying a row. |
protected int |
SaveRow(PTGrowableSortedArrayWrapper _saData,
int _nRowIndex,
XPHashtable _htFormData)
Saves the data on the row _nRowIndex. |
Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropModel |
---|
GetDateTimeFromDatePicker, GetDateTimePickerControlManager, GetPasswordKey, GetPropValueFromString, GetRowErrorMessage, GetRowName, GetRowValue, GetUniqueDateTimePickerKey, Init, ReverseCurrentSort, SaveDataValue, SaveDateTimeRow, SavePasswordValue, SetRowStatus, SetRowValue, SortByColumn, UpdateDateTimeUniqueKeys, UpdateRowInList, ValidateMandatoryDataValue |
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
---|
CleanupAllData, CleanupTempData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.plumtree.portaluiinfrastructure.expandablelist.properties.IExpListPropModelRO |
---|
GetDateTimePickerControlManager, GetRowName, GetRowValue, GetUniqueDateTimePickerKey |
Methods inherited from interface com.plumtree.uiinfrastructure.expandablelist.IExpListModelRO |
---|
GetAddIcon, GetAddIconAlt, GetAddLabel, GetAlertMessageForEmptyList, 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 |
Field Detail |
---|
public static final java.lang.String STR_MVC_CLASS_NAME
public static final int EXPLIST_COL_MAX
public static final int ROW_STATUS_ADDED_NEW
public static final java.lang.String HTMLINPUT_ITEM
public static final int NEW_PROP_DEFAULTVALUE
public static final int NEW_PROP_PROPID_UNSELECTED
public static final java.lang.String SUBSPACE_KEY_PICKTREE
public XPArrayList m_xpDeletedProperties
public XPSortedDictionary m_xpUnusedProperties
public XPSortedDictionary m_xpCardProperties
protected IPTCardPropertyValues m_ptCardPropertyValues
protected IPTObject m_ptObject
protected IPTSession m_ptSession
protected java.lang.Object m_oDefaultValue
protected PTImageType m_imgRowIcon
protected XPHashtable m_htPickTypes
protected XPHashtable m_htPickListValues
protected boolean m_bAddMultiValuedPropSortLater
Constructor Detail |
---|
public EditCardPropModel()
Method Detail |
---|
public void AddRowsOnRepost(XPHashtable _htFormData)
ExpListModel
AddRowsOnRepost
in class ExpListModel
_htFormData
- public java.lang.Object Create()
EditorHelperModel
Create
in interface IManagedObject
Create
in class EditorHelperModel
IManagedObject.Create()
public void DeleteRowsOnRepost(XPHashtable _htFormData)
ExpListModel
DeleteRowsOnRepost
in class ExpListModel
_htFormData
- public void DoTaskOnComeBackFromSubEditor()
public void ModifyRow(XPHashtable _htFormData)
ModifyRow
in class ExpListModel
_htFormData
- Form dataExpListModel.ModifyRow(XPHashtable)
public java.lang.String GetName()
GetName
in interface IMVCObject
GetName
in class EditorHelperModel
public int GetNewlySelectedPropertyID()
GetNewlySelectedPropertyID
in interface IEditCardPropModelRO
public int GetNumProperties()
GetNumProperties
in interface IEditCardPropModelRO
public PTImageType GetRowIcon()
GetRowIcon
in interface IEditCardPropModelRO
public boolean CheckPickValuesAreValid(int _nRowIndex)
CheckPickValuesAreValid
in interface IEditCardPropModelRO
_nRowIndex
- Row index
public java.lang.Object[][] GetPickListValues(int _nPropertyID)
GetPickListValues
in interface IEditCardPropModelRO
_nPropertyID
- Property ID
IObjPropModelRO.GetPickListValues(int)
public int GetPickType(int _nRowIndex)
GetPickType
in interface IEditCardPropModelRO
__nRowIndex
- Row index
public java.lang.String GetStringFromObjectValue(java.lang.Object oValue, int nPropertyType)
GetStringFromObjectValue
in interface IEditCardPropModelRO
oValue
- Property value as ObjectnPropertyType
- Property type
public XPSortedDictionary GetUnusedProperties()
GetUnusedProperties
in interface IEditCardPropModelRO
GetUnusedProperties
in interface IExpListModelRO
GetUnusedProperties
in class ExpListModel
public boolean InitializeCardProperties(IPTSession _ptSession, IPTCardPropertyValues ptCardPropValues, XPSortedDictionary xpCardProperties, java.lang.String _sSectionTitle, PTImageType _imgAddIcon, java.lang.String _sAddLabel, int _nListKey)
_ptSession
- _ptObject
- _sSectionTitle
- _imgAddIcon
- _sAddLabel
- _nListKey
-
public void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
InitializeSortedArray
in class ExpListModel
_saData
- public void Finish()
ExpListPropModel
Finish
in class ExpListPropModel
protected IASQueryResult GetEditCardProperties(IPTObjectProperties _ptObjProp)
_ptObjProp
-
XPException
protected java.lang.Object[][] GetRowsToAdd(java.lang.String[] _aDataValue)
_aDataValue
-
protected int[] GetRowsToDelete(java.lang.String[] _aDataValue)
_aDataValue
-
protected java.lang.String GetDataKey(int _nRowIndex, XPHashtable _htFormData)
GetDataKey
in class ExpListPropModel
_nRowIndex
- Row index_htFormData
- Form data
protected int SaveRow(PTGrowableSortedArrayWrapper _saData, int _nRowIndex, XPHashtable _htFormData)
SaveRow
in class ExpListPropModel
_saData
- List to update the data on row _nRowIndex_nRowIndex
- Index of the row to save._htFormData
- Data posted by the form.
public java.lang.Object[][] GetArrExpListColInfo()
GetArrExpListColInfo
in interface IExpListModelRO
GetArrExpListColInfo
in class ExpListModel
ExpListModel.GetArrExpListColInfo()
protected void LoadProperties()
ExpListPropModel
LoadProperties
in class ExpListPropModel
public int GetRowType(int _nRowIndex)
GetRowType
in interface IExpListPropModelRO
GetRowType
in class ExpListPropModel
_nRowIndex
- Row index
public int GetRowStatus(int _nRowIndex)
GetRowStatus
in interface IExpListPropModelRO
GetRowStatus
in class ExpListPropModel
_nRowIndex
- Row index
public int GetRowPropertyID(int _nRowIndex)
GetRowPropertyID
in interface IExpListPropModelRO
GetRowPropertyID
in class ExpListPropModel
_nRowIndex
- Row index
public boolean CheckRowIsMultiValued(int _nRowIndex)
CheckRowIsMultiValued
in interface IEditCardPropModelRO
_nRowIndex
- Current row index
com.plumtree.portaluiinfrastructure.editor.dircommon.editdocumentproperty.IEditCardPropModelRO#CheckRowIsMultiValued(int)
public boolean CheckRowIsReadOnly(int _nRowIndex)
CheckRowIsReadOnly
in interface IEditCardPropModelRO
_nRowIndex
- Current row index
om.plumtree.portaluiinfrastructure.editor.dircommon.editdocumentproperty.IEditCardPropModelRO#CheckRowIsReadOnly(int)
public boolean CheckRowIsMandatory(int _nRowIndex)
ExpListPropModel
CheckRowIsMandatory
in class ExpListPropModel
_nRowIndex
-
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |