1 32 33 package it.businesslogic.ireport.gui; 34 35 import it.businesslogic.ireport.*; 36 40 public class ReportPanelToolTip extends javax.swing.JToolTip { 41 42 private JReportFrame reportFrame = null; 43 44 private Band band = null; 45 private ReportElement reportElement = null; 46 47 48 public ReportPanelToolTip(JReportFrame rf) { 49 this.setReportFrame(rf); 50 } 51 52 public String getTipText() 53 { 54 String toolTipText = ""; 55 if (band == null) 56 { 57 return null; 58 } 59 toolTipText = band.getName(); 60 return toolTipText; 61 } 62 63 public JReportFrame getReportFrame() { 64 return reportFrame; 65 } 66 67 public void setReportFrame(JReportFrame reportFrame) { 68 this.reportFrame = reportFrame; 69 } 70 71 public Band getBand() { 72 return band; 73 } 74 75 public void setBand(Band band) { 76 this.band = band; 77 } 78 79 public ReportElement getReportElement() { 80 return reportElement; 81 } 82 83 public void setReportElement(ReportElement reportElement) { 84 this.reportElement = reportElement; 85 } 86 87 } 88 | Popular Tags |