|
|||||||||
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.portalpages.admin.serversettings.objectpropertymap.plugin.ObjPropMapPluginModel
public class ObjPropMapPluginModel
This is the implementation of the Expandable List for object properties map.
Field Summary | |
---|---|
static int |
EXPLIST_COL_CLASS_NAME
Column for class name |
static int |
EXPLIST_COL_CLASSID
Column for class ID |
static int |
EXPLIST_COL_MAPPED_PROPERTIES
Column for mapped properties |
static int |
EXPLIST_COL_MAX
Number total of columns |
protected XPHashtable |
m_htClassMappings
Table of class mappings |
protected XPHashtable |
m_htPropertyInfo
Table of property names and descrptions |
protected java.lang.Object |
m_oDefaultValue
This is used on add to populate the input text of the newly added row. |
protected IPTObjectPropertyMap |
m_ptOPM
Object property map |
protected IPTObjectManager |
m_ptPropertyManager
Property object manager |
protected IPTSession |
m_ptSession
IPTSession |
static int |
PROPERTY_INFO_DESC
Property info column for description |
static int |
PROPERTY_INFO_NAME
Property info column for name |
static java.lang.String |
STR_MVC_CLASS_NAME
Class name for the activity space |
static java.lang.String |
SUBSPACE_KEY_PROPERTYTREE
Subspace key for property tree |
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
---|
m_asOwner |
Constructor Summary | |
---|---|
ObjPropMapPluginModel()
|
Method Summary | |
---|---|
protected void |
AddPropertiesToRow(int _nRowIndex,
XPArrayList _alistSelectedProperties)
Adds new properties to the row. |
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. |
HTMLImg |
GetClassIcon(int _nRowIndex)
Returns the class icon |
java.lang.String |
GetName()
Returns the Class name. |
java.lang.String[][] |
GetPropertyInfo(int _nRowIndex)
Returns array of property names and descriptions. |
java.lang.String |
GetSelectedItems(int _nRowIndex)
Returns a String of Class IDs and Object IDs of the Objects to select in the tree. |
boolean |
InitializeObjectPropertiesMap(IPTSession _ptSession,
java.lang.String _sSectionTitle,
int _nListKey)
Initialize object properties map. |
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 |
SetDefaultValue(java.lang.Object _oDefaultValue)
Sets a new default value. |
void |
StorePropertyMappings()
Stores the property mapping changes to the property object. |
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, 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, 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_CLASSID
public static final int EXPLIST_COL_CLASS_NAME
public static final int EXPLIST_COL_MAPPED_PROPERTIES
public static final java.lang.String SUBSPACE_KEY_PROPERTYTREE
public static int PROPERTY_INFO_NAME
public static int PROPERTY_INFO_DESC
protected IPTObjectManager m_ptPropertyManager
protected IPTObjectPropertyMap m_ptOPM
protected IPTSession m_ptSession
protected java.lang.Object m_oDefaultValue
protected XPHashtable m_htClassMappings
protected XPHashtable m_htPropertyInfo
Constructor Detail |
---|
public ObjPropMapPluginModel()
Method Detail |
---|
public void AddRowsOnRepost(XPHashtable _htFormData)
ExpListModel
AddRowsOnRepost
in class ExpListModel
_htFormData
- Form dataExpListModel.AddRowsOnRepost(XPHashtable)
public java.lang.Object Create()
EditorHelperModel
Create
in interface IManagedObject
Create
in class EditorHelperModel
IManagedObject.Create()
public HTMLImg GetClassIcon(int _nRowIndex)
GetClassIcon
in interface IObjPropMapPluginModelRO
_nRowIndex
- Row index
com.plumtree.portalpages.admin.editors.objectpropertymap.plugin.IObjPropMapPluginModelRO#GetClassIcon(int)
public java.lang.String GetName()
EditorHelperModel
GetName
in interface IMVCObject
GetName
in class EditorHelperModel
IMVCObject.GetName()
public java.lang.String[][] GetPropertyInfo(int _nRowIndex)
GetPropertyInfo
in interface IObjPropMapPluginModelRO
_nRowIndex
- Row index
com.plumtree.portalpages.admin.editors.objectpropertymap.plugin.IObjPropMapPluginModelRO#GetPropertyNames(int)
public java.lang.String GetSelectedItems(int _nRowIndex)
GetSelectedItems
in interface IObjPropMapPluginModelRO
_nRowIndex
- Row index
com.plumtree.portalpages.admin.editors.objectpropertymap.plugin.IObjPropMapPluginModelRO#GetSelectedItems(int)
public boolean InitializeObjectPropertiesMap(IPTSession _ptSession, java.lang.String _sSectionTitle, int _nListKey)
_ptSession
- IPTSession_sSectionTitle
- Category title_nListKey
- List key
public void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
InitializeSortedArray
in class ExpListModel
_saData
- ExpListModel.InitializeSortedArray(PTGrowableSortedArrayWrapper)
public void SetDefaultValue(java.lang.Object _oDefaultValue)
_oDefaultValue
- New valuepublic void StorePropertyMappings()
protected void AddPropertiesToRow(int _nRowIndex, XPArrayList _alistSelectedProperties)
_nRowIndex
- Row index_alistSelectedProperties
- List of selected propertiesprotected 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.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |