1 24 25 package org.objectweb.cjdbc.console.views; 26 27 import org.objectweb.cjdbc.common.i18n.Translate; 28 29 35 public class RecoveryLogViewer extends InfoViewer 36 { 37 38 43 public RecoveryLogViewer(Object [][] data) 44 { 45 super(data); 46 } 47 48 51 protected Object [][] getDataTypes(Object [][] stats) 52 { 53 int iSize = stats.length; 54 Object [][] ret = new Object [iSize][]; 55 for (int i = 0; i < iSize; i++) 56 { 57 String [] aStat = (String []) stats[i]; 58 int jSize = aStat.length; 59 ret[i] = new Object [jSize]; 60 ret[i][0] = aStat[0]; 61 for (int j = 0; j < jSize; j++) 62 { 63 if (j == 2 || j == 3) 64 ret[i][j] = new Long (aStat[j]); 65 else 66 ret[i][j] = new String (aStat[j]); 67 } 68 } 69 return ret; 70 } 71 72 75 public String [] getColumnNames() 76 { 77 String [] columnNames = new String [4]; 78 columnNames[0] = Translate.get("console.infoviewer.recoverylog.column.0"); 79 columnNames[1] = Translate.get("console.infoviewer.recoverylog.column.1"); 80 columnNames[2] = Translate.get("console.infoviewer.recoverylog.column.2"); 81 columnNames[3] = Translate.get("console.infoviewer.recoverylog.column.3"); 82 return columnNames; 83 } 84 85 88 public void setLabels() 89 { 90 frameTitle = Translate.get("console.infoviewer.recoverylog.frame.title"); 91 infoViewerMenuBarString = Translate 92 .get("console.infoviewer.recoverylog.menubar"); 93 actionToolTipText = Translate 94 .get("console.infoviewer.recoverylog.action.tooltiptext"); 95 actionErrorMessage = Translate 96 .get("console.infoviewer.recoverylog.action.error.message"); 97 actionSuccessMessage = Translate 98 .get("console.infoviewer.recoverylog.action.success.message"); 99 tableHeaderToolTipText = Translate 100 .get("console.infoviewer.table.tooltip.text"); 101 } 102 103 } 104 | Popular Tags |