Package reportgen.math.generic

Examples of reportgen.math.generic.ComplexExpressionDialog


        );
    }// </editor-fold>//GEN-END:initComponents

    private void addResultColBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addResultColBtnActionPerformed
        QueryResultColumn exp = new QueryResultColumn(core.getResultContext());
        ComplexExpressionDialog dlg = new ComplexExpressionDialog(parent, exp.getExpression());

        dlg.setVisible(true);
        if(dlg.isOK()) {
            ItemSelectorEditable<QueryResultColumn> cols = core.getColumns();
            cols.add(exp);

            resultColTable.setModel(new ColumnsTableModel(core.getColumns()));
View Full Code Here


            int index = resultColTable.getSelectionModel().getLeadSelectionIndex();
            if(index == -1) {
                return;
            }
            QueryResultColumn exp = fields.get(index);
            ComplexExpressionDialog dlg = new ComplexExpressionDialog(parent, exp.getExpression());

            dlg.setVisible(true);
            if(dlg.isOK()) {
                resultColTable.updateUI();
            }
        }catch (Exception ex) {
            Message.warning(this, ex);
        }
View Full Code Here

        }
}//GEN-LAST:event_delBtnActionPerformed

    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

    private void editBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editBtnActionPerformed
        int index = mainTable.getSelectedRow();
        if(index != -1) {
            MathExpressionGeneric generic = lst.get(index).getValue();
            ComplexExpressionDialog dlg = new ComplexExpressionDialog(parent, generic);
            dlg.setVisible(true);
            updateModel(lst.size()-1);
        }
    }//GEN-LAST:event_editBtnActionPerformed
View Full Code Here

TOP

Related Classes of reportgen.math.generic.ComplexExpressionDialog

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.