com.ebay.carad.os.vitalsigns
Class DashboardReportContainer

java.lang.Object
  extended by com.ebay.carad.os.vitalsigns.DashboardReportContainer
All Implemented Interfaces:
IDashboardReportContainer, java.lang.Comparable

public class DashboardReportContainer
extends java.lang.Object
implements java.lang.Comparable, IDashboardReportContainer

Basic implementation of IDashboardReportContainer for grouping arbitrary reports.

Version:
$Id$
Author:
Jeremy Thomerson

Field Summary
private  java.lang.String mGroupName
           
private  java.util.List mReports
           
private  int mSortOrder
           
 
Constructor Summary
DashboardReportContainer()
           
 
Method Summary
 void addReport(IDashboardReport report)
           
 int compareTo(java.lang.Object obj)
           
 java.lang.String getGroupName()
           
 java.util.List getReports()
          Returns an iterator over zero or more IDashboardReport objects.
 int getSortOrder()
          Defines the sort order of this container's report(s).
 void setGroupName(java.lang.String groupName)
           
 void setReports(java.util.List reports)
           
 void setSortOrder(int sortOrder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mReports

private java.util.List mReports

mSortOrder

private int mSortOrder

mGroupName

private java.lang.String mGroupName
Constructor Detail

DashboardReportContainer

public DashboardReportContainer()
Method Detail

getReports

public java.util.List getReports()
Description copied from interface: IDashboardReportContainer
Returns an iterator over zero or more IDashboardReport objects.

Specified by:
getReports in interface IDashboardReportContainer
Returns:
a list of IDashboardReport objects.

getSortOrder

public int getSortOrder()
Description copied from interface: IDashboardReportContainer
Defines the sort order of this container's report(s).

Specified by:
getSortOrder in interface IDashboardReportContainer
Returns:
a sort order for ordering reports

getGroupName

public java.lang.String getGroupName()
Specified by:
getGroupName in interface IDashboardReportContainer
Returns:
the name of the group that these reports should appear in, or null if they should appear individually

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

setGroupName

public void setGroupName(java.lang.String groupName)
Parameters:
groupName - The groupName to set.

setReports

public void setReports(java.util.List reports)
Parameters:
reports - The reports to set.

addReport

public void addReport(IDashboardReport report)

setSortOrder

public void setSortOrder(int sortOrder)
Parameters:
sortOrder - The sortOrder to set.


Copyright © 2004-2009. All Rights Reserved.