com.plumtree.portalpages.browsing.myportal.editpage
Class EditPageRepostControl

java.lang.Object
  extended by com.plumtree.uiinfrastructure.form.RepostControl
      extended by com.plumtree.uiinfrastructure.editor.EditorRepostControl
          extended by com.plumtree.portalpages.browsing.myportal.editpage.EditPageRepostControl
All Implemented Interfaces:
IControl, IManagedObject, IMVCObject

public class EditPageRepostControl
extends EditorRepostControl

This class contains the additional repost actions. The ones specific to the Edit Page Editor (other than "change page", "finish" and "cancel" actions).

Author:
MichaelD

Field Summary
static java.lang.String STR_MVC_CLASS_NAME
          Object Name
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorRepostControl
POSTTOSELF_ACTION_ONRETURN_FROM_SUBEDITOR
 
Fields inherited from class com.plumtree.uiinfrastructure.form.RepostControl
HTMLINPUT_PASSTHRU_ARGS, HTMLINPUT_PASSTHRU_CONTROL, HTMLINPUT_POSTTOSELF, HTMLSUBMIT_508_POSTTOSELF, m_asOwner, m_bInitialized, m_htFormData, m_model, m_nAction, m_nPageStatus, m_rRedirect, PAGE_STATUS_INVALID, PAGE_STATUS_VALID, POSTTOSELF_ACTION_APPLY_CHANGES, POSTTOSELF_ACTION_CANCEL, POSTTOSELF_ACTION_FINISH, POSTTOSELF_ACTION_GOTOPAGE, POSTTOSELF_ACTION_IN_PLACE_REFRESH, POSTTOSELF_ACTION_PASSTHRU, POSTTOSELF_ACTION_SIMPLEREPOST, POSTTOSELF_ACTION_UNDEFINED
 
Constructor Summary
EditPageRepostControl()
           
 
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.
protected  void PerformAction(int _nAction)
          Switch between the action modes and call the associated method for each action.
protected  void PerformCancelAction()
          Helper method to implement the Cancel action.
protected  void SetRedirectToCloseSubEditor()
          This method is called when we finish a sub Editor.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorRepostControl
CheckActionSecurityAndExecute, CheckMandatoryPages, PerformFinishAction, PerformReadOnlyAction, SaveCurrentPage
 
Methods inherited from class com.plumtree.uiinfrastructure.form.RepostControl
GetPageStatus, GetRepostAction, Init, PerformPassthruAction, SetPageStatus, SetRedirect, SetRepostAction
 
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
Object Name

See Also:
Constant Field Values
Constructor Detail

EditPageRepostControl

public EditPageRepostControl()
Method Detail

Create

public java.lang.Object Create()
Description copied from interface: IManagedObject
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Overrides:
Create in class EditorRepostControl
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
Overrides:
GetName in class EditorRepostControl
Returns:
String

PerformAction

protected void PerformAction(int _nAction)
Switch between the action modes and call the associated method for each action.

Overrides:
PerformAction in class EditorRepostControl
Parameters:
int -

SetRedirectToCloseSubEditor

protected void SetRedirectToCloseSubEditor()
This method is called when we finish a sub Editor. It takes care of closing the sub Editor pop-up winodws and repost the main Editor window.

Overrides:
SetRedirectToCloseSubEditor in class EditorRepostControl

PerformCancelAction

protected void PerformCancelAction()
Description copied from class: EditorRepostControl
Helper method to implement the Cancel action. On cancel, we just redirect to whatever is returned by GetRedirectAfterFinish. If this is a sub Editor in Create mode we also delete the sub Editor from the list. And then we close the pop-up.

Overrides:
PerformCancelAction in class EditorRepostControl
See Also:
EditorRepostControl.PerformCancelAction()



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