Package reportgen.ren.report.extendedformat.range

Examples of reportgen.ren.report.extendedformat.range.OrderValue


    private RangeSorter(RANGE range) {
        RangeOrderList orderExpessions = range.getOrders();
        if(orderExpessions != null) {
            for(int i=0; i<orderExpessions.size(); i++) {
                OrderValue orderValue = orderExpessions.get(i);
                invertSorting.add(orderValue.isInvert());
            }
        }
    }
View Full Code Here


                if(rowModel != null) {
                    model.putAll(rowModel);
                }
               
                for(int i=0; i<orderExpessions.size(); i++) {
                    OrderValue orderValue = orderExpessions.get(i);
                    res.add(orderValue.getValue().getValue(model));
                }
            }
            orderValues.put(range, res);
        }
        return res;
View Full Code Here

    public int getRowCount() {
        return lst.size();
    }

    public Object getValueAt(int rowIndex, int columnIndex) {
        OrderValue order = lst.get(rowIndex);
        if(columnIndex == COLS.invert.ordinal()) {
            return order.isInvert();
        } else if(columnIndex == COLS.expression.ordinal()) {
            return order.getValue().toString();
        }
        return null;
    }
View Full Code Here

        return null;
    }

    @Override
    public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
        OrderValue order = lst.get(rowIndex);
        if(columnIndex == COLS.invert.ordinal()) {
            boolean invert = (Boolean)aValue;
            order.setInvert(invert);
        }
    }
View Full Code Here

    private void addBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addBtnActionPerformed
        MathExpressionGeneric generic = new MathExpressionGeneric(context);
        ComplexExpressionDialog dlg = new ComplexExpressionDialog(parent, generic);
        dlg.setVisible(true);
        if(dlg.isOK()) {
            lst.add(new OrderValue(generic));
            updateModel(lst.size()-1);
        }
}//GEN-LAST:event_addBtnActionPerformed
View Full Code Here

TOP

Related Classes of reportgen.ren.report.extendedformat.range.OrderValue

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.