com.plumtree.portalpages.browsing.portalsettings.displayoptions
Class DisplayOptModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.browsing.portalsettings.displayoptions.DisplayOptModel
All Implemented Interfaces:
IDisplayOptModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class DisplayOptModel
extends EditorModel
implements IDisplayOptModelRO

Author:
Sample

Field Summary
protected  IPTSession m_ptSession
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
isReadAccessAvailable, m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bEnableCancelButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
DisplayOptModel()
           
 
Method Summary
 java.lang.String AddToErrorString(java.lang.String strErrorMsgs, java.lang.String strNewMessage)
           
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Implements some actions to perform on start.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 java.lang.String GetAccessibilityStyle()
           
 java.lang.String GetGreeting()
           
 java.lang.String GetName()
          Returns the Class name.
 boolean GetRulesDebugMode()
           
 int GetTimeout()
           
 boolean IsRefreshRate(java.lang.String strRate)
           
 boolean IsViewChecked(java.lang.String strType)
           
 void LoadSettings()
           
protected  int SaveAccessibility(XPHashtable _htFormData)
           
protected  int SaveDisplayOptions(XPHashtable _htFormData)
           
protected  int SaveEnableRulesDebugMode(XPHashtable _htFormData)
           
protected  int SaveGreeting(XPHashtable _htFormData)
           
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
protected  int SaveTimeout(XPHashtable _htFormData)
           
 boolean ShouldOpenNewWindow()
           
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, GetUserHasAccessToEditor, Init, 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
 
Methods inherited from interface com.plumtree.uiinfrastructure.editor.IEditorModelRO
GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
See Also:
Constant Field Values

m_ptSession

protected IPTSession m_ptSession
Constructor Detail

DisplayOptModel

public DisplayOptModel()
Method Detail

AddToErrorString

public java.lang.String AddToErrorString(java.lang.String strErrorMsgs,
                                         java.lang.String strNewMessage)
Parameters:
strErrorMsgs -
strNewMessage -
Returns:

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
Description copied from class: EditorModel
Implements some actions to perform on start. Use the Editor Type if needed.

Specified by:
CheckEditorAccessAndStart in class EditorModel
Returns:
boolean Is true if the current user has the rights to access this Editor.

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()

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

GetAccessibilityStyle

public java.lang.String GetAccessibilityStyle()
Specified by:
GetAccessibilityStyle in interface IDisplayOptModelRO
Returns:

GetGreeting

public java.lang.String GetGreeting()
Specified by:
GetGreeting in interface IDisplayOptModelRO
Returns:

GetRulesDebugMode

public boolean GetRulesDebugMode()
Specified by:
GetRulesDebugMode in interface IDisplayOptModelRO
Returns:

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:

GetTimeout

public int GetTimeout()
Specified by:
GetTimeout in interface IDisplayOptModelRO
Returns:

IsRefreshRate

public boolean IsRefreshRate(java.lang.String strRate)
Specified by:
IsRefreshRate in interface IDisplayOptModelRO
Returns:

IsViewChecked

public boolean IsViewChecked(java.lang.String strType)
Specified by:
IsViewChecked in interface IDisplayOptModelRO
Parameters:
strType -
Returns:

LoadSettings

public void LoadSettings()

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:

ShouldOpenNewWindow

public boolean ShouldOpenNewWindow()
Specified by:
ShouldOpenNewWindow in interface IDisplayOptModelRO
Returns:

SaveAccessibility

protected int SaveAccessibility(XPHashtable _htFormData)
Parameters:
_htFormData -
Returns:

SaveDisplayOptions

protected int SaveDisplayOptions(XPHashtable _htFormData)
Parameters:
_htFormData -
Returns:

SaveGreeting

protected int SaveGreeting(XPHashtable _htFormData)
Parameters:
_htFormData -
Returns:

SaveTimeout

protected int SaveTimeout(XPHashtable _htFormData)
Parameters:
_htFormData -
Returns:

SaveEnableRulesDebugMode

protected int SaveEnableRulesDebugMode(XPHashtable _htFormData)
Parameters:
_htFormData -
Returns:



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