|
|||||||||
| 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.editor.commonpages.localizednames.LocNamesModel
public class LocNamesModel
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 |
CLIENT_VALIDATION_MAX_DESCRIPTION
|
static int |
CLIENT_VALIDATION_MAX_NAME
MES- Constants for client side validation |
static int |
LOCNAMEMODEL_COL_DESCRIPTION
Third column: description. |
static int |
LOCNAMEMODEL_COL_INDEX
First column: an index to keep the list sorted. |
static int |
LOCNAMEMODEL_COL_LANG
Fourth column: language. |
static int |
LOCNAMEMODEL_COL_LANGNAME
Fifth column: language name. |
static int |
LOCNAMEMODEL_COL_MAX
Number total of columns |
static int |
LOCNAMEMODEL_COL_NAME
Second column: name. |
boolean |
m_bHasMandatoryLang
MES- Does the portal have a mandatory language? See comments below. |
boolean |
m_bSupportsLocalization
MES- Does the object support localization at all? |
boolean |
m_bUseClientValidationMaxNameOverride
RWW - Sse the max name override value if this is true, use the default value if this is false. |
int |
m_iClientValidationMaxNameOverride
RWW - Allow someone to set a different max length for name. |
PTImageType |
m_imgRowIcon
Icon to display on each row, just before the input text. |
int |
m_iRowToEdit
MES- This is a sort of "temp" variable used when a popup edits a name and description. |
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 | |
|---|---|
LocNamesModel()
|
|
| 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 |
java.lang.Object |
Create()
This method is used by the ASManager to return new instances of managed objects. |
void |
Finish()
MES- Finish is called by the ObjEditorModel when the object is being stored. |
int |
GetClassID()
|
boolean |
GetIsLocalized()
MES- GetIsLocalized is used by controls to find out if the object is localized. |
int |
GetMaxNameOverride()
RWW - Returns the override value for the max length for the name field (for client validation). |
java.lang.String |
GetName()
Returns the Class name. |
java.lang.String |
GetNameLabel()
|
int |
GetObjectID()
|
java.lang.String |
GetObjectUUID()
|
java.lang.String |
GetPopUpDisplayPageName()
|
java.lang.String |
GetPrimaryDesc()
MES- GetPrimaryDesc is used by controls to find out the primary description for the object we're editing |
java.lang.String |
GetPrimaryLang()
MES- GetPrimaryLang is used by controls to find out the primary language for the object we're editing |
java.lang.String |
GetPrimaryName()
MES- GetPrimaryName is used by controls to find out the primary name for the object we're editing |
PTImageType |
GetRowIcon()
Returns the icon to display on each row before the input text. |
int |
GetRowToEdit()
|
boolean |
HasMandatoryLang()
Does the portal have a mandatory language? |
void |
InitializeNameDescEditor(IPTLocalizable objToEdit,
int _nListKey)
Initializes the expandable list. |
void |
InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
Initalizes the list (PTGrowableSortedArrayWrapper) with a column mapping and an array of sort. |
boolean |
IsNoDescriptions()
|
boolean |
IsUsingMaxNameOverride()
RWW - Returns whether we should use use the override or default value for name field. |
protected int |
SaveRow(PTGrowableSortedArrayWrapper _saData,
int _nRowIndex,
XPHashtable _htFormData)
Saves the data on the row _nRowIndex. |
int |
SaveSection(XPHashtable _htFormData)
Saves the data when a repost occurs. |
void |
SetIsLocalized(boolean bIsLocalized)
MES- SetIsLocalized is used by controls to set the IsLocalized flag on the object we're editing. |
void |
SetIsNoDescriptions(boolean bNoDescriptions)
If this method is not called, then it will default to using descriptions unless the Object does not support it. |
void |
SetNameLabel(java.lang.String strNameLabel)
Call this method if the default name label is not appropriate. |
void |
SetPopUpDisplayPageName(java.lang.String strPopUpDisplayPageName)
Call this method if you want the popup display page to be something other than LocNamesPopUpDP.STR_MVC_CLASS_NAME |
void |
SetPrimaryLang(java.lang.String sPrimaryLang)
MES- SetPrimaryLang is used by controls to set the primary language on the object we're editing. |
void |
SetRowIcon(PTImageType _imgRowIcon)
Sets the icon to display on each row before the input text. |
void |
SetRowToEdit(int nRowToEdit)
|
boolean |
SupportsLocalization()
Does the object support localization at all? |
| 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 CLIENT_VALIDATION_MAX_NAME
public static final int CLIENT_VALIDATION_MAX_DESCRIPTION
public static final int LOCNAMEMODEL_COL_INDEX
public static final int LOCNAMEMODEL_COL_NAME
public static final int LOCNAMEMODEL_COL_DESCRIPTION
public static final int LOCNAMEMODEL_COL_LANG
public static final int LOCNAMEMODEL_COL_LANGNAME
public static final int LOCNAMEMODEL_COL_MAX
public PTImageType m_imgRowIcon
public boolean m_bHasMandatoryLang
public boolean m_bSupportsLocalization
public int m_iClientValidationMaxNameOverride
public boolean m_bUseClientValidationMaxNameOverride
public int m_iRowToEdit
| Constructor Detail |
|---|
public LocNamesModel()
| Method Detail |
|---|
public boolean IsUsingMaxNameOverride()
IsUsingMaxNameOverride in interface ILocNamesModelROpublic int GetMaxNameOverride()
GetMaxNameOverride in interface ILocNamesModelROpublic void AddRowsOnRepost(XPHashtable _htFormData)
AddRowsOnRepost in class ExpListModel_htFormData - Form datapublic java.lang.Object Create()
EditorHelperModel
Create in interface IManagedObjectCreate in class EditorHelperModelIManagedObject.Create()public void Finish()
public java.lang.String GetNameLabel()
GetNameLabel in interface ILocNamesModelROpublic void SetNameLabel(java.lang.String strNameLabel)
SetNameLabel in interface ILocNamesModelsNameLabel - public boolean IsNoDescriptions()
IsNoDescriptions in interface ILocNamesModelROcom.plumtree.portaluiinfrastructure.editor.commonpages.localizednames.ILocNamesModelRO#GetNoDescriptions()public void SetIsNoDescriptions(boolean bNoDescriptions)
SetIsNoDescriptions in interface ILocNamesModelbNoDescriptions - public java.lang.String GetPopUpDisplayPageName()
GetPopUpDisplayPageName in interface ILocNamesModelROILocNamesModelRO.GetPopUpDisplayPageName()public void SetPopUpDisplayPageName(java.lang.String strPopUpDisplayPageName)
SetPopUpDisplayPageName in interface ILocNamesModelsPopUpDisplayPageName - public boolean GetIsLocalized()
GetIsLocalized in interface ILocNamesModelROpublic java.lang.String GetName()
GetName in interface IMVCObjectGetName in class EditorHelperModelpublic java.lang.String GetPrimaryDesc()
GetPrimaryDesc in interface ILocNamesModelROpublic java.lang.String GetPrimaryLang()
GetPrimaryLang in interface ILocNamesModelROpublic java.lang.String GetPrimaryName()
GetPrimaryName in interface ILocNamesModelROpublic boolean HasMandatoryLang()
HasMandatoryLang in interface ILocNamesModelROpublic boolean SupportsLocalization()
SupportsLocalization in interface ILocNamesModelROpublic int GetRowToEdit()
GetRowToEdit in interface ILocNamesModelROpublic PTImageType GetRowIcon()
GetRowIcon in interface ILocNamesModelROcom.plumtree.uiinfrastructure.expandablelist.GrowableListModel#GetRowIcon()
public void InitializeNameDescEditor(IPTLocalizable objToEdit,
int _nListKey)
objToEdit - is the IPTObject to be editedpublic void InitializeSortedArray(PTGrowableSortedArrayWrapper _saData)
InitializeSortedArray in class ExpListModel_saData - public int SaveSection(XPHashtable _htFormData)
SaveSection in class ExpListModel_htFormData -
public void SetIsLocalized(boolean bIsLocalized)
SetIsLocalized in interface ILocNamesModelbIsLocalized - indicates if the object supports localizationpublic void SetPrimaryLang(java.lang.String sPrimaryLang)
SetPrimaryLang in interface ILocNamesModelsPrimaryLang - is the identifier of the new primary languagepublic void SetRowToEdit(int nRowToEdit)
SetRowToEdit in interface ILocNamesModelnRowToEdit - public 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.
public int GetObjectID()
GetObjectID in interface ILocNamesModelROpublic java.lang.String GetObjectUUID()
GetObjectUUID in interface ILocNamesModelROpublic int GetClassID()
GetClassID in interface ILocNamesModelROILocNamesModelRO.GetClassID()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||