/** Creates a new instance of ReportElementSheetPanel */ public ReportObjectSheetPanel() { super(); this.setBackground(Color.BLUE); initSheetProperties(); // We have to register for element changes... MainFrame mf = MainFrame.getMainInstance(); mf.addReportListener(this); mf.addReportFrameActivatedListener(this); I18n.addOnLanguageChangedListener(this); }
public void reportFrameActivated(ReportFrameActivatedEvent evt) { if (MainFrame.getMainInstance().getActiveReportFrame() == this.getJrf()) return; updateSelection(MainFrame.getMainInstance().getActiveReportFrame()); }
public void updateSelection() { JReportFrame newJrf = MainFrame.getMainInstance().getActiveReportFrame(); updateSelection(newJrf); }