com.plumtree.uiinfrastructure.editor
Class EditorHelperRepostControl

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperRepostControl
All Implemented Interfaces:
IControl, IManagedObject, IMVCObject
Direct Known Subclasses:
CardLanguagePlugInRepostControl, DocTypePlugInRepostControl, ExpListControl, FolderSelectorRepostControl, HeaderAndFooterRepostControl, PageLayoutControl, SetJobRepostControl, SiteMapFolderPlugInControl, TipsControl, TypeSelectorRepostControl

public abstract class EditorHelperRepostControl
extends java.lang.Object
implements IControl

This class is a helper class for the EditorRepostControl. This is NOT a real control. The PerformRepostAction method will have to be called by the main RepostControl class of the Editor. This class can be used to implement common or plug-in sections and can also be used as a secondary RepostControl class if the main one is getting too big and you want to split the code into multiple classes.

Author:
Julie Fournier

Field Summary
protected  AActivitySpace m_asOwner
          Associated Activity Space.
protected  IModel m_model
          Associated Model.
 
Constructor Summary
EditorHelperRepostControl()
           
 
Method Summary
 Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
          This method is not used here.
abstract  java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
abstract  java.lang.String GetName()
          Returns the Class name.
 void Init(IModel model, AActivitySpace space)
          Inits the class with the associated model and activity space.
abstract  void PerformRepostAction(int _nAction, XPHashtable _htFormData)
          This method is a dispatcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_asOwner

protected AActivitySpace m_asOwner
Associated Activity Space.


m_model

protected IModel m_model
Associated Model.

Constructor Detail

EditorHelperRepostControl

public EditorHelperRepostControl()
Method Detail

Create

public abstract java.lang.Object Create()
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Returns:
A new instance of the managed class (i.e. return new Foo();)

GetName

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

Specified by:
GetName in interface IMVCObject
Returns:
String

CheckActionSecurityAndExecute

public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
This method is not used here. This calss is not a real control. It's just a helper for the Repost Control.

Specified by:
CheckActionSecurityAndExecute in interface IControl
Parameters:
arguments -
Returns:
Redirect

Init

public void Init(IModel model,
                 AActivitySpace space)
Inits the class with the associated model and activity space.

Specified by:
Init in interface IControl
Parameters:
model -
space -

PerformRepostAction

public abstract void PerformRepostAction(int _nAction,
                                         XPHashtable _htFormData)
This method is a dispatcher. For each repost action it should perform the right action.

Parameters:
_nAction - Action mode.
_htFormData - Form posted data.



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