com.plumtree.portalpages.common.documentlanguage
Class CardLanguagePlugInModel
java.lang.Object
  
com.plumtree.uiinfrastructure.editor.EditorHelperModel
      
com.plumtree.portalpages.common.documentlanguage.CardLanguagePlugInModel
- All Implemented Interfaces: 
 - ICardLanguagePlugInModelRO, IManagedObject, IModel, IModelRO, IMVCObject
 
public class CardLanguagePlugInModel
- extends EditorHelperModel
- implements ICardLanguagePlugInModelRO
  
This Model contains the state of the CardLanguage plug-in section.
- Author:
 
  - StephenC
 
 
 
 
 
 
| 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
 
ENGLISH_LOCALE_CODE
public static final java.lang.String ENGLISH_LOCALE_CODE
- See Also:
 - Constant Field Values
 
CHINESE_LANGUAGE_CODE
public static final java.lang.String CHINESE_LANGUAGE_CODE
- See Also:
 - Constant Field Values
 
CHINESE_LOCALE_CODE_CN
public static final java.lang.String CHINESE_LOCALE_CODE_CN
- See Also:
 - Constant Field Values
 
CHINESE_LOCALE_CODE_TW
public static final java.lang.String CHINESE_LOCALE_CODE_TW
- See Also:
 - Constant Field Values
 
CHINESE_LOCALE_CODE_HK
public static final java.lang.String CHINESE_LOCALE_CODE_HK
- See Also:
 - Constant Field Values
 
CHINESE_LOCALE_CODE_MO
public static final java.lang.String CHINESE_LOCALE_CODE_MO
- See Also:
 - Constant Field Values
 
CHINESE_LOCALE_CODE_SG
public static final java.lang.String CHINESE_LOCALE_CODE_SG
- See Also:
 - Constant Field Values
 
m_bIncludeAllLanguagesOption
public boolean m_bIncludeAllLanguagesOption
CardLanguagePlugInModel
public CardLanguagePlugInModel()
Create
public java.lang.Object Create()
- Description copied from class: 
EditorHelperModel 
- 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 EditorHelperModel
 
- Returns:
 - A new instance of the managed class (i.e. return new Foo();)
 - See Also:
 IManagedObject.Create()
 
 
GetAllLanguageCodes
public java.lang.String[] GetAllLanguageCodes()
- Specified by:
 GetAllLanguageCodes in interface ICardLanguagePlugInModelRO
 
- Returns:
 
 
GetAllLanguageNames
public java.lang.String[] GetAllLanguageNames()
- Specified by:
 GetAllLanguageNames in interface ICardLanguagePlugInModelRO
 
- Returns:
 
 
GetCardLanguageCode
public java.lang.String GetCardLanguageCode()
- Specified by:
 GetCardLanguageCode in interface ICardLanguagePlugInModelRO
 
- Returns:
 
 
GetDisplayOnlyPopularLanguages
public boolean GetDisplayOnlyPopularLanguages()
- Specified by:
 GetDisplayOnlyPopularLanguages in interface ICardLanguagePlugInModelRO
 
- Returns:
 
 
GetInstructionLabel
public java.lang.String GetInstructionLabel()
- Specified by:
 GetInstructionLabel in interface ICardLanguagePlugInModelRO
 
- Returns:
 
 
SetInstructionLabel
public void SetInstructionLabel(java.lang.String label)
 
 
GetName
public java.lang.String GetName()
- Returns the Class name.
- Specified by:
 GetName in interface IMVCObject- Specified by:
 GetName in class EditorHelperModel
 
- Returns:
 - String
 
 
 
GetPopularLanguageCodes
public java.lang.String[] GetPopularLanguageCodes()
- Specified by:
 GetPopularLanguageCodes in interface ICardLanguagePlugInModelRO
 
- Returns:
 
 
GetPopularLanguageNames
public java.lang.String[] GetPopularLanguageNames()
- Specified by:
 GetPopularLanguageNames in interface ICardLanguagePlugInModelRO
 
- Returns:
 
 
GetViewTitle
public java.lang.String GetViewTitle()
- Specified by:
 GetViewTitle in interface ICardLanguagePlugInModelRO
 
- Returns:
 
 
SetViewTitle
public void SetViewTitle(java.lang.String title)
 
 
IncludeAllLanguagesOption
public boolean IncludeAllLanguagesOption()
- Specified by:
 IncludeAllLanguagesOption in interface ICardLanguagePlugInModelRO
 
- Returns:
 
 
InitializePlugIn
public void InitializePlugIn(java.lang.String strCardLanguage,
                             java.lang.String strViewTitle,
                             java.lang.String strInstructionLabel,
                             boolean bIncludeAllLanguagesOption)
- To initialize this plug-in you need to set the DP name
 and the default value of the plug-in setting.
 
- Parameters:
 _sPlugInSetting - 
 
 
SaveSection
public int SaveSection(XPHashtable _htFormData)
- Saves the data on the Main page.
- Specified by:
 SaveSection in class EditorHelperModel
 
- Parameters:
 _htFormData - 
- Returns:
 - int Status for server side validation
 
 
 
SetDisplayOnlyPopularLanguages
public void SetDisplayOnlyPopularLanguages(boolean bValue)
 
- Parameters:
 bValue - 
 
GetLangFromFormData
public java.lang.String GetLangFromFormData(XPHashtable formData)