クラス org.objectweb.cjdbc.console.views.ClientsViewer

org.objectweb.cjdbc.console.views.ClientsViewerに対する継承グラフ

Inheritance graph
[凡例]
org.objectweb.cjdbc.console.views.ClientsViewerのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

説明

Graphical statistics viewer. Quick and dirty implementation.

作者:
Mathieu Peltier

Emmanuel Cecchet

バージョン:
1.0

ClientsViewer.java36 行で定義されています。

Public メソッド

 ClientsViewer (Object[][] data)
String[] getColumnNames ()
void setLabels ()

Protected メソッド

Object[][] getDataTypes (Object[][] stats)

スタティック変数

final int COLUMNS = 8


コンストラクタとデストラクタ

org.objectweb.cjdbc.console.views.ClientsViewer.ClientsViewer Object  data[][]  ) 
 

Create a Client viewer

引数:
data Stats to display in the table
ClientsViewer.java45 行で定義されています。
00046 { 00047 super(data); 00048 }


メソッド

String [] org.objectweb.cjdbc.console.views.ClientsViewer.getColumnNames  )  [virtual]
 

参照:
InfoViewer.getColumnNames()

org.objectweb.cjdbc.console.views.InfoViewerを実装しています.

ClientsViewer.java78 行で定義されています。

参照先 org.objectweb.cjdbc.console.views.ClientsViewer.COLUMNS.

00079 { 00080 String[] columnNames = new String[COLUMNS]; 00081 columnNames[0] = Translate.get("console.infoviewer.clients.column.0"); 00082 columnNames[1] = Translate.get("console.infoviewer.clients.column.1"); 00083 columnNames[2] = Translate.get("console.infoviewer.clients.column.2"); 00084 columnNames[3] = Translate.get("console.infoviewer.clients.column.3"); 00085 columnNames[4] = Translate.get("console.infoviewer.clients.column.4"); 00086 columnNames[5] = Translate.get("console.infoviewer.clients.column.5"); 00087 columnNames[6] = Translate.get("console.infoviewer.clients.column.6"); 00088 columnNames[7] = Translate.get("console.infoviewer.clients.column.7"); 00089 return columnNames; 00090 }

Object [][] org.objectweb.cjdbc.console.views.ClientsViewer.getDataTypes Object  stats[][]  )  [protected, virtual]
 

Subclasses should overide this method to get coherent sorting

引数:
stats to display
戻り値:
same sized objects array but with proper types default is strings only

org.objectweb.cjdbc.console.views.InfoViewerを実装しています.

ClientsViewer.java50 行で定義されています。

00051 { 00052 int iSize = stats.length; 00053 Object[][] ret = new Object[iSize][]; 00054 for (int i = 0; i < iSize; i++) 00055 { 00056 String[] aStat = (String[]) stats[i]; 00057 int jSize = aStat.length; 00058 ret[i] = new Object[jSize]; 00059 ret[i][0] = aStat[0]; 00060 for (int j = 1; j < jSize; j++) 00061 { 00062 if (j == 0 ||j == 1) 00063 ret[i][j] = new String(aStat[j]); 00064 else if (j == 2 ||j == 3) 00065 ret[i][j] = new Integer(aStat[j]); 00066 else if (j == 4) 00067 ret[i][j] = new Boolean(aStat[j]); 00068 else if (j == 5 || j==6 || j==7) 00069 ret[i][j] = new Long(aStat[j]); 00070 } 00071 } 00072 return ret; 00073 }

void org.objectweb.cjdbc.console.views.ClientsViewer.setLabels  )  [virtual]
 

参照:
InfoViewer.setLabels()

org.objectweb.cjdbc.console.views.InfoViewerを実装しています.

ClientsViewer.java95 行で定義されています。

00096 { 00097 frameTitle = Translate.get("console.infoviewer.clients.frame.title"); 00098 infoViewerMenuBarString = Translate.get("console.infoviewer.clients.menubar"); 00099 actionToolTipText = Translate 00100 .get("console.infoviewer.clients.action.tooltiptext"); 00101 actionErrorMessage = Translate 00102 .get("console.infoviewer.clients.action.error.message"); 00103 actionSuccessMessage = Translate 00104 .get("console.infoviewer.clients.action.success.message"); 00105 tableHeaderToolTipText = Translate 00106 .get("console.infoviewer.table.tooltip.text"); 00107 }


変数

final int org.objectweb.cjdbc.console.views.ClientsViewer.COLUMNS = 8 [static, package]
 

ClientsViewer.java38 行で定義されています。

参照元 org.objectweb.cjdbc.console.views.ClientsViewer.getColumnNames().


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:34 2004に生成されました。 doxygen 1.3.8