org.objectweb.cjdbc.console.views
Class SchedulerViewer

java.lang.Object
  extended byorg.objectweb.cjdbc.console.views.InfoViewer
      extended byorg.objectweb.cjdbc.console.views.SchedulerViewer

public class SchedulerViewer
extends InfoViewer

Graphical statistics viewer. Quick and dirty implementation.

Version:
1.0
Author:
Mathieu Peltier, Emmanuel Cecchet

Nested Class Summary
 
Nested classes inherited from class org.objectweb.cjdbc.console.views.InfoViewer
InfoViewer.ExportAction, InfoViewer.InfoTableModel, InfoViewer.InfoViewerMenuBar
 
Field Summary
 
Fields inherited from class org.objectweb.cjdbc.console.views.InfoViewer
actionErrorMessage, actionSuccessMessage, actionToolTipText, frameTitle, infoViewerMenuBarString, tableHeaderToolTipText
 
Constructor Summary
SchedulerViewer(java.lang.Object[][] data)
          Create a CacheStatsViewer
 
Method Summary
 java.lang.String[] getColumnNames()
          Get column names
protected  java.lang.Object[][] getDataTypes(java.lang.Object[][] stats)
          Subclasses should overide this method to get coherent sorting
 int[] getTraceableColumns()
          Return the list of traceable data for this viewer
 void setLabels()
          Set the labels for the frame
 
Methods inherited from class org.objectweb.cjdbc.console.views.InfoViewer
display, displayText, displayText, getData, getFrameTitle, updateData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerViewer

public SchedulerViewer(java.lang.Object[][] data)
Create a CacheStatsViewer

Parameters:
data - Stats to display in the table
Method Detail

getDataTypes

protected java.lang.Object[][] getDataTypes(java.lang.Object[][] stats)
Description copied from class: InfoViewer
Subclasses should overide this method to get coherent sorting

Specified by:
getDataTypes in class InfoViewer
Parameters:
stats - to display
Returns:
same sized objects array but with proper types default is strings only

getColumnNames

public java.lang.String[] getColumnNames()
Description copied from class: InfoViewer
Get column names

Specified by:
getColumnNames in class InfoViewer
Returns:
a array of strings
See Also:
InfoViewer.getColumnNames()

setLabels

public void setLabels()
Description copied from class: InfoViewer
Set the labels for the frame

Specified by:
setLabels in class InfoViewer
See Also:
InfoViewer.setLabels()

getTraceableColumns

public int[] getTraceableColumns()
Description copied from class: InfoViewer
Return the list of traceable data for this viewer

Overrides:
getTraceableColumns in class InfoViewer
Returns:
an array of names
See Also:
InfoViewer.getTraceableColumns()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.