Package reportgen.gui.genepanel.inputpanel.dlg

Examples of reportgen.gui.genepanel.inputpanel.dlg.InputValueDialog


    private void editInputBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editInputBtnActionPerformed
        int row = inputTable.getSelectedRow();
        if(row != -1) {
            InputList inputs =  query.getInputs();

            InputValueDialog dlg = new InputValueDialog(parent, context, inputs.get(row), inputs);
            dlg.setVisible(true);
            //fixme а если в диалоге изменится объект, а диалог закроеется по кэнсл
            if(dlg.isOK()) {
                inputTable.setModel(new InputValuesTableModel(inputs));
                inputTable.getSelectionModel().setSelectionInterval(row, row);
            }
        }
}//GEN-LAST:event_editInputBtnActionPerformed
View Full Code Here


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

    private void addInputBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addInputBtnActionPerformed
        InputValueDialog dlg = new InputValueDialog(parent, context, null, query.getInputs());
        dlg.setVisible(true);
        if(dlg.isOK()) {
            query.getInputs().add(dlg.getValue());
            ItemSelectorEditable<QueryInputValue> input = query.getInputs();
            inputTable.setModel(new InputValuesTableModel(input));
            inputTable.getSelectionModel().setSelectionInterval(input.size() - 1, input.size() - 1);
        }
}//GEN-LAST:event_addInputBtnActionPerformed
View Full Code Here

TOP

Related Classes of reportgen.gui.genepanel.inputpanel.dlg.InputValueDialog

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.