com.plumtree.portalpages.admin.editors.propertymap
Class PropertyMapEditorModel
java.lang.Object
com.plumtree.uiinfrastructure.editor.EditorModel
com.plumtree.portaluiinfrastructure.editor.GbObjEditorModel
com.plumtree.portalpages.admin.editors.propertymap.PropertyMapEditorModel
- All Implemented Interfaces:
- IPropertyMapEditorModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel
public class PropertyMapEditorModel
- extends GbObjEditorModel
- implements IPropertyMapEditorModelRO
- Author:
- $author$
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel |
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, GetUserHasAccessToEditor, SetCloseOnDone, SetDeleteOnCancel, SetEditorType, SetEnableApplyButton, SetHideLeftNav, SetPageStatus, SetUserHasAccessToEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STR_MVC_CLASS_NAME
public static final java.lang.String STR_MVC_CLASS_NAME
- See Also:
- Constant Field Values
m_lastTreeSpaceId
public java.lang.String m_lastTreeSpaceId
m_nAction
public int m_nAction
m_nGlobalObjectID
protected int m_nGlobalObjectID
m_ActionData
protected XPArrayList m_ActionData
m_properties
protected XPHashtable m_properties
m_sortAscending
protected boolean m_sortAscending
PropertyMapEditorModel
public PropertyMapEditorModel()
CheckEditorAccessAndStart
public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
- That method is called by the EditorStartControl.
It creates the global object and puts it in m_ptGlobalObject.
- Overrides:
CheckEditorAccessAndStart
in class GbObjEditorModel
- Parameters:
_htFormData
-
- Returns:
- boolean Is true if the current user has the rights to access this Editor.
GetLastTreeSpaceId
public java.lang.String GetLastTreeSpaceId()
- Specified by:
GetLastTreeSpaceId
in interface IPropertyMapEditorModelRO
- Returns:
GetNumProperties
public int GetNumProperties()
- Specified by:
GetNumProperties
in interface IPropertyMapEditorModelRO
- Returns:
IsPropertyAdded
public boolean IsPropertyAdded(int propId)
- Specified by:
IsPropertyAdded
in interface IPropertyMapEditorModelRO
- Parameters:
propId
-
- Returns:
GetPropertyAttribute
public java.lang.String GetPropertyAttribute(int propId,
int index)
- Specified by:
GetPropertyAttribute
in interface IPropertyMapEditorModelRO
- Parameters:
propId
- index
-
- Returns:
IsPropertyDeleted
public boolean IsPropertyDeleted(int propId)
- Specified by:
IsPropertyDeleted
in interface IPropertyMapEditorModelRO
- Parameters:
propId
-
- Returns:
GetPropertyIDs
public java.lang.Object[] GetPropertyIDs()
- Specified by:
GetPropertyIDs
in interface IPropertyMapEditorModelRO
- Returns:
IsPropertyInEditMode
public boolean IsPropertyInEditMode(int propId)
- Specified by:
IsPropertyInEditMode
in interface IPropertyMapEditorModelRO
- Parameters:
propId
-
- Returns:
IsPropertyMandatory
public boolean IsPropertyMandatory(int propId)
- Specified by:
IsPropertyMandatory
in interface IPropertyMapEditorModelRO
- Parameters:
propId
-
- Returns:
IsPropertyModified
public boolean IsPropertyModified(int propId)
- Specified by:
IsPropertyModified
in interface IPropertyMapEditorModelRO
- Parameters:
propId
-
- Returns:
GetPropertyNumberOfAttributes
public int GetPropertyNumberOfAttributes(int propId)
- Specified by:
GetPropertyNumberOfAttributes
in interface IPropertyMapEditorModelRO
- Parameters:
propId
-
- Returns:
GetSortAscending
public boolean GetSortAscending()
- Specified by:
GetSortAscending
in interface IPropertyMapEditorModelRO
- Returns:
Create
public java.lang.Object Create()
- Description copied from class:
EditorModel
- This method is used by the ASManager to return new instances of managed
objects.
- Specified by:
Create
in interface IManagedObject
- Specified by:
Create
in class EditorModel
- Returns:
- A new instance of the managed class (i.e. return new Foo();)
- See Also:
IManagedObject.Create()
DoTaskOnStartEditor
public void DoTaskOnStartEditor(XPHashtable _htFormData)
- Description copied from class:
EditorModel
- That method contains the code that should be executed just
after the object has been initialized when the new editor
is started.
- Overrides:
DoTaskOnStartEditor
in class EditorModel
- Parameters:
_htFormData
-
Finish
public void Finish()
- Description copied from class:
EditorModel
- Implement some code to execute when the user clicks on "Finish".
- Specified by:
Finish
in interface IRepostModel
- Specified by:
Finish
in class EditorModel
GetName
public java.lang.String GetName()
- Description copied from class:
EditorModel
- Returns the Class name.
- Specified by:
GetName
in interface IMVCObject
- Specified by:
GetName
in class EditorModel
- Returns:
OnAdd
public void OnAdd()
OnDel
public void OnDel()
OnEdit
public void OnEdit(int propId)
- Parameters:
propId
-
OnSort
public void OnSort()
SavePage
public int SavePage(java.lang.String _sPageName,
XPHashtable _htFormData)
- Description copied from class:
EditorModel
- Calls the right save function according to the page name passed in argument.
- Specified by:
SavePage
in interface IRepostModel
- Specified by:
SavePage
in class EditorModel
- Parameters:
_sPageName
- _htFormData
-
- Returns:
WherePropertiesLive
public int WherePropertiesLive()
- Specified by:
WherePropertiesLive
in interface IPropertyMapEditorModelRO
- Returns:
GetAction
protected int GetAction()
- Returns:
GetProperty
protected Property GetProperty(int propId)
- Parameters:
propId
-
- Returns:
AddProperty
protected void AddProperty(int id)
- Parameters:
id
-
ClearActionData
protected void ClearActionData()
DeleteProperty
protected void DeleteProperty(int id)
- Parameters:
id
-
ExtractActionData_AttributesFromInputs
protected void ExtractActionData_AttributesFromInputs(XPHashtable _htFormData)
- Parameters:
_htFormData
-
ExtractActionData_PropertiesFromCheckboxes
protected void ExtractActionData_PropertiesFromCheckboxes(java.lang.Object o)
- Parameters:
o
-
ExtractActionData_PropertiesFromTree
protected void ExtractActionData_PropertiesFromTree()
ExtractOneBoolElement
protected boolean ExtractOneBoolElement(java.lang.Object o)
- Parameters:
o
-
- Returns:
ExtractOneElement
protected java.lang.String ExtractOneElement(java.lang.Object o)
- Parameters:
o
-
- Returns:
GetMap
protected IPTPropertyMap GetMap()
SaveMainPage
protected int SaveMainPage(XPHashtable _htFormData)
- Parameters:
_htFormData
-
- Returns:
makeListOfAlreadyShown
public java.lang.String makeListOfAlreadyShown()
- Returns: