| 
|||||||||
| 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.portaluiinfrastructure.expandablelist.properties.ExpListPropModel
com.plumtree.portaluiinfrastructure.editor.commonpages.objectproperties.ObjPropModel
public class ObjPropModel
This is the implementation of the Expandable List for object properties.
| Field Summary | |
|---|---|
static int | 
EXPLIST_COL_DATATABLE
Expandable list column for query result containing EOD data  | 
static int | 
EXPLIST_COL_DATATABLE_INDEX
Expandable list column for index into query result containing EOD data  | 
static int | 
EXPLIST_COL_MAX
Number total of columns  | 
static int | 
EXPLIST_COL_REFVALUE_NAME
Expandable list column for reference value name  | 
static int | 
EXPLIST_COL_SORT_INDEX
Sort index for value  | 
protected  boolean | 
m_bDisplayPageIsMandatory
Flag determines if display page containing object properties is mandatory.  | 
protected  boolean | 
m_bSupportsEOD
Does object support EOD?  | 
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  XPHashtable | 
m_propValueSortingOrder
A table of the sort order for property values  | 
protected  IPTObject | 
m_ptObject
IPTObject  | 
protected  IPTObjectProperties | 
m_ptObjProp
IPTObjectProperties  | 
protected  IPTSession | 
m_ptSession
IPTSession  | 
protected  java.lang.String | 
m_strTreeQueryFilter
Query filter for non read-only, multi-select properties  | 
static int | 
PROP_OBJECTID_DESCRIPTION
Object ID for description property  | 
static int | 
PROP_OBJECTID_NAME
Object ID for name property  | 
static int | 
ROW_STATUS_DELETED
Status of deleted row  | 
static java.lang.String | 
STR_MVC_CLASS_NAME
Class name for the ObjPropModel  | 
static java.lang.String | 
SUBSPACE_KEY_PICKTREE
Subspace key for pick tree  | 
static java.lang.String | 
SUBSPACE_KEY_REFTREE
Subspace key for reference 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 | |
|---|---|
ObjPropModel()
Creates a new ObjPropModel object.  | 
|
| Method Summary | |
|---|---|
 void | 
AddRowsOnRepost(XPHashtable _htFormData)
Adds a new row to the list of object property values  | 
 boolean | 
CheckDisplayPageIsMandatory()
Returns true if the display page is mandatory because it contains mandatory properties.  | 
 boolean | 
CheckObjectSupportsEOD()
Checks to see if the object supports EOD  | 
 boolean | 
CheckPickValuesAreValid(int _nRowIndex)
If a property has a pick tree or pick list, check that the pick values can be successfully retrieved.  | 
 boolean | 
CheckRowIsHREF(int _nRowIndex)
Checks to see if the property is an HREF  | 
 boolean | 
CheckRowIsMandatory(int _nRowIndex)
Checks to see if the property 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  | 
 boolean | 
CheckRowIsVisible(int _nRowIndex)
Checks to see if the property is visible  | 
 java.lang.Object | 
Create()
This method is used by the ASManager to return new instances of managed objects.  | 
 void | 
DeleteRowsOnRepost(XPHashtable _htFormData)
Deletes am existing row from the list of object property values.  | 
 void | 
DoTaskOnComeBackFromSubEditor()
This method will be called when you come back to the main Editor from a sub Editor.  | 
 void | 
Finish()
Stores object properties  | 
protected  java.lang.String | 
GetDataKey(int _nRowIndex,
           XPHashtable _htFormData)
Override method to save pick list data  | 
 java.lang.String | 
GetName()
Returns the Class name.  | 
protected  java.lang.String | 
GetNameFromObjectID(int nClassID,
                    int nObjectID)
Returns the name for an object  | 
protected  IASQueryResult | 
GetObjectPropData(IPTObjectProperties _ptObjProp)
Return object property non-reference data  | 
protected  IASQueryResult | 
GetObjectPropRefData(IPTObjectProperties _ptObjProp)
Return object property reference data  | 
 java.lang.Object[][] | 
GetPickListValues(int _nPropertyID)
Return pick list values for the property  | 
 java.lang.Object | 
GetRowPropertyInfo(int _nRowIndex,
                   int nPropID)
Returns the value of the requested PROPID from the EOD query result.  | 
 java.lang.String | 
GetRowRefValueName(int _nRowIndex)
Returns the reference value name  | 
 java.lang.String | 
GetSelectedReference(int _nRowIndex)
Returns a String of Class IDs and Object IDs of the Objects to select in the tree.  | 
 java.lang.String | 
GetStringFromObjectValue(java.lang.Object oValue,
                         int nPropertyType)
Returns string representation of property value  | 
 boolean | 
HasAccessToGlobalObjectPropMapEditor()
Returns true if current user has access to global object property map.  | 
 void | 
InitializeObjectProperties(IPTSession _ptSession,
                           IPTObject _ptObject,
                           java.lang.String _sSectionTitle,
                           int _nListKey)
Initialize Object Properties  | 
 void | 
InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
Initalizes the list (PTGrowableSortedArrayWrapper) with a column mapping and an array of sort.  | 
protected  void | 
LoadProperties()
Loads object properties for object  | 
 void | 
ModifyRow(XPHashtable _htFormData)
Action for modifying a row.  | 
protected  int | 
SaveRow(PTGrowableSortedArrayWrapper _saData,
        int _nRowIndex,
        XPHashtable _htFormData)
Saves the data on the row only if the row is visible and is not read-only.  | 
 int | 
SaveSection(XPHashtable _htFormData)
Saves the data when a repost occurs.  | 
 void | 
UpdateMandatoryPageStatus()
Determines if the page containing object properties must be a mandatory page.  | 
static void | 
ValidateTree(IPTTreeIterator ptTreeIterator,
             int nLevel)
Recursively iterates through a pick tree and validates that all the nodes are valid.  | 
| Methods inherited from class com.plumtree.portaluiinfrastructure.expandablelist.properties.ExpListPropModel | 
|---|
GetDateTimeFromDatePicker, GetDateTimePickerControlManager, GetPasswordKey, GetPropValueFromString, GetRowErrorMessage, GetRowName, GetRowPropertyID, GetRowStatus, GetRowType, 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, GetRowPropertyID, GetRowStatus, GetRowType, GetRowValue, GetUniqueDateTimePickerKey | 
| 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.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 EXPLIST_COL_DATATABLE
public static final int EXPLIST_COL_DATATABLE_INDEX
public static final int EXPLIST_COL_REFVALUE_NAME
public static final int EXPLIST_COL_SORT_INDEX
public static final int ROW_STATUS_DELETED
public static final java.lang.String SUBSPACE_KEY_PICKTREE
public static final java.lang.String SUBSPACE_KEY_REFTREE
public static final int PROP_OBJECTID_NAME
public static final int PROP_OBJECTID_DESCRIPTION
protected IPTObject m_ptObject
protected IPTObjectProperties m_ptObjProp
protected IPTSession m_ptSession
protected java.lang.Object m_oDefaultValue
protected PTImageType m_imgRowIcon
protected java.lang.String m_strTreeQueryFilter
protected boolean m_bSupportsEOD
protected boolean m_bDisplayPageIsMandatory
protected XPHashtable m_propValueSortingOrder
| Constructor Detail | 
|---|
public ObjPropModel()
| Method Detail | 
|---|
public void AddRowsOnRepost(XPHashtable _htFormData)
AddRowsOnRepost in class ExpListModel_htFormData - Hash table of form dataExpListModel.AddRowsOnRepost(XPHashtable)
protected java.lang.String GetDataKey(int _nRowIndex,
                                      XPHashtable _htFormData)
