Public Member Functions | |
DatabasesViewer (Object[][] data) | |
String[] | getColumnNames () |
int[] | getTraceableColumns () |
void | setLabels () |
Protected Member Functions | |
Object[][] | getDataTypes (Object[][] stats) |
Static Package Attributes | |
final int | COLUMNS = 4 |
Definition at line 35 of file DatabasesViewer.java.
|
Create a BackendViewer
Definition at line 44 of file DatabasesViewer.java. 00045 { 00046 super(data); 00047 }
|
|
Implements org.objectweb.cjdbc.console.views.InfoViewer. Definition at line 73 of file DatabasesViewer.java. 00074 { 00075 String[] columnNames = new String[COLUMNS]; 00076 columnNames[0] = Translate.get("console.infoviewer.database.column.0"); 00077 columnNames[1] = Translate.get("console.infoviewer.database.column.1"); 00078 columnNames[2] = Translate.get("console.infoviewer.database.column.2"); 00079 columnNames[3] = Translate.get("console.infoviewer.database.column.3"); 00080 return columnNames; 00081 }
|
|
Subclasses should overide this method to get coherent sorting
Implements org.objectweb.cjdbc.console.views.InfoViewer. Definition at line 49 of file DatabasesViewer.java. 00050 { 00051 int iSize = stats.length; 00052 Object[][] ret = new Object[iSize][]; 00053 for (int i = 0; i < iSize; i++) 00054 { 00055 String[] aStat = (String[]) stats[i]; 00056 int jSize = aStat.length; 00057 ret[i] = new Object[jSize]; 00058 ret[i][0] = aStat[0]; 00059 for (int j = 0; j < jSize; j++) 00060 { 00061 if (j == 0) 00062 ret[i][j] = new String(aStat[j]); 00063 else 00064 ret[i][j] = new Integer(aStat[j]); 00065 } 00066 } 00067 return ret; 00068 }
|
|
Reimplemented from org.objectweb.cjdbc.console.views.InfoViewer. Definition at line 86 of file DatabasesViewer.java. 00087 { 00088 return new int[] {1,2,3}; 00089 }
|
|
Implements org.objectweb.cjdbc.console.views.InfoViewer. Definition at line 94 of file DatabasesViewer.java. 00095 { 00096 frameTitle = Translate.get("console.infoviewer.database.frame.title"); 00097 infoViewerMenuBarString = Translate 00098 .get("console.infoviewer.database.menubar"); 00099 actionToolTipText = Translate 00100 .get("console.infoviewer.database.action.tooltiptext"); 00101 actionErrorMessage = Translate 00102 .get("console.infoviewer.database.action.error.message"); 00103 actionSuccessMessage = Translate 00104 .get("console.infoviewer.database.action.success.message"); 00105 tableHeaderToolTipText = Translate 00106 .get("console.infoviewer.table.tooltip.text"); 00107 }
|