com.plumtree.portalpages.common.areyousure
Class AYSMessageView

java.lang.Object
  extended by com.plumtree.portalpages.common.areyousure.AYSMessageView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class AYSMessageView
extends java.lang.Object
implements IView

Author:
adolfoc

Field Summary
static java.lang.String HTMLBUTTON_CANCEL
          HTML Object name: close button
static java.lang.String HTMLBUTTON_OK
          HTML Object name: ok button
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the activity space
 
Constructor Summary
AYSMessageView()
           
 
Method Summary
protected  void AddLineBreaks(HTMLElement myElement, int nNumBreaks)
          Helper method to add a BR tag to another element.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 HTMLElement Display()
          This method returns the HTMLElement that encompasses the output of the View.
 HTMLScript DisplayJavascript()
          This method returns the HTMLScript that encompasses the Javascript on the page.
 HTMLElement DisplayMessage(AYSMessage aysmIn)
          Default implementation which simply displays and Are You Sure message
 HTMLElement DisplayMessages(java.lang.String strTitle, java.lang.String strSubTitle, XPArrayList xpalMessages, int nAYSMessageTypeToDisplay)
          Displays all of the AYSMessages in xpalMessages or nothing if there are no messages.
protected  HTMLImg GetHTMLForIcon(PTImageType _imgRowIcon)
          Helper method to get the HTML for the icon.
 java.lang.String GetName()
          Return the name of the MVC object.
 void Init(IModelRO model, AActivitySpace parent)
          This method initializes the View with the read only model interface it is supposed to draw it's data from as well as it's parent ActivitySpace (necessary to create URLS).
 
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
Class name for the activity space

See Also:
Constant Field Values

HTMLBUTTON_CANCEL

public static final java.lang.String HTMLBUTTON_CANCEL
HTML Object name: close button

See Also:
Constant Field Values

HTMLBUTTON_OK

public static final java.lang.String HTMLBUTTON_OK
HTML Object name: ok button

See Also:
Constant Field Values
Constructor Detail

AYSMessageView

public AYSMessageView()
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
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

Display

public HTMLElement Display()
Description copied from interface: IView
This method returns the HTMLElement that encompasses the output of the View.

Specified by:
Display in interface IView
See Also:
IView.Display()

DisplayJavascript

public HTMLScript DisplayJavascript()
Description copied from interface: IView
This method returns the HTMLScript that encompasses the Javascript on the page. This method should be called by IDisplayPages and the resulting Javascript should be put in the HTMLHead element. This can return null.

Specified by:
DisplayJavascript in interface IView
See Also:
IView.DisplayJavascript()

DisplayMessages

public HTMLElement DisplayMessages(java.lang.String strTitle,
                                   java.lang.String strSubTitle,
                                   XPArrayList xpalMessages,
                                   int nAYSMessageTypeToDisplay)
Displays all of the AYSMessages in xpalMessages or nothing if there are no messages.

Parameters:
strTitle -
strSubTitle -
xpalMessages -
Returns:

DisplayMessage

public HTMLElement DisplayMessage(AYSMessage aysmIn)
Default implementation which simply displays and Are You Sure message


GetName

public java.lang.String GetName()
Description copied from interface: IMVCObject
Return the name of the MVC object.

Specified by:
GetName in interface IMVCObject
Returns:
the name of the object.
See Also:
IMVCObject.GetName()

Init

public void Init(IModelRO model,
                 AActivitySpace parent)
Description copied from interface: IView
This method initializes the View with the read only model interface it is supposed to draw it's data from as well as it's parent ActivitySpace (necessary to create URLS).

Specified by:
Init in interface IView
See Also:
IView.Init(IModelRO, AActivitySpace)

AddLineBreaks

protected void AddLineBreaks(HTMLElement myElement,
                             int nNumBreaks)
Helper method to add a BR tag to another element.


GetHTMLForIcon

protected HTMLImg GetHTMLForIcon(PTImageType _imgRowIcon)
Helper method to get the HTML for the icon. (Each row has an icon before the input text.)

Returns:
HTMLImg
Throws:
java.lang.Exception



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