com.plumtree.portalpages.admin.ptutilities.diagnostic.dynamicloads
Class DynamicLoadsView

java.lang.Object
  extended by com.plumtree.portalpages.admin.ptutilities.diagnostic.dynamicloads.DynamicLoadsView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class DynamicLoadsView
extends java.lang.Object
implements IView

This view outputs a list of Dynamically loaded Objects and how many of them have been loaded in the Portal.

Author:
DonH

Field Summary
protected static java.lang.String[] COL_WIDTHS
           
protected  AActivitySpace m_asOwner
           
protected  java.lang.String[] m_strCOL_NAMES_CUSTOM_OBJECTS
           
protected  java.lang.String[] m_strCOL_NAMES_DYNAMIC_LOADS
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Constructor Summary
DynamicLoadsView()
           
 
Method Summary
 HTMLAnchor BuildAnchor(java.lang.String _strName, java.lang.String _strURL, boolean _bIsPopup)
          Helper method that creates an HTML Anchor.
 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.
protected  HTMLElement DisplayCustomObjects()
           
protected  HTMLElement DisplayDynamicLoads()
           
 HTMLScript DisplayJavascript()
          This method returns the HTMLScript that encompasses the Javascript on the page.
protected  HTMLElement GetHeaderHTML(java.lang.String _strTitle)
          Returns the header for the View.
protected  HTMLTableRow GetHTMLForColumnHeaders(java.lang.String[] _strColNames)
          Returns the HTML for the column titles.
protected  HTMLTableRow GetHTMLForRow(int _nRowIndex, java.lang.String _strName, java.lang.String _strURL, int _nNumItems)
           
 java.lang.String GetName()
          Return the name of the MVC object.
static int GetNumLoadedPEIs(IApplication _application)
          This helper method calculates how many PEIs are loaded in the Portal.
 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).
protected  void SetRowStyle(HTMLTableRow _myRow, int _nRowIndex)
          Helper method to set the style of a row.
 
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

m_asOwner

protected AActivitySpace m_asOwner

COL_WIDTHS

protected static final java.lang.String[] COL_WIDTHS

m_strCOL_NAMES_CUSTOM_OBJECTS

protected java.lang.String[] m_strCOL_NAMES_CUSTOM_OBJECTS

m_strCOL_NAMES_DYNAMIC_LOADS

protected java.lang.String[] m_strCOL_NAMES_DYNAMIC_LOADS
Constructor Detail

DynamicLoadsView

public DynamicLoadsView()
Method Detail

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

DisplayCustomObjects

protected HTMLElement DisplayCustomObjects()

DisplayDynamicLoads

protected HTMLElement DisplayDynamicLoads()

GetHeaderHTML

protected HTMLElement GetHeaderHTML(java.lang.String _strTitle)
Returns the header for the View.

Returns:
HTMLTable

GetHTMLForColumnHeaders

protected HTMLTableRow GetHTMLForColumnHeaders(java.lang.String[] _strColNames)
Returns the HTML for the column titles.

Returns:
HTMLTableRow

GetHTMLForRow

protected HTMLTableRow GetHTMLForRow(int _nRowIndex,
                                     java.lang.String _strName,
                                     java.lang.String _strURL,
                                     int _nNumItems)
Parameters:
_nRowIndex -
_strName -
_strURL - can be null
_nNumItems -
Returns:

SetRowStyle

protected void SetRowStyle(HTMLTableRow _myRow,
                           int _nRowIndex)
Helper method to set the style of a row.

Parameters:
_myRow -
_nRowIndex -

BuildAnchor

public HTMLAnchor BuildAnchor(java.lang.String _strName,
                              java.lang.String _strURL,
                              boolean _bIsPopup)
Helper method that creates an HTML Anchor.

Parameters:
_strName - The name of the server.
_strBaseURL - The url for the page.
Returns:
HTMLAnchor The HTML Anchor.

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

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(com.plumtree.uiinfrastructure.activityspace.IModelRO, com.plumtree.uiinfrastructure.activityspace.AActivitySpace)

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

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

GetNumLoadedPEIs

public static int GetNumLoadedPEIs(IApplication _application)
This helper method calculates how many PEIs are loaded in the Portal.

Parameters:
_application -
Returns:
int The number of PEIs currently loaded in the Portal.



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