com.plumtree.portalpages.common.documentlanguage
Class CardLanguagePlugInModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by 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

Field Summary
static java.lang.String CHINESE_LANGUAGE_CODE
           
static java.lang.String CHINESE_LOCALE_CODE_CN
           
static java.lang.String CHINESE_LOCALE_CODE_HK
           
static java.lang.String CHINESE_LOCALE_CODE_MO
           
static java.lang.String CHINESE_LOCALE_CODE_SG
           
static java.lang.String CHINESE_LOCALE_CODE_TW
           
static java.lang.String ENGLISH_LOCALE_CODE
           
 boolean m_bIncludeAllLanguagesOption
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
m_asOwner
 
Constructor Summary
CardLanguagePlugInModel()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 java.lang.String[] GetAllLanguageCodes()
           
 java.lang.String[] GetAllLanguageNames()
           
 java.lang.String GetCardLanguageCode()
           
 boolean GetDisplayOnlyPopularLanguages()
           
 java.lang.String GetInstructionLabel()
           
 java.lang.String GetLangFromFormData(XPHashtable formData)
           
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String[] GetPopularLanguageCodes()
           
 java.lang.String[] GetPopularLanguageNames()
           
 java.lang.String GetViewTitle()
           
 boolean IncludeAllLanguagesOption()
           
 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.
 int SaveSection(XPHashtable _htFormData)
          Saves the data on the Main page.
 void SetDisplayOnlyPopularLanguages(boolean bValue)
           
 void SetInstructionLabel(java.lang.String label)
           
 void SetViewTitle(java.lang.String title)
           
 
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
 

Field Detail

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
Constructor Detail

CardLanguagePlugInModel

public CardLanguagePlugInModel()
Method Detail

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)



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.