GetDataKey in class ExpListPropModel_nRowIndex - Row index_htFormData - Form data
public boolean CheckObjectSupportsEOD()
CheckObjectSupportsEOD in interface IObjPropModelROIObjPropModelRO.CheckObjectSupportsEOD()public boolean CheckRowIsHREF(int _nRowIndex)
CheckRowIsHREF in interface IObjPropModelRO_nRowIndex - Current row index
IObjPropModelRO.CheckRowIsHREF(int)public boolean CheckRowIsMandatory(int _nRowIndex)
CheckRowIsMandatory in interface IObjPropModelROCheckRowIsMandatory in class ExpListPropModel_nRowIndex - Current row index
IObjPropModelRO.CheckRowIsMandatory(int)public boolean CheckRowIsMultiValued(int _nRowIndex)
CheckRowIsMultiValued in interface IObjPropModelRO_nRowIndex - Current row index
IObjPropModelRO.CheckRowIsMultiValued(int)public boolean CheckRowIsReadOnly(int _nRowIndex)
CheckRowIsReadOnly in interface IObjPropModelRO_nRowIndex - Current row index
IObjPropModelRO.CheckRowIsReadOnly(int)public boolean CheckRowIsVisible(int _nRowIndex)
CheckRowIsVisible in interface IObjPropModelRO_nRowIndex - Current row index
IObjPropModelRO.CheckRowIsVisible(int)public boolean CheckDisplayPageIsMandatory()
CheckDisplayPageIsMandatory in interface IObjPropModelROpublic void UpdateMandatoryPageStatus()
public java.lang.Object Create()
EditorHelperModel
Create in interface IManagedObjectCreate in class EditorHelperModelIManagedObject.Create()public void DeleteRowsOnRepost(XPHashtable _htFormData)
DeleteRowsOnRepost in class ExpListModel_htFormData - Hash table of form dataExpListModel.DeleteRowsOnRepost(XPHashtable)public java.lang.String GetName()
EditorHelperModel
GetName in interface IMVCObjectGetName in class EditorHelperModelIMVCObject.GetName()
public static void ValidateTree(IPTTreeIterator ptTreeIterator,
                                int nLevel)
ptTreeIterator - Tree to validatenLevel - The current level to validate, which should initially be 0.public boolean CheckPickValuesAreValid(int _nRowIndex)
CheckPickValuesAreValid in interface IObjPropModelRO_nRowIndex - Row index
public java.lang.Object[][] GetPickListValues(int _nPropertyID)
GetPickListValues in interface IObjPropModelRO_nPropertyID - Property ID
IObjPropModelRO.GetPickListValues(int)
public java.lang.Object GetRowPropertyInfo(int _nRowIndex,
                                           int nPropID)
GetRowPropertyInfo in interface IObjPropModelRO_nRowIndex - Row indexnPropID - PT_PROPID
IObjPropModelRO.GetRowPropertyInfo(int,
      int)public java.lang.String GetRowRefValueName(int _nRowIndex)
GetRowRefValueName in interface IObjPropModelRO_nRowIndex - Row index
IObjPropModelRO.GetRowRefValueName(int)
public java.lang.String GetStringFromObjectValue(java.lang.Object oValue,
                                                 int nPropertyType)
GetStringFromObjectValue in interface IObjPropModelROoValue - Property value as ObjectnPropertyType - Property type
public java.lang.String GetSelectedReference(int _nRowIndex)
GetSelectedReference in interface IObjPropModelRO_nRowIndex - Row index
public boolean HasAccessToGlobalObjectPropMapEditor()
HasAccessToGlobalObjectPropMapEditor in interface IObjPropModelRO
public void InitializeObjectProperties(IPTSession _ptSession,
                                       IPTObject _ptObject,
                                       java.lang.String _sSectionTitle,
                                       int _nListKey)
_ptSession - IPTSession_ptObject - IPTObject_sSectionTitle - Title_nListKey - List keypublic void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
InitializeSortedArray in class ExpListModel_saData - ExpListModel.InitializeSortedArray(PTGrowableSortedArrayWrapper)public void ModifyRow(XPHashtable _htFormData)
ModifyRow in class ExpListModel_htFormData - Form dataExpListModel.ModifyRow(XPHashtable)public void Finish()
Finish in class ExpListPropModelpublic int SaveSection(XPHashtable _htFormData)
SaveSection in class ExpListModel_htFormData - 
com.plumtree.uiinfrastructure.editor.EditorHelperModel#SaveSection(com.plumtree.openfoundation.util.XPHashtable)
protected java.lang.String GetNameFromObjectID(int nClassID,
                                               int nObjectID)
nClassID - Class ID of objectnObjectID - Object ID of object
protected IASQueryResult GetObjectPropData(IPTObjectProperties _ptObjProp)
_ptObjProp - IPTObjectProperties
XPExceptionprotected IASQueryResult GetObjectPropRefData(IPTObjectProperties _ptObjProp)
_ptObjProp - IPTObjectProperties
XPExceptionprotected void LoadProperties()
LoadProperties in class ExpListPropModelpublic void DoTaskOnComeBackFromSubEditor()
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.
  | 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||