com.plumtree.portalpages.admin.editors.portlet.plugins
Class PortletSettingsModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.portalpages.admin.editors.portlet.plugins.PortletSettingsModel
All Implemented Interfaces:
IPSubModel, IPortletSettingsModelRO, IManagedObject, IModel, IModelRO, IMVCObject

public class PortletSettingsModel
extends EditorHelperModel
implements IPortletSettingsModelRO, IPSubModel

Author:
adolfoc

Field Summary
protected  IPTGadget m_ptPortlet
          Our portlet, passed to us in InitPModel
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
m_asOwner
 
Constructor Summary
PortletSettingsModel()
           
 
Method Summary
 void ChangePortletAlignment(XPHashtable form)
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DoTaskBeforePStore()
          Sub models are expected to store themselves to the ptWebService object passed in in InitWSModel during this call.
 void DoTaskOnPModeUpdate(int nNewWSMode)
          Called when the Portlet editor mode is changed.
 void DoTaskOnWebServiceUpdate(IPTWebService ptWebService)
          Called when the Remote Server is changed.
 java.lang.String GetName()
          Returns the Class name.
 int GetPortletSize()
          Returns the m_intPortletSize.
 int GetPortletType()
          Returns the m_intTemplate.
 boolean GetSuppressTitleBar()
          Returns the m_intSuppressTitleBar.
 void InitPModel(IPTGadget ptPortlet)
          Initializes the sub-model.
 int SaveSection(XPHashtable _htFormData)
          Code to save the section represented by this Model.
 void SetPortletSize(int intPortletSize)
          Sets the m_intPortletSize.
 void SetSuppressTitleBar(boolean bSuppressTitleBar)
          Sets the m_intSuppressTitleBar.
 void SetTemplate(int intPortletType)
          Sets the m_intTemplate.
 
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

m_ptPortlet

protected IPTGadget m_ptPortlet
Our portlet, passed to us in InitPModel

Constructor Detail

PortletSettingsModel

public PortletSettingsModel()
Method Detail

ChangePortletAlignment

public void ChangePortletAlignment(XPHashtable form)

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

DoTaskBeforePStore

public void DoTaskBeforePStore()
Description copied from interface: IPSubModel
Sub models are expected to store themselves to the ptWebService object passed in in InitWSModel during this call.

Specified by:
DoTaskBeforePStore in interface IPSubModel
See Also:
IPSubModel.DoTaskBeforePStore()

DoTaskOnPModeUpdate

public void DoTaskOnPModeUpdate(int nNewWSMode)
Description copied from interface: IPSubModel
Called when the Portlet editor mode is changed.

Specified by:
DoTaskOnPModeUpdate in interface IPSubModel
See Also:
com.plumtree.portalpages.admin.editors.portlet.IPSubModel#DoTaskOnWSModeUpdate(int)

DoTaskOnWebServiceUpdate

public void DoTaskOnWebServiceUpdate(IPTWebService ptWebService)
Description copied from interface: IPSubModel
Called when the Remote Server is changed. This is mostly used to update the base-url displayed before URL edit boxes.

Specified by:
DoTaskOnWebServiceUpdate in interface IPSubModel
See Also:
com.plumtree.portalpages.admin.editors.portlet.IPSubModel#DoTaskOnWebServiceUpdate(String, String)

GetPortletType

public int GetPortletType()
Returns the m_intTemplate.

Specified by:
GetPortletType in interface IPortletSettingsModelRO
Returns:
int

GetName

public java.lang.String GetName()
Description copied from class: EditorHelperModel
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorHelperModel
Returns:
String
See Also:
IMVCObject.GetName()

GetPortletSize

public int GetPortletSize()
Returns the m_intPortletSize.

Specified by:
GetPortletSize in interface IPortletSettingsModelRO
Returns:
int

GetSuppressTitleBar

public boolean GetSuppressTitleBar()
Returns the m_intSuppressTitleBar.

Specified by:
GetSuppressTitleBar in interface IPortletSettingsModelRO
Returns:
int

InitPModel

public void InitPModel(IPTGadget ptPortlet)
Description copied from interface: IPSubModel
Initializes the sub-model. Provides an opportunity for the submodel to load it's state from the WebService.

Specified by:
InitPModel in interface IPSubModel
See Also:
com.plumtree.portalpages.admin.editors.portlet.IPSubModel#InitPModel(IPTWebService)

SaveSection

public int SaveSection(XPHashtable _htFormData)
Description copied from class: EditorHelperModel
Code to save the section represented by this Model.

Specified by:
SaveSection in class EditorHelperModel
Parameters:
_htFormData - Form posted data.
Returns:
int Status for server side validation
See Also:
EditorHelperModel.SaveSection(XPHashtable)

SetPortletSize

public void SetPortletSize(int intPortletSize)
Sets the m_intPortletSize.

Parameters:
m_intPortletSize - The m_intPortletSize to set

SetSuppressTitleBar

public void SetSuppressTitleBar(boolean bSuppressTitleBar)
Sets the m_intSuppressTitleBar.

Parameters:
m_intSuppressTitleBar - The m_intSuppressTitleBar to set

SetTemplate

public void SetTemplate(int intPortletType)
Sets the m_intTemplate.

Parameters:
m_intTemplate - The m_intTemplate to set



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