Examples of EditMathExpressionDlg


Examples of reportgen.math.generic.choose.EditMathExpressionDlg

    }//GEN-LAST:event_canBeOmittedCheckActionPerformed

    private void editBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editBtnActionPerformed
        MathExpressionConstAbstract  val = (MathExpressionConstAbstract) mainList.getSelectedValue();
        if(val != null) {
            EditMathExpressionDlg dlg = new EditMathExpressionDlg(this, val, new ContextFilter() {
                @Override
                public Context getChildContext(ContextGroup group) {
                    return context;
                }
            });
            dlg.setVisible(true);
            if(dlg.isOK()) {
                try {
                    value.insertBefore(val, (MathExpressionConstAbstract) dlg.getValue());
                    value.remove(val);
                } catch (ReportException ex) {
                    Message.error(this, "При редактировании произошла ошибка", ex);
                }
                MathExpressionConstAbstract[] vals = value.getValues();
View Full Code Here

Examples of reportgen.math.generic.choose.EditMathExpressionDlg

        MathExpression selection = getSelection(path);
        MathExpressionComplex parExp = getParent(path);
        if(selection == null) {
            return;
        }
        EditMathExpressionDlg dlg = new EditMathExpressionDlg(parent, selection, parExp);
        dlg.setVisible(true);
        if(dlg.isOK())  {
            MathExpression value = dlg.getValue();
            if(value != selection) {
                try {
                    parExp.getChildren().insertBefore(selection, value);
                    parExp.getChildren().remove(selection);
                } catch (ReportException ex) {
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.