com.plumtree.portalpages.admin.ptutilities.diagnostic.serverstatuslist
Class ServerStatusListView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.uiinfrastructure.expandablelist.ExpListView
          extended by com.plumtree.uiinfrastructure.expandablelist.multicolumnlist.MultiColumnListView
              extended by com.plumtree.portalpages.admin.ptutilities.diagnostic.serverstatuslist.ServerStatusListView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView
Direct Known Subclasses:
RefreshServerStatusListView

public class ServerStatusListView
extends MultiColumnListView

This view displays a generic server status list.

Author:
DonH

Field Summary
static int MAX_ERROR_CHARS
           
static int NUM_COLS
          The number of columns.
static int SERVER_ANCHOR
          The server url ID.
static int SERVER_DESCRIPTION
          The server description ID.
static int SERVER_ICON
          The server icon column ID.
static int SERVER_NAME
          The name column ID.
static int SERVER_STATUS
          The status column ID.
static int SERVER_STATUS_ERROR
          The server status error ID.
static int SERVER_STATUS_MSG
          The server description ID.
static int SERVER_TYPE
          The type column ID.
static int STATUS_GREEN
           
static int STATUS_RED
           
static int STATUS_YELLOW
           
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the activity space
 
Fields inherited from class com.plumtree.uiinfrastructure.expandablelist.multicolumnlist.MultiColumnListView
HTMLINPUT_ITEM
 
Fields inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListView
HTMLBUTTON_DELETE, HTMLCHECKBOX_CHECKALL, HTMLCHECKBOX_DELROW, HTMLHIDDEN_COLUMNID, HTMLHIDDEN_MOVEACTION, HTMLHIDDEN_ROWINDEX, HTMLID_EXPLIST, m_nLastVisibleRow
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorView
m_asOwner, m_model, SPACE
 
Constructor Summary
ServerStatusListView()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
protected  HTMLElement GetColumnHTML(int _nVisibleColumnIndex, int _nRowIndex, IPTGrowableSortedArrayWrapperRO _saData, SortedMetaDataListModel _model)
          This helper method takes the row meta data and outputs the proper HTML for the column entry.
protected  HTMLTableCell GetHTMLForDeleteAction()
          Returns the HTML for the delete cell in the action bar.
 HTMLElement GetHTMLForRow(IPTGrowableSortedArrayWrapperRO _saData, int _nRowIndex)
          Returns the HTML for the row _nRowIndex.
 java.lang.String GetName()
          Returns the Class name.
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.multicolumnlist.MultiColumnListView
GetHTMLForIcon, GetHTMLForSubHeader
 
Methods inherited from class com.plumtree.uiinfrastructure.expandablelist.ExpListView
AddHTMLToActionBar, CheckRowIsVisible, Display, DisplayJavascript, GetHiddenInputsForPagination, GetHTMLBelowActionBar, GetHTMLBelowMainTable, GetHTMLForActionBar, GetHTMLForAddAction, GetHTMLForAllRowsAdded, GetHTMLForBottomRow, GetHTMLForCheckBox, GetHTMLForEmptyCellInActionBar, GetHTMLForEmptyList, GetHTMLForMoveRowActions, GetHTMLForPaginationLinks, GetJavaScriptsForPagination, SetRowStyle
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorView
AddEmptyCellToRow, AddEmptyCellToRow, AddEmptyRowToTable, AddEmptyRowToTable, GetHeaderView, GetHeaderViewHelper, GetShortSpacerTable, GetSpacerTable, 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
Class name for the activity space

See Also:
Constant Field Values

SERVER_TYPE

public static final int SERVER_TYPE
The type column ID. This usually contains a String representatio of an int that is different for every server type so that you can sort by server type. The actual value is not used in this View.

See Also:
Constant Field Values

SERVER_NAME

public static final int SERVER_NAME
The name column ID.

See Also:
Constant Field Values

SERVER_STATUS

public static final int SERVER_STATUS
The status column ID.

See Also:
Constant Field Values

SERVER_ICON

public static final int SERVER_ICON
The server icon column ID. This is a PTImageType object, and is not sortable.

See Also:
Constant Field Values

SERVER_ANCHOR

public static final int SERVER_ANCHOR
The server url ID. This is an HTMLAnchor that includes the server name already. This may be null.

See Also:
Constant Field Values

SERVER_DESCRIPTION

public static final int SERVER_DESCRIPTION
The server description ID. This does not have it's own visible column. This may be null.

See Also:
Constant Field Values

SERVER_STATUS_MSG

public static final int SERVER_STATUS_MSG
The server description ID. This does not have it's own visible column. This may be null.

See Also:
Constant Field Values

SERVER_STATUS_ERROR

public static final int SERVER_STATUS_ERROR
The server status error ID. This does not have it's own visible column. This may be null.

See Also:
Constant Field Values

NUM_COLS

public static final int NUM_COLS
The number of columns.

See Also:
Constant Field Values

STATUS_GREEN

public static final int STATUS_GREEN
See Also:
Constant Field Values

STATUS_YELLOW

public static final int STATUS_YELLOW
See Also:
Constant Field Values

STATUS_RED

public static final int STATUS_RED
See Also:
Constant Field Values

MAX_ERROR_CHARS

public static final int MAX_ERROR_CHARS
See Also:
Constant Field Values
Constructor Detail

ServerStatusListView

public ServerStatusListView()
Method Detail

GetHTMLForRow

public HTMLElement GetHTMLForRow(IPTGrowableSortedArrayWrapperRO _saData,
                                 int _nRowIndex)
Returns the HTML for the row _nRowIndex. Each row contains just an icon and input text for each column.

Overrides:
GetHTMLForRow in class MultiColumnListView
Parameters:
_saData -
_nRowIndex -
Returns:
HTMLElement

GetColumnHTML

protected HTMLElement GetColumnHTML(int _nVisibleColumnIndex,
                                    int _nRowIndex,
                                    IPTGrowableSortedArrayWrapperRO _saData,
                                    SortedMetaDataListModel _model)
This helper method takes the row meta data and outputs the proper HTML for the column entry.

Parameters:
_nVisibleColumnIndex -
_nRowIndex -
_saData -
_model -
Returns:
The HTML for the column entry.

GetHTMLForDeleteAction

protected HTMLTableCell GetHTMLForDeleteAction()
Returns the HTML for the delete cell in the action bar.

Overrides:
GetHTMLForDeleteAction in class ExpListView
Returns:
HTMLTableCell

GetName

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

Specified by:
GetName in interface IMVCObject
Overrides:
GetName in class MultiColumnListView
Returns:
String

Create

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

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



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