Package beans.report.selectors.baseSelectors

Examples of beans.report.selectors.baseSelectors.AbstractReportTable


        add(jSplitPane1, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
  ReportTableFactory        fctr = new ReportTableFactory();
  AbstractReportTable        table = fctr.createByID(cpNewTable.getCurrent().value);
  tables.addElement(table);
  lsTableList.setSelectedValue(table, true);
  stateChanged(new TypedChangeEvent<AbstractReportTable.TableChangeTypes>(table, AbstractReportTable.TableChangeTypes.lines));
}//GEN-LAST:event_btAddActionPerformed
View Full Code Here


private void lsTableListValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_lsTableListValueChanged
  setCurTable((AbstractReportTable) lsTableList.getSelectedValue());
}//GEN-LAST:event_lsTableListValueChanged

private void btRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btRemoveActionPerformed
  AbstractReportTable        delTable = (AbstractReportTable) lsTableList.getSelectedValue();
  tables.removeElement(delTable);
  stateChanged(new TypedChangeEvent<AbstractReportTable.TableChangeTypes>(delTable, AbstractReportTable.TableChangeTypes.lines));
}//GEN-LAST:event_btRemoveActionPerformed
View Full Code Here

  tables.removeElement(delTable);
  stateChanged(new TypedChangeEvent<AbstractReportTable.TableChangeTypes>(delTable, AbstractReportTable.TableChangeTypes.lines));
}//GEN-LAST:event_btRemoveActionPerformed

private void btMoveUpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btMoveUpActionPerformed
  AbstractReportTable        moveTable = (AbstractReportTable) lsTableList.getSelectedValue();
  int                idx = tables.indexOf(moveTable);
  if (idx > 0){
    tables.setElementAt(tables.getElementAt(idx - 1), idx);
    tables.setElementAt(moveTable, idx - 1);
    lsTableList.setSelectedValue(moveTable, true);
View Full Code Here

  }
  stateChanged(new TypedChangeEvent<AbstractReportTable.TableChangeTypes>(moveTable, AbstractReportTable.TableChangeTypes.lines));
}//GEN-LAST:event_btMoveUpActionPerformed

private void btMoveDownActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btMoveDownActionPerformed
  AbstractReportTable        moveTable = (AbstractReportTable) lsTableList.getSelectedValue();
  int                idx = tables.indexOf(moveTable);
  if (idx >= 0 && idx < tables.size() - 1){
    tables.setElementAt(tables.getElementAt(idx + 1), idx);
    tables.setElementAt(moveTable, idx + 1);
    lsTableList.setSelectedValue(moveTable, true);
View Full Code Here

    Element                    xml = entity.getDetails((RightChecker) this).getXml();
    ReportTableFactory              factory = new ReportTableFactory();
    ArrayList<AbstractReportTable<?>>      list = factory.parseXml(xml);
    DateRange                  range = new DateRange(year);
    for (int i = 0; i < list.size(); i++) {
      AbstractReportTable table = list.get(i);
      AbstractTablesSelector<?>        selector = createTableSelector(table, lpu, range, i);
      Collection<Map<String, Object>>      newData = selector.getDataList(year);
      mainData.addAll(newData);
    }
   
View Full Code Here

  }
 
  AbstractReportTable fromXml(Element el){
    XStream          xs = ReportTableFactory.initXStream();
    JDomReader        reader = new JDomReader(el);
    AbstractReportTable    target = (AbstractReportTable)xs.unmarshal(reader);
    target.afterLoad();
    return target;
  }
View Full Code Here

TOP

Related Classes of beans.report.selectors.baseSelectors.AbstractReportTable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.