コード例 #1
0
 /** 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);
 }
コード例 #2
0
  public void reportFrameActivated(ReportFrameActivatedEvent evt) {

    if (MainFrame.getMainInstance().getActiveReportFrame() == this.getJrf()) return;
    updateSelection(MainFrame.getMainInstance().getActiveReportFrame());
  }
コード例 #3
0
 public void updateSelection() {
   JReportFrame newJrf = MainFrame.getMainInstance().getActiveReportFrame();
   updateSelection(newJrf);
 }