Package reportgen.ren.report.extendedformat.range

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


    public RangeSorter() {
    }

    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


    List<Object> getOrderValues(RANGE range) throws ReportException {
        List<Object> res = orderValues.get(range);
        if(res == null) {
            res = new LinkedList<Object>();

            RangeOrderList orderExpessions = range.getOrders();
            if(orderExpessions == null
                    || orderExpessions.size() == 0) {
                res.add(range.getOriginalPosition());
            } else {
                //build model
                Map model = new HashMap();
                Map attachModel = range.getAttachedModel();
                if(attachModel != null) {
                    model.putAll(attachModel);
                }
                Map rowModel = range.getModel();
                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);
        }
View Full Code Here

        });

        criteriaPanelInner.add(range.getCriteria().getPanel(this));
        titlePanel.add(range.getTitleExpression().getPanel(this), BorderLayout.CENTER);

        RangeOrderList orders = range.getOrders();
        if(orders != null) {
            mainTab.add("Сортировка", new OrderRangePanel(this, orders, range.getLocalContext()));
        }

        mainTab.add("Фильтр(включая)",
View Full Code Here

    public ColRowRangeCrossReport(String title, RangeContext context) {
        super(title, context);
        Context localContext = getLocalContext();
        crossCriteria = new MathExpressionConditions(localContext);
        titleExpression = new MathExpressionGeneric(localContext);
        orderList = new RangeOrderList();
    }
View Full Code Here

        } else {
            crossCriteria = thisCrossCriteria;
        }

        titleExpression = loadTitleExpression(root, localContext);
        orderList = new RangeOrderList(root, localContext);
    }
View Full Code Here

TOP

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

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.