1 24 25 package org.objectweb.cjdbc.console.views; 26 27 import org.objectweb.cjdbc.common.i18n.Translate; 28 29 36 public class SchedulerViewer extends InfoViewer 37 { 38 39 44 public SchedulerViewer(Object [][] data) 45 { 46 super(data); 47 } 48 49 protected Object [][] getDataTypes(Object [][] stats) 50 { 51 int iSize = stats.length; 52 Object [][] ret = new Object [iSize][]; 53 for (int i = 0; i < iSize; i++) 54 { 55 String [] aStat = (String []) stats[i]; 56 int jSize = aStat.length; 57 ret[i] = new Object [jSize]; 58 ret[i][0] = aStat[0]; 59 for (int j = 1; j < jSize; j++) 60 { 61 ret[i][j] = new Integer (aStat[j]); 62 } 63 } 64 return ret; 65 } 66 67 70 public String [] getColumnNames() 71 { 72 String [] columnNames = new String [7]; 73 columnNames[0] = Translate.get("console.infoviewer.scheduler.column.0"); 74 columnNames[1] = Translate.get("console.infoviewer.scheduler.column.1"); 75 columnNames[2] = Translate.get("console.infoviewer.scheduler.column.2"); 76 columnNames[3] = Translate.get("console.infoviewer.scheduler.column.3"); 77 columnNames[4] = Translate.get("console.infoviewer.scheduler.column.4"); 78 columnNames[5] = Translate.get("console.infoviewer.scheduler.column.5"); 79 columnNames[6] = Translate.get("console.infoviewer.scheduler.column.6"); 80 return columnNames; 81 } 82 83 86 public void setLabels() 87 { 88 frameTitle = Translate.get("console.infoviewer.scheduler.frame.title"); 89 infoViewerMenuBarString = Translate 90 .get("console.infoviewer.scheduler.menubar"); 91 actionToolTipText = Translate 92 .get("console.infoviewer.scheduler.action.tooltiptext"); 93 actionErrorMessage = Translate 94 .get("console.infoviewer.scheduler.action.error.message"); 95 actionSuccessMessage = Translate 96 .get("console.infoviewer.scheduler.action.success.message"); 97 tableHeaderToolTipText = Translate 98 .get("console.infoviewer.table.tooltip.text"); 99 } 100 101 104 public int[] getTraceableColumns() 105 { 106 return new int[]{2,3,4}; 107 } 108 109 } 110 | Popular Tags |