Ejemplo n.º 1
0
  /**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

    jLabel2 = new javax.swing.JLabel();
    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    workDirComboBox = new javax.swing.JComboBox();
    saveDirTextField = new javax.swing.JTextField();
    saveExpDestinationNameTF = new javax.swing.JTextField();
    setButton = new javax.swing.JButton();
    jLabel5 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    buttonPane = new javax.swing.JPanel();
    saveButton = new javax.swing.JButton();
    changeDirButton = new javax.swing.JButton();

    jLabel2.setText("Working Directory");
    jLabel2.setName("jLabel2"); // NOI18N

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("Save working directory"); // NOI18N
    setName("Form"); // NOI18N
    getContentPane().setLayout(new java.awt.BorderLayout(30, 10));

    jPanel1.setName("jPanel1"); // NOI18N
    jPanel1.setLayout(new java.awt.GridBagLayout());

    jLabel1.setText("Working Directory");
    jLabel1.setName("jLabel1"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(10, 10, 2, 2);
    jPanel1.add(jLabel1, gridBagConstraints);

    workDirComboBox.setToolTipText(
        "<html><p style=\"margin: 6px;\"><font size=\"4\">\n\nSelect which working directory you wish to save. <br>\nAll currently set working directories are listed. <br>\n\n\n</font></p><html>"); // NOI18N
    workDirComboBox.setName("workDirComboBox"); // NOI18N
    workDirComboBox.addItemListener(
        new java.awt.event.ItemListener() {
          public void itemStateChanged(java.awt.event.ItemEvent evt) {
            workDirComboBoxItemStateChanged(evt);
          }
        });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(10, 2, 2, 2);
    jPanel1.add(workDirComboBox, gridBagConstraints);

    saveDirTextField.setEditable(false);
    saveDirTextField.setToolTipText(
        "<html><p style=\"margin: 6px;\"><font size=\"4\">\n\nPath to the destination directory into which<br>\nworking directory will be copied. Use \"Set\" button<br>\nto set this path.\n\n</font></p><html>"); // NOI18N
    saveDirTextField.setBorder(
        new javax.swing.border.SoftBevelBorder(
            javax.swing.border.BevelBorder.RAISED,
            java.awt.Color.lightGray,
            java.awt.Color.darkGray,
            java.awt.Color.lightGray,
            java.awt.Color.darkGray));
    saveDirTextField.setName("saveDirTextField"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 3.0;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    jPanel1.add(saveDirTextField, gridBagConstraints);

    saveExpDestinationNameTF.setToolTipText(
        "<html><p style=\"margin: 6px;\"><font size=\"4\">\n\nName under whcih experiment should be saved.\n\n</font></p><html>"); // NOI18N
    saveExpDestinationNameTF.setBorder(
        new javax.swing.border.SoftBevelBorder(
            javax.swing.border.BevelBorder.RAISED,
            java.awt.Color.lightGray,
            java.awt.Color.darkGray,
            java.awt.Color.lightGray,
            java.awt.Color.darkGray));
    saveExpDestinationNameTF.setName("saveExpDestinationNameTF"); // NOI18N

    org.jdesktop.beansbinding.Binding binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ,
            workDirComboBox,
            org.jdesktop.beansbinding.ELProperty.create("${selectedItem}"),
            saveExpDestinationNameTF,
            org.jdesktop.beansbinding.BeanProperty.create("text"));
    binding.setSourceNullValue("savedBayesExp");
    binding.setSourceUnreadableValue("savedBayesExp");
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);
    jPanel1.add(saveExpDestinationNameTF, gridBagConstraints);

    setButton.setText("Set"); // NOI18N
    setButton.setToolTipText(
        "<html><p style=\"margin: 6px;\"><font size=\"4\">\n\nSelect where you want to save working directory  <br>\n\n</font></p><html>"); // NOI18N
    setButton.setName("setButton"); // NOI18N
    setButton.setPreferredSize(new java.awt.Dimension(50, 22));
    setButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            setButtonActionPerformed(evt);
          }
        });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 0.2;
    gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 2);
    jPanel1.add(setButton, gridBagConstraints);

    jLabel5.setText("Save to location");
    jLabel5.setName("jLabel5"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(2, 10, 2, 2);
    jPanel1.add(jLabel5, gridBagConstraints);

    jLabel3.setText("Save as");
    jLabel3.setName("jLabel3"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(2, 10, 2, 2);
    jPanel1.add(jLabel3, gridBagConstraints);

    getContentPane().add(jPanel1, java.awt.BorderLayout.PAGE_START);

    buttonPane.setName("buttonPane"); // NOI18N

    saveButton.setText("Save"); // NOI18N
    saveButton.setToolTipText(
        "<html><p style=\"margin: 6px;\"><font size=\"4\">\n\nStart saving selected working directory  <br>\n\n</font></p><html>"); // NOI18N
    saveButton.setName("saveButton"); // NOI18N
    saveButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            saveButtonActionPerformed(evt);
          }
        });

    changeDirButton.setText("Cancel"); // NOI18N
    changeDirButton.setToolTipText(
        "<html><p style=\"margin: 6px;\"><font size=\"4\">\n\nCancel saving procedures.<br>\n\n</font></p><html>"); // NOI18N
    changeDirButton.setName("changeDirButton"); // NOI18N
    changeDirButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            changeDirButtonActionPerformed(evt);
          }
        });

    org.jdesktop.layout.GroupLayout buttonPaneLayout =
        new org.jdesktop.layout.GroupLayout(buttonPane);
    buttonPane.setLayout(buttonPaneLayout);
    buttonPaneLayout.setHorizontalGroup(
        buttonPaneLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                buttonPaneLayout
                    .createSequentialGroup()
                    .addContainerGap(279, Short.MAX_VALUE)
                    .add(changeDirButton)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(saveButton)
                    .addContainerGap()));
    buttonPaneLayout.setVerticalGroup(
        buttonPaneLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                buttonPaneLayout
                    .createSequentialGroup()
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .add(
                        buttonPaneLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(saveButton)
                            .add(changeDirButton))));

    getContentPane().add(buttonPane, java.awt.BorderLayout.SOUTH);

    bindingGroup.bind();

    pack();
  } // </editor-fold>//GEN-END:initComponents
  /**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

    panInfo = new de.cismet.tools.gui.RoundedPanel();
    panHeadInfo = new de.cismet.tools.gui.SemiRoundedPanel();
    lblHeading = new javax.swing.JLabel();
    panInfoContent = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    jPanel9 = new javax.swing.JPanel();
    jPanel12 = new javax.swing.JPanel();
    jPanel6 = new javax.swing.JPanel();
    stationEditor1 = new de.cismet.cids.custom.objecteditors.wrrl_db_mv.StationEditor();
    lblStat09BisKey1 = new javax.swing.JLabel();
    lblRHWertBisKey1 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jPanel10 = new javax.swing.JPanel();
    jPanel5 = new javax.swing.JPanel();
    stationEditor2 = new de.cismet.cids.custom.objecteditors.wrrl_db_mv.StationEditor();
    lblStat09BisKey = new javax.swing.JLabel();
    lblRHWertBisKey = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jPanel11 = new javax.swing.JPanel();
    jSeparator1 = new javax.swing.JSeparator();

    setOpaque(false);
    setLayout(new java.awt.BorderLayout());

    panHeadInfo.setBackground(new java.awt.Color(51, 51, 51));
    panHeadInfo.setMinimumSize(new java.awt.Dimension(109, 24));
    panHeadInfo.setPreferredSize(new java.awt.Dimension(109, 24));
    panHeadInfo.setLayout(new java.awt.FlowLayout());

    lblHeading.setForeground(new java.awt.Color(255, 255, 255));
    lblHeading.setText(
        org.openide.util.NbBundle.getMessage(
            QuerbauwerkePanSix.class, "QuerbauwerkePanSix.lblHeading.text")); // NOI18N
    panHeadInfo.add(lblHeading);

    panInfo.add(panHeadInfo, java.awt.BorderLayout.NORTH);

    panInfoContent.setOpaque(false);
    panInfoContent.setLayout(new java.awt.GridBagLayout());

    jPanel2.setOpaque(false);

    final javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
        jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));
    jPanel2Layout.setVerticalGroup(
        jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weighty = 1.0;
    panInfoContent.add(jPanel2, gridBagConstraints);

    jPanel9.setOpaque(false);
    jPanel9.setLayout(new java.awt.GridBagLayout());

    jPanel12.setOpaque(false);

    final javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
    jPanel12.setLayout(jPanel12Layout);
    jPanel12Layout.setHorizontalGroup(
        jPanel12Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));
    jPanel12Layout.setVerticalGroup(
        jPanel12Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weighty = 1.0;
    jPanel9.add(jPanel12, gridBagConstraints);

    jPanel6.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            org.openide.util.NbBundle.getMessage(
                QuerbauwerkePanSix.class, "QuerbauwerkePanSix.jPanel6.border.title"))); // NOI18N
    jPanel6.setOpaque(false);
    jPanel6.setLayout(new java.awt.GridBagLayout());

    org.jdesktop.beansbinding.Binding binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.stat09}"),
            stationEditor1,
            org.jdesktop.beansbinding.BeanProperty.create("cidsBean"));
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel6.add(stationEditor1, gridBagConstraints);

    lblStat09BisKey1.setText(
        org.openide.util.NbBundle.getMessage(
            QuerbauwerkePanSix.class, "QuerbauwerkePanSix.lblStat09BisKey1.text")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel6.add(lblStat09BisKey1, gridBagConstraints);

    lblRHWertBisKey1.setText(
        org.openide.util.NbBundle.getMessage(
            QuerbauwerkePanSix.class, "QuerbauwerkePanSix.lblRHWertBisKey1.text")); // NOI18N
    lblRHWertBisKey1.setMinimumSize(new java.awt.Dimension(150, 17));
    lblRHWertBisKey1.setPreferredSize(new java.awt.Dimension(150, 17));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel6.add(lblRHWertBisKey1, gridBagConstraints);

    jLabel3.setMinimumSize(new java.awt.Dimension(300, 25));
    jLabel3.setPreferredSize(new java.awt.Dimension(300, 25));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.stat09.real_point}"),
            jLabel3,
            org.jdesktop.beansbinding.BeanProperty.create("text"));
    binding.setSourceNullValue("/");
    binding.setSourceUnreadableValue("<Error>");
    binding.setConverter(new CoordinateConverter());
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel6.add(jLabel3, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel9.add(jPanel6, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 5, 5);
    panInfoContent.add(jPanel9, gridBagConstraints);

    jPanel10.setOpaque(false);
    jPanel10.setLayout(new java.awt.GridBagLayout());

    jPanel5.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            org.openide.util.NbBundle.getMessage(
                QuerbauwerkePanSix.class, "QuerbauwerkePanSix.jPanel5.border.title"))); // NOI18N
    jPanel5.setOpaque(false);
    jPanel5.setLayout(new java.awt.GridBagLayout());

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.stat09_bis}"),
            stationEditor2,
            org.jdesktop.beansbinding.BeanProperty.create("cidsBean"));
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel5.add(stationEditor2, gridBagConstraints);

    lblStat09BisKey.setText(
        org.openide.util.NbBundle.getMessage(
            QuerbauwerkePanSix.class, "QuerbauwerkePanSix.lblStat09BisKey.text")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel5.add(lblStat09BisKey, gridBagConstraints);

    lblRHWertBisKey.setText(
        org.openide.util.NbBundle.getMessage(
            QuerbauwerkePanSix.class, "QuerbauwerkePanSix.lblRHWertBisKey.text")); // NOI18N
    lblRHWertBisKey.setMinimumSize(new java.awt.Dimension(150, 17));
    lblRHWertBisKey.setPreferredSize(new java.awt.Dimension(150, 17));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel5.add(lblRHWertBisKey, gridBagConstraints);

    jLabel2.setMinimumSize(new java.awt.Dimension(300, 25));
    jLabel2.setPreferredSize(new java.awt.Dimension(300, 25));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.stat09_bis.real_point}"),
            jLabel2,
            org.jdesktop.beansbinding.BeanProperty.create("text"));
    binding.setSourceNullValue("/");
    binding.setSourceUnreadableValue("<Error>");
    binding.setConverter(new CoordinateConverter());
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel5.add(jLabel2, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel10.add(jPanel5, gridBagConstraints);

    jPanel11.setOpaque(false);

    final javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
    jPanel11.setLayout(jPanel11Layout);
    jPanel11Layout.setHorizontalGroup(
        jPanel11Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));
    jPanel11Layout.setVerticalGroup(
        jPanel11Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weighty = 1.0;
    jPanel10.add(jPanel11, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0);
    panInfoContent.add(jPanel10, gridBagConstraints);

    jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.insets = new java.awt.Insets(15, 5, 15, 5);
    panInfoContent.add(jSeparator1, gridBagConstraints);

    panInfo.add(panInfoContent, java.awt.BorderLayout.CENTER);

    add(panInfo, java.awt.BorderLayout.CENTER);

    bindingGroup.bind();
  } // </editor-fold>//GEN-END:initComponents
Ejemplo n.º 3
0
  /**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

    panQuality = new de.cismet.tools.gui.RoundedPanel();
    panHeadQuality = new de.cismet.tools.gui.SemiRoundedPanel();
    lblHeading = new javax.swing.JLabel();
    panQualityContent = new javax.swing.JPanel();
    lblEcoStat = new javax.swing.JLabel();
    lblEcoPot = new javax.swing.JLabel();
    lblChemStat = new javax.swing.JLabel();
    lblFwstat_dat = new javax.swing.JLabel();
    lblConfidence = new javax.swing.JLabel();
    lblNon_comp = new javax.swing.JLabel();
    cbEcoStat = new de.cismet.cids.editors.DefaultBindableReferenceCombo();
    cbEcoPot = new de.cismet.cids.editors.DefaultBindableReferenceCombo();
    cbChemStat = new de.cismet.cids.editors.DefaultBindableReferenceCombo();
    cbNon_comp = new de.cismet.cids.editors.DefaultBindableReferenceCombo();
    lblSpace = new javax.swing.JLabel();
    jPanel1 = new javax.swing.JPanel();
    txtFwstat_dat = new javax.swing.JTextField();
    cbConfidence = new de.cismet.cids.editors.DefaultBindableReferenceCombo();

    setMinimumSize(new java.awt.Dimension(520, 290));
    setOpaque(false);
    setPreferredSize(new java.awt.Dimension(520, 290));
    setLayout(new java.awt.BorderLayout());

    panHeadQuality.setBackground(new java.awt.Color(51, 51, 51));
    panHeadQuality.setMinimumSize(new java.awt.Dimension(109, 24));
    panHeadQuality.setPreferredSize(new java.awt.Dimension(109, 24));
    panHeadQuality.setLayout(new java.awt.FlowLayout());

    lblHeading.setForeground(new java.awt.Color(255, 255, 255));
    lblHeading.setText("Überblicksinformationen Qualität");
    panHeadQuality.add(lblHeading);

    panQuality.add(panHeadQuality, java.awt.BorderLayout.NORTH);

    panQualityContent.setMinimumSize(new java.awt.Dimension(450, 260));
    panQualityContent.setOpaque(false);
    panQualityContent.setPreferredSize(new java.awt.Dimension(450, 260));
    panQualityContent.setLayout(new java.awt.GridBagLayout());

    lblEcoStat.setText("Ökologischer Zustand");
    lblEcoStat.setMaximumSize(new java.awt.Dimension(170, 17));
    lblEcoStat.setMinimumSize(new java.awt.Dimension(170, 17));
    lblEcoStat.setPreferredSize(new java.awt.Dimension(170, 17));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(15, 10, 5, 5);
    panQualityContent.add(lblEcoStat, gridBagConstraints);

    lblEcoPot.setText("Ökologisches Potential");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 5);
    panQualityContent.add(lblEcoPot, gridBagConstraints);

    lblChemStat.setText("Chemischer Zustand");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 5);
    panQualityContent.add(lblChemStat, gridBagConstraints);

    lblFwstat_dat.setText("Gültigkeitsdatum der QK");
    lblFwstat_dat.setToolTipText("Gültigkeitsdatum der Statusmeldung der QK");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 5);
    panQualityContent.add(lblFwstat_dat, gridBagConstraints);

    lblConfidence.setText("Verlässlichk. d. ök. Bew.");
    lblConfidence.setToolTipText("Verlässlichkeit der Ökologischen Bewertung");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 5);
    panQualityContent.add(lblConfidence, gridBagConstraints);

    lblNon_comp.setText("Einhalt. UQN Schadst.");
    lblNon_comp.setToolTipText("Einhaltung UQN Spezifische Schadstoffe");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 5);
    panQualityContent.add(lblNon_comp, gridBagConstraints);

    cbEcoStat.setMinimumSize(new java.awt.Dimension(300, 20));
    cbEcoStat.setPreferredSize(new java.awt.Dimension(300, 20));

    org.jdesktop.beansbinding.Binding binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.eco_stat}"),
            cbEcoStat,
            org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(15, 5, 5, 10);
    panQualityContent.add(cbEcoStat, gridBagConstraints);

    cbEcoPot.setMinimumSize(new java.awt.Dimension(300, 20));
    cbEcoPot.setPreferredSize(new java.awt.Dimension(300, 20));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.eco_pot}"),
            cbEcoPot,
            org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 10);
    panQualityContent.add(cbEcoPot, gridBagConstraints);

    cbChemStat.setMinimumSize(new java.awt.Dimension(300, 20));
    cbChemStat.setPreferredSize(new java.awt.Dimension(300, 20));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.chem_stat}"),
            cbChemStat,
            org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 10);
    panQualityContent.add(cbChemStat, gridBagConstraints);

    cbNon_comp.setMinimumSize(new java.awt.Dimension(300, 20));
    cbNon_comp.setPreferredSize(new java.awt.Dimension(300, 20));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.non_comp}"),
            cbNon_comp,
            org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
    bindingGroup.addBinding(binding);

    cbNon_comp.addActionListener(
        new java.awt.event.ActionListener() {

          @Override
          public void actionPerformed(final java.awt.event.ActionEvent evt) {
            cbNon_compActionPerformed(evt);
          }
        });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 10);
    panQualityContent.add(cbNon_comp, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.weighty = 1.0;
    panQualityContent.add(lblSpace, gridBagConstraints);

    jPanel1.setOpaque(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridheight = 8;
    panQualityContent.add(jPanel1, gridBagConstraints);

    txtFwstat_dat.setMinimumSize(new java.awt.Dimension(300, 20));
    txtFwstat_dat.setPreferredSize(new java.awt.Dimension(300, 20));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.fwstat_dat}"),
            txtFwstat_dat,
            org.jdesktop.beansbinding.BeanProperty.create("text"));
    binding.setSourceNullValue("");
    binding.setSourceUnreadableValue("<Error>");
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 10);
    panQualityContent.add(txtFwstat_dat, gridBagConstraints);

    cbConfidence.setMinimumSize(new java.awt.Dimension(300, 20));
    cbConfidence.setPreferredSize(new java.awt.Dimension(300, 20));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.confidence}"),
            cbConfidence,
            org.jdesktop.beansbinding.BeanProperty.create("selectedItem"));
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 10);
    panQualityContent.add(cbConfidence, gridBagConstraints);

    panQuality.add(panQualityContent, java.awt.BorderLayout.CENTER);

    add(panQuality, java.awt.BorderLayout.CENTER);

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