Examples of AggregateFunction


Examples of reportgen.math.agregate.agregate.AggregateFunction

            if(expression == null) {
                mainCombo.setSelectedItem(null);
                subCombo.setEnabled(false);
            } else {
                mainCombo.setSelectedItem(expression.getRef());
                AggregateFunction function = expression.getFunction();
                Class cls = null;
                try {
                    cls = expression.getCls();
                } catch (ReportException ex) {
                    Message.warning(this, ex);
                    function = AggregateFunction.ASIS;
                }
                fillFunctions(cls, function);
            }
        }

        mainCombo.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                ReportResultColumn selection = (ReportResultColumn) mainCombo.getSelectedItem();
                AggregateFunction function = (AggregateFunction) subCombo.getSelectedItem();
                if(selection != null) {
                    MathExpressionReportResultAgreg sample = new MathExpressionReportResultAgreg(
                            selection, AggregateFunction.ASIS, context);
                    Class cls = null;
                    try {
                        cls = sample.getCls();
                    } catch (ReportException ex) {
                        Message.warning(MathExpressionReportResultAgregPanel.this, ex);
                        function = null;
                    }
                    fillFunctions(cls, function);
                }
                subCombo.setEnabled(selection != null);
            }
        });

        subCombo.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                ReportResultColumn selection = (ReportResultColumn) mainCombo.getSelectedItem();
                AggregateFunction function = (AggregateFunction) subCombo.getSelectedItem();
                if(selection != null
                        && function != null) {
                    if(me == null) {
                        me = new MathExpressionReportResultAgreg(selection, function, context);
                    } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.