com.plumtree.portalpages.browsing.editors.dircommon.doctype
Class DocTypePlugInModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.portalpages.browsing.editors.dircommon.doctype.DocTypePlugInModel
All Implemented Interfaces:
IDocTypePlugInModelRO, IManagedObject, IModel, IModelRO, IMVCObject

public class DocTypePlugInModel
extends EditorHelperModel
implements IDocTypePlugInModelRO

This Model contains the state of the DocType plug-in section.

Author:
StephenC

Field Summary
static java.lang.String DEFAULTDATA
           
protected  int m_nDocTypeChoice
           
protected  int m_nDocTypeID
           
 IPTSession m_ptSession
           
protected  java.lang.String m_strDocTypeName
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
m_asOwner
 
Constructor Summary
DocTypePlugInModel()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 int GetDocTypeChoice()
          returns the value of the radio control (0 for default doctype, 1 otherwise)
 java.lang.String GetDocTypeName(int nDocTypeID)
          returns the name of a given doctype.
 java.lang.String GetDocTypeSubSpaceID()
           
 java.lang.String GetDocTypeTREESUBSPACE()
           
 java.lang.String GetName()
          Returns the Class name.
 int GetSelectedDocTypeID()
          returns the currently selected DocType ID
 java.lang.String GetSelectedDocTypeName()
          returns the currently selected DocType Name
 void RefreshItemFromTree()
          This method gets the selected items from the tree.
 int SaveSection(XPHashtable _htFormData)
          Saves the data on the Main page.
 
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

DEFAULTDATA

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

m_ptSession

public IPTSession m_ptSession

m_strDocTypeName

protected java.lang.String m_strDocTypeName

m_nDocTypeChoice

protected int m_nDocTypeChoice

m_nDocTypeID

protected int m_nDocTypeID
Constructor Detail

DocTypePlugInModel

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

GetDocTypeChoice

public int GetDocTypeChoice()
Description copied from interface: IDocTypePlugInModelRO
returns the value of the radio control (0 for default doctype, 1 otherwise)

Specified by:
GetDocTypeChoice in interface IDocTypePlugInModelRO
See Also:
com.plumtree.portalpages.browsing.editors.folder.IFolderEditorModelRO#GetDocTypeName()

GetDocTypeName

public java.lang.String GetDocTypeName(int nDocTypeID)
Description copied from interface: IDocTypePlugInModelRO
returns the name of a given doctype.

Specified by:
GetDocTypeName in interface IDocTypePlugInModelRO
See Also:
com.plumtree.portalpages.browsing.editors.folder.IFolderEditorModelRO#GetDocTypeNAme()

GetDocTypeSubSpaceID

public java.lang.String GetDocTypeSubSpaceID()
Specified by:
GetDocTypeSubSpaceID in interface IDocTypePlugInModelRO
Returns:
See Also:
com.plumtree.portalpagessample.form.ISampleFormModelRO#GetDocTypeSubSpaceID(String)

GetDocTypeTREESUBSPACE

public java.lang.String GetDocTypeTREESUBSPACE()
Specified by:
GetDocTypeTREESUBSPACE in interface IDocTypePlugInModelRO
Returns:

GetName

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

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

GetSelectedDocTypeID

public int GetSelectedDocTypeID()
Description copied from interface: IDocTypePlugInModelRO
returns the currently selected DocType ID

Specified by:
GetSelectedDocTypeID in interface IDocTypePlugInModelRO
See Also:
com.plumtree.portalpages.browsing.editors.folder.IFolderEditorModelRO#GetSelectedDocType()

GetSelectedDocTypeName

public java.lang.String GetSelectedDocTypeName()
Description copied from interface: IDocTypePlugInModelRO
returns the currently selected DocType Name

Specified by:
GetSelectedDocTypeName in interface IDocTypePlugInModelRO
See Also:
com.plumtree.portalpages.browsing.editors.folder.IFolderEditorModelRO#GetSelectedDocTypeName()

RefreshItemFromTree

public void RefreshItemFromTree()
This method gets the selected items from the tree.


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



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