com.plumtree.portalpages.common.editpage
Class PageNamePlugInModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.portalpages.common.editpage.PageNamePlugInModel
All Implemented Interfaces:
IPageNameModelRO, IManagedObject, IModel, IModelRO, IMVCObject

public class PageNamePlugInModel
extends EditorHelperModel
implements IPageNameModelRO

This Model contains the state of the page name plug-in section.

Author:
MichaelD

Field Summary
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
m_asOwner
 
Constructor Summary
PageNamePlugInModel()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetNameLabel()
          Returns the label for the page name input box.
 int GetOpenerObjectID()
          Gets the Object ID of the object that opened this layout page.
 java.lang.String GetPageName()
          Returns the value of the page name.
 void InitializePlugIn(java.lang.String _strPageName, java.lang.String _strNameLabel, int _nOpenerObjectID)
          To initialize this plug-in you need to set the DP name and the default value of the plug-in setting.
 boolean IsValidPageName(java.lang.String _strPageName)
          Method IsValidPageName.
 int SaveSection(XPHashtable _htFormData)
          Saves the data on the Main page.
 void SetPageName(java.lang.String _strPageName)
          Sets the value of the page name.
 
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
Constructor Detail

PageNamePlugInModel

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

GetName

public java.lang.String GetName()
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorHelperModel
Returns:
String

GetNameLabel

public java.lang.String GetNameLabel()
Description copied from interface: IPageNameModelRO
Returns the label for the page name input box.

Specified by:
GetNameLabel in interface IPageNameModelRO
Returns:
String strLabel
See Also:
IPageNameModelRO.GetNameLabel()

GetOpenerObjectID

public int GetOpenerObjectID()
Description copied from interface: IPageNameModelRO
Gets the Object ID of the object that opened this layout page.

Specified by:
GetOpenerObjectID in interface IPageNameModelRO
Returns:
int nObjectID
See Also:
IPageNameModelRO.GetOpenerObjectID()

GetPageName

public java.lang.String GetPageName()
Returns the value of the page name.

Specified by:
GetPageName in interface IPageNameModelRO
Returns:
String strPageName

InitializePlugIn

public void InitializePlugIn(java.lang.String _strPageName,
                             java.lang.String _strNameLabel,
                             int _nOpenerObjectID)
To initialize this plug-in you need to set the DP name and the default value of the plug-in setting.

Parameters:
_dpName - This is the name of the DP that will display SamplePlugInView.
String - _strPageName

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

IsValidPageName

public boolean IsValidPageName(java.lang.String _strPageName)
Method IsValidPageName. Checks to see if the page name is valid.

Parameters:
_strPageName -
Returns:
boolean

SetPageName

public void SetPageName(java.lang.String _strPageName)
Sets the value of the page name.

Parameters:
String - _strPageName



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