|
|||||||||
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.ptutilities.automationserver.AutomationServerListModel
public class AutomationServerListModel
This is the implementation of the Expandable List framework for the Growable Array. The Growable Array is a list of input texts. On add, a new input text populated with the default value will be added at the bottom of the list.
Field Summary | |
---|---|
static int |
EXPLIST_COL_LASTUPDATE
|
static int |
EXPLIST_COL_MAX
Number total of columns |
static int |
EXPLIST_COL_NAME
This column contains the Object Class IDs. |
static int |
EXPLIST_COL_NETADDR
This column contains the Object IDs. |
static int |
EXPLIST_COL_STATUS
This is the String that we doisplay in the list. |
static int |
EXPLIST_SORTEDARRAY_PROPID_INPUTTEXT
Second column: the value of the input text. |
protected PTImageType |
m_imgRowIcon
Icon to display on each row, just before the input text. |
protected java.lang.String |
m_sDefaultValue
This is used on add to populate the input text of the newly added row. |
static java.lang.String |
SERVER_NAME
|
static java.lang.String |
STR_MVC_CLASS_NAME
Class name for the activity space |
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel |
---|
m_asOwner |
Constructor Summary | |
---|---|
AutomationServerListModel()
|
Method Summary | |
---|---|
void |
AddRowsOnRepost(XPHashtable _htFormData)
Adds one row at the bottom of the list and sets the following values: First column: m_nNextIndex Second column: m_sDefaultValue |
void |
AddRowsToList(java.lang.String[] _aData)
Adds an array of new rows to the list. |
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 |
DoTaskOnComeBackFromPopUp()
|
void |
DoTaskOnComeBackFromSubEditor()
This method will be called when you come back to the main Editor from a sub Editor. |
ASURL |
GetASURLToProperty(java.lang.String _sSubSpaceKey)
Return the ASURL object going to the Property Editor as a sub Editor. |
ASURL |
GetEditObjectURL(java.lang.String _strServerName)
Returns the URL to edit the object. |
java.lang.String[] |
GetListValues()
This method should ge used by the client to get back the array of values at the end of the Editor and store them. |
java.lang.String |
GetName()
Returns the Class name. |
PTImageType |
GetRowIcon()
Returns the icon to display on each row before the input text. |
java.lang.String[] |
GetRowsToDelete()
|
void |
InitializeAutomationServerList(java.lang.String _sSectionTitle,
java.lang.String _sSectionSubTitle1,
java.lang.String _sSectionSubTitle2,
java.lang.String _sSectionSubTitle3,
PTImageType _imgAddIcon,
java.lang.String _sAddLabel,
int _nListKey)
Initializes the expandable list. |
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 |
SetDefaultObjects(java.lang.Object[][] _arrRows)
Add the array passed in argument to the list. |
void |
SetDefaultValue(java.lang.String _sDefaultValue)
Sets a new default value. |
void |
SetRowIcon(PTImageType _imgRowIcon)
Sets the icon to display on each row before the input text. |
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 java.lang.String SERVER_NAME
public static final int EXPLIST_COL_MAX
public static final int EXPLIST_COL_NAME
public static final int EXPLIST_COL_NETADDR
public static final int EXPLIST_COL_STATUS
public static final int EXPLIST_COL_LASTUPDATE
public static final int EXPLIST_SORTEDARRAY_PROPID_INPUTTEXT
protected PTImageType m_imgRowIcon
protected java.lang.String m_sDefaultValue
Constructor Detail |
---|
public AutomationServerListModel()
Method Detail |
---|
public void AddRowsOnRepost(XPHashtable _htFormData)
AddRowsOnRepost
in class ExpListModel
_htFormData
- Form datapublic void AddRowsToList(java.lang.String[] _aData)
_aData
- 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 DoTaskOnComeBackFromPopUp()
public void DoTaskOnComeBackFromSubEditor()
public ASURL GetASURLToProperty(java.lang.String _sSubSpaceKey)
_sSubSpaceKey
- Key for the sub Editor.
If we are going to a new sub Editor, the key can be null and
we will just pass in the default key. If we are going back to an
existing sub Editor, it should be the sub Editor key.
public ASURL GetEditObjectURL(java.lang.String _strServerName)
GetEditObjectURL
in interface IAutomationServerListModelRO
_nClassID
- _nObjectID
- _sEditorASName
-
com.plumtree.portalpagessample.editor.template4#GetASURLToProperty
public java.lang.String[] GetListValues()
public java.lang.String GetName()
GetName
in interface IMVCObject
GetName
in class EditorHelperModel
public PTImageType GetRowIcon()
GetRowIcon
in interface IAutomationServerListModelRO
com.plumtree.uiinfrastructure.expandablelist.GrowableListModel#GetRowIcon()
public java.lang.String[] GetRowsToDelete()
public void InitializeAutomationServerList(java.lang.String _sSectionTitle, java.lang.String _sSectionSubTitle1, java.lang.String _sSectionSubTitle2, java.lang.String _sSectionSubTitle3, PTImageType _imgAddIcon, java.lang.String _sAddLabel, int _nListKey)
_sSectionTitle
- Main title._sSectionSubTitle
- Sub title_imgAddIcon
- Icon for the add action._sAddLabel
- Text to display next to the add icon._nListKey
- In case you have multiple Expandable Lists on
the same DP, they should have a different key (otherwise, just set it to 1).public void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
InitializeSortedArray
in class ExpListModel
_saData
- public void SetDefaultObjects(java.lang.Object[][] _arrRows)
_arrRows
- Array of rows to add.public void SetDefaultValue(java.lang.String _sDefaultValue)
_sDefaultValue
- New valuepublic void SetRowIcon(PTImageType _imgRowIcon)
_imgRowIcon
- 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.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |