Package simtools.ui

Examples of simtools.ui.ActionCheckBox


            box.add(Box.createHorizontalGlue());
            box.add(tfDynaStep = new JTextField());
            vbox.add(box);
           
            box = Box.createHorizontalBox();
            box.add(cbDynaEnd = new ActionCheckBox(resources.getString("stopValue"), false) {
                public void actionPerformed(ActionEvent e) {
                    tfDynaStop.setEnabled(cbDynaEnd.isSelected());
                    tfDynaStop.setEditable(cbDynaEnd.isSelected());
                }
            });
View Full Code Here


      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
     
      CyclicNumberAxis cna = null;
      if (plot.getDomainAxis() instanceof CyclicNumberAxis) cna = (CyclicNumberAxis)plot.getDomainAxis();
     
      panel.add(cbcyclex = new ActionCheckBox(resources.getString("CyclicAxis"), cna!=null) {
        public void actionPerformed(ActionEvent e) {
          CardLayout cl = (CardLayout)(xcards.getLayout());
          if (isSelected()) cl.show(xcards, "cyclic");
          else cl.show(xcards, "normal");
        }
      });
      panel.add(cbinvertx = new ActionCheckBox(resources.getString("Inverted"), plot.getDomainAxis().isInverted()) {
        public void actionPerformed(ActionEvent e) {
        }
      });
      section.add(panel);
     
      xcards = new JPanel();
      xcards.setLayout(new CardLayout());
     
      Box hbox = Box.createHorizontalBox();
      hbox.add(new JLabel(resources.getString("Period")));
      hbox.add(nfperiodx = new NumberField(cna==null ? 0 : cna.getPeriod()));
      hbox.add(Box.createHorizontalGlue());
      hbox.add(new JLabel(resources.getString("Offset")));
      hbox.add(nfoffsetx = new NumberField(cna==null ? 0 : cna.getOffset()));
      xcards.add(hbox,"cyclic");
     
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      double autorange = plot.getDomainAxis().getFixedAutoRange();
      panel.add(cbfixedautox = new ActionCheckBox(resources.getString("FixedRange"),autorange!=0) {
        public void actionPerformed(ActionEvent e) {
          nffixedautox.setEnabled(isSelected() && isEnabled());
        }
      });
      panel.add(nffixedautox = new NumberField(autorange,10));
      xcards.add(panel,"normal");

      section.add(xcards);
     
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbautox = new ActionCheckBox(resources.getString("Auto-update"), plot.getDomainAxis().isAutoRange()) {
        public void actionPerformed(ActionEvent e) {
          cbfixedautox.setEnabled(isSelected());
          cbfixedautox.apply();
          lpxmin.setEnabled(!isSelected());
          lpxmax.setEnabled(!isSelected());
          tfpxmin.setEnabled(!isSelected());
          tfpxmax.setEnabled(!isSelected());
        }
      });
      panel.add(lpxmin = new JLabel(resources.getString("minLabel")));
      panel.add(tfpxmin = new NumberField(10));
      tfpxmin.setValue(plot.getDomainAxis().getLowerBound());
      panel.add(lpxmax = new JLabel(resources.getString("maxLabel")));
      panel.add(tfpxmax = new NumberField(10));
      tfpxmax.setValue(plot.getDomainAxis().getUpperBound());
      cbautox.apply();
      section.add(panel);
     
      content.add(section);

     
      // Now handle Y axis
      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("YAxis")));

      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
     
      cna = null;
      if (plot.getRangeAxis() instanceof CyclicNumberAxis) cna = (CyclicNumberAxis)plot.getRangeAxis();
     
      panel.add(cbcycley = new ActionCheckBox(resources.getString("CyclicAxis"), cna!=null) {
        public void actionPerformed(ActionEvent e) {
          CardLayout cl = (CardLayout)(ycards.getLayout());
          if (isSelected()) cl.show(ycards, "cyclic");
          else cl.show(ycards, "normal");
        }
      });
      panel.add(cbinverty = new ActionCheckBox(resources.getString("Inverted"), plot.getRangeAxis().isInverted()) {
        public void actionPerformed(ActionEvent e) {
        }
      });
      section.add(panel);
     
      ycards = new JPanel();
      ycards.setLayout(new CardLayout());
     
      hbox = Box.createHorizontalBox();
      hbox.add(new JLabel(resources.getString("Period")));
      hbox.add(nfperiody = new NumberField(cna==null ? 0 : cna.getPeriod()));
      hbox.add(Box.createHorizontalGlue());
      hbox.add(new JLabel(resources.getString("Offset")));
      hbox.add(nfoffsety = new NumberField(cna==null ? 0 : cna.getOffset()));
      ycards.add(hbox,"cyclic");
     
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      autorange = plot.getRangeAxis().getFixedAutoRange();
      panel.add(cbfixedautoy = new ActionCheckBox(resources.getString("FixedRange"),autorange!=0) {
        public void actionPerformed(ActionEvent e) {
          nffixedautoy.setEnabled(isSelected() && isEnabled());
        }
      });
      panel.add(nffixedautoy = new NumberField(autorange,10));
      ycards.add(panel,"normal");

      section.add(ycards);
     
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbautoy = new ActionCheckBox(resources.getString("Auto-update"), plot.getRangeAxis().isAutoRange()) {
        public void actionPerformed(ActionEvent e) {
          cbfixedautoy.setEnabled(isSelected());
          cbfixedautoy.apply();
          lpymin.setEnabled(!isSelected());
          lpymax.setEnabled(!isSelected());
View Full Code Here

        addOnCurrentRow(dynamicImagePanel, 2, true, true, true);
    }

   
    public void setDynamicImagePanel() {
        cbDynamic = new ActionCheckBox(resources.getString("UseDynamicImages")) {
            public void actionPerformed(ActionEvent e) {
                cmLabel.setEnabled(isSelected());
                dsLabel.setEnabled(isSelected());
                cmlist.setEnabled(isSelected());
                cmNew.setEnabled(isSelected());
View Full Code Here

        addOnCurrentRow(switchPositionPanel, 2, true, true, true);
    }


    public void setSwitchPositionPanel() {
        lds = new ActionCheckBox(resources.getString("dataSourceUsed"), false) {
            public void actionPerformed(ActionEvent e) {
                ldynamicDsId.setEnabled(isSelected());
                dstree.setEnabled(isSelected());
                updateWarnings();
            }
View Full Code Here

      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("OverallRange")));

      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbautorange = new ActionCheckBox(resources.getString("Auto-update"), plot.isAutorange()) {
        public void actionPerformed(ActionEvent e) {
          lrangemin.setEnabled(!isSelected());
          lrangemax.setEnabled(!isSelected());
          tfrangemin.setEnabled(!isSelected());
          tfrangemax.setEnabled(!isSelected());
        }
      });
      panel.add(lrangemin = new JLabel(resources.getString("minLabel")));
      panel.add(tfrangemin = new NumberField(10));
      tfrangemin.setValue(plot.getRange().getLowerBound());
      panel.add(lrangemax = new JLabel(resources.getString("maxLabel")));
      panel.add(tfrangemax = new NumberField(10));
      tfrangemax.setValue(plot.getRange().getUpperBound());
      section.add(panel);
      cbautorange.apply();
      p1.add(section);

      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("'Normal'Range")));
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbnrange = new ActionCheckBox(resources.getString("Enable"), plot.getNormalRange()!=null) {
        public void actionPerformed(ActionEvent e) {
          lnrangemin.setEnabled(isSelected());
          lnrangemax.setEnabled(isSelected());
          tfnrangemin.setEnabled(isSelected());
          tfnrangemax.setEnabled(isSelected());
        }
      });
      panel.add(lnrangemin = new JLabel(resources.getString("minLabel")));
      panel.add(tfnrangemin = new NumberField(10));
      if (plot.getNormalRange()!=null) tfnrangemin.setValue(plot.getNormalRange().getLowerBound());
      panel.add(lnrangemax = new JLabel(resources.getString("maxLabel")));
      panel.add(tfnrangemax = new NumberField(10));
      if (plot.getNormalRange()!=null) tfnrangemax.setValue(plot.getNormalRange().getUpperBound());
      section.add(panel);
      cbnrange.apply();
      p1.add(section);

      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("'Warning'Range")));
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbwrange = new ActionCheckBox(resources.getString("Enable"), plot.getWarningRange()!=null) {
        public void actionPerformed(ActionEvent e) {
          lwrangemin.setEnabled(isSelected());
          lwrangemax.setEnabled(isSelected());
          tfwrangemin.setEnabled(isSelected());
          tfwrangemax.setEnabled(isSelected());
        }
      });
      panel.add(lwrangemin = new JLabel(resources.getString("minLabel")));
      panel.add(tfwrangemin = new NumberField(10));
      if (plot.getWarningRange()!=null) tfwrangemin.setValue(plot.getWarningRange().getLowerBound());
      panel.add(lwrangemax = new JLabel(resources.getString("maxLabel")));
      panel.add(tfwrangemax = new NumberField(10));
      if (plot.getWarningRange()!=null) tfwrangemax.setValue(plot.getWarningRange().getUpperBound());
      section.add(panel);
      cbwrange.apply();
      p1.add(section);

      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("'Critical'Range")));
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(cbcrange = new ActionCheckBox(resources.getString("Enable"), plot.getCriticalRange()!=null) {
        public void actionPerformed(ActionEvent e) {
          lcrangemin.setEnabled(isSelected());
          lcrangemax.setEnabled(isSelected());
          tfcrangemin.setEnabled(isSelected());
          tfcrangemax.setEnabled(isSelected());
View Full Code Here

        protected JComboBox cbxCharset;

        public ASCIIFileOptionComponent() {
            Box box = new Box(BoxLayout.Y_AXIS);
            Box hbox = Box.createHorizontalBox();
            hbox.add(cbsubsample = new ActionCheckBox(resources.getStringValue("asciiOptionSubSampling"), false) {
                public void actionPerformed(ActionEvent e) {
                    nfsubsample.setEnabled(isSelected());
                    lsubsample.setEnabled(isSelected());
                    if (!isSelected()) {
                        nfsubsample.setValue(1);
                    }
                }
            });
            hbox.add(Box.createHorizontalGlue());
            box.add(hbox);
            hbox = Box.createHorizontalBox();
            hbox.add(lsubsample = new JLabel(resources.getStringValue("asciiOptionSubSamplingText")));
            hbox.add(Box.createHorizontalGlue());
            hbox.add(nfsubsample = new NumberField(1, 5));
            box.add(hbox);
            cbsubsample.apply();
            hbox = Box.createHorizontalBox();
            hbox.add(cbdynamic = new ActionCheckBox(resources.getStringValue("asciiOptionDynamic"), false) {
                public void actionPerformed(ActionEvent e) {
                    nfdelay.setEnabled(isSelected());
                    ldynamic.setEnabled(isSelected());
                    nfbuffersize.setEnabled(isSelected());
                    ldynamicbuffersize.setEnabled(isSelected());
View Full Code Here

      // X axis section
      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("XAxis")));
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(pcbautox = new ActionCheckBox(resources.getString("Auto-update"), plot.getDomainAxis().isAutoRange()) {
        public void actionPerformed(ActionEvent e) {
          pcbfixedautox.setEnabled(isSelected());
          pcbfixedautox.apply();
          plpxmin.setEnabled(!isSelected());
          plpxmax.setEnabled(!isSelected());
          ptfpxmin.setEnabled(!isSelected());
          ptfpxmax.setEnabled(!isSelected());
        }
      });
      double autorange = plot.getDomainAxis().getFixedAutoRange();
      panel.add(pcbfixedautox = new ActionCheckBox(resources.getString("FixedRange"),autorange!=0) {
        public void actionPerformed(ActionEvent e) {
          pnffixedautox.setEnabled(isSelected() && isEnabled());
        }
      });
      panel.add(pnffixedautox = new NumberField(autorange,10));
      section.add(panel);
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(plpxmin = new JLabel(resources.getString("minLabel")));
      panel.add(ptfpxmin = new NumberField(10));
      ptfpxmin.setValue(plot.getDomainAxis().getLowerBound());
      panel.add(plpxmax = new JLabel(resources.getString("maxLabel")));
      panel.add(ptfpxmax = new NumberField(10));
      ptfpxmax.setValue(plot.getDomainAxis().getUpperBound());
      section.add(panel);
      pcbautox.apply();

      content.add(section);

//       X secondary axis section
      if (plot.getSecondaryDomainAxis(0) != null) {
        section = new Box(BoxLayout.Y_AXIS);
        section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("SecondaryXAxis")));
        panel = new JPanel();
        panel.setLayout(new FlowLayout(FlowLayout.LEFT));
        panel.add(scbautox = new ActionCheckBox(resources.getString("Auto-update"), plot.getSecondaryDomainAxis(0).isAutoRange()) {
          public void actionPerformed(ActionEvent e) {
            scbfixedautox.setEnabled(isSelected());
            scbfixedautox.apply();
            slpxmin.setEnabled(!isSelected());
            slpxmax.setEnabled(!isSelected());
            stfpxmin.setEnabled(!isSelected());
            stfpxmax.setEnabled(!isSelected());
          }
      });
      autorange = plot.getSecondaryDomainAxis(0).getFixedAutoRange();
      panel.add(scbfixedautox = new ActionCheckBox(resources.getString("FixedRange"),autorange!=0) {
        public void actionPerformed(ActionEvent e) {
          snffixedautox.setEnabled(isSelected() && isEnabled());
        }
      });
      panel.add(snffixedautox = new NumberField(autorange,10));
      section.add(panel);
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(slpxmin = new JLabel(resources.getString("minLabel")));
      panel.add(stfpxmin = new NumberField(10));
      stfpxmin.setValue(plot.getSecondaryDomainAxis(0).getLowerBound());
      panel.add(slpxmax = new JLabel(resources.getString("maxLabel")));
      panel.add(stfpxmax = new NumberField(10));
      stfpxmax.setValue(plot.getSecondaryDomainAxis(0).getUpperBound());
      section.add(panel);
      scbautox.apply();

      content.add(section);
      }
      // Now handle Y axis
      section = new Box(BoxLayout.Y_AXIS);
      section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("YAxis")));
      panel = new JPanel();
      panel.setLayout(new FlowLayout(FlowLayout.LEFT));
      panel.add(pcbautoy = new ActionCheckBox(resources.getString("Auto-update"), plot.getRangeAxis().isAutoRange()) {
        public void actionPerformed(ActionEvent e) {
          pcbfixedautoy.setEnabled(isSelected());
          pcbfixedautoy.apply();
          plpymin.setEnabled(!isSelected());
          plpymax.setEnabled(!isSelected());
          ptfpymin.setEnabled(!isSelected());
          ptfpymax.setEnabled(!isSelected());
        }
      });
      autorange = plot.getRangeAxis().getFixedAutoRange();
      panel.add(pcbfixedautoy = new ActionCheckBox(resources.getString("FixedRange"),autorange!=0) {
        public void actionPerformed(ActionEvent e) {
          pnffixedautoy.setEnabled(isSelected() && isEnabled());
        }
      });
      panel.add(pnffixedautoy = new NumberField(autorange,8));
      panel.add(plpymin = new JLabel(resources.getString("minLabel")));
      panel.add(ptfpymin = new NumberField(8));
      ptfpymin.setValue(plot.getRangeAxis().getLowerBound());
      panel.add(plpymax = new JLabel(resources.getString("maxLabel")));
      panel.add(ptfpymax = new NumberField(8));
      ptfpymax.setValue(plot.getRangeAxis().getUpperBound());
      section.add(panel);
      pcbautoy.apply();

      section.add(panel);

      Box box = Box.createHorizontalBox();

      box.add(new JLabel(resources.getString("Curves:")));
      box.add(pcbxcurves = new JComboBox());
      box.add(pcurvecolor = new JButton("    "));
      box.add(pcurvedelete = new JButton(resources.getString("Delete")));
      section.add(box);
      content.add(section);

      pcbxcurves.setEditable(true);
      noCurveColor = pcurvecolor.getBackground();
      pcurvecolor.setFocusPainted(false);
      SourceXYDataset dst = (SourceXYDataset)plot.getDataset();
      int n = dst.getSeriesCount();
      JSynopticXYItemRenderer renderer = (JSynopticXYItemRenderer)plot.getRenderer();
      for (int i=0; i<n; ++i) {
        DataSource ds = renderer.getDataSource(i);
        if (ds==null) {
          ds = dst.getYSource(i); // take the datasource associated with this curve by default
          DataSource linked = DataInfo.getLinkedSource(ds); // and follow link if necessary
          if (linked!=null) ds = linked;
        }
        pcbxcurves.addItem(new CbxEntry(i,dst.getSeriesName(i),(Color)renderer.getSeriesPaint(i),ds,renderer.getColorMapper(i)));
      }
      pcbxeditortf = (JTextField)pcbxcurves.getEditor().getEditorComponent();
      pupdateForEntry(pcbxcurves.getSelectedItem());
     
      pcbxcurves.addPopupMenuListener(new PopupMenuListener() {
        public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
          peditLocked = true;
        }
        public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
          peditLocked = false;
        }
        public void popupMenuCanceled(PopupMenuEvent e) {
          peditLocked = false;
        }
      });

      pcbxcurves.addItemListener(new ItemListener() {
        public void itemStateChanged(ItemEvent e) {
          if (e.getStateChange()==ItemEvent.DESELECTED) pactiveEntry = null;
          else pupdateForEntry(e.getItem());
        }
      });

      pcbxeditortf.getDocument().addDocumentListener(new DocumentListener() {
        public void insertUpdate(DocumentEvent e) {
          updateName();
        }
        public void removeUpdate(DocumentEvent e) {
          updateName();
        }
        public void changedUpdate(DocumentEvent e) {
          updateName();
        }
        public void updateName() {
          if ((peditLocked) || (pactiveEntry == null)) return;
          pactiveEntry.name = pcbxeditortf.getText();
        }
      });

      pcurvecolor.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          if (pactiveEntry==null) return;
         
           DynamicColorChooser dialog = new DynamicColorChooser(
                              null, resources.getString("ChooseAColor"),null ,pactiveEntry.color,pactiveEntry.source,pactiveEntry.mapper);


                      dialog.pack();
                      dialog.setVisible(true);

                      if (dialog.isOk()){
                          pactiveEntry.color = dialog.getColor();
                          pactiveEntry.source = dialog.getSource();
                          pactiveEntry.mapper = dialog.getMapper();
                          pupdateForEntry(pactiveEntry);
                      }
        }
      });

      pcurvedelete.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          if (pactiveEntry==null) return;
          pcbxcurves.removeItem(pactiveEntry);
        }
      });

      // Now handle Secondary Y axis
      if (plot.getSecondaryRangeAxis(0) != null) {
        section = new Box(BoxLayout.Y_AXIS);
        section.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),resources.getString("SecondaryYAxis")));
        panel = new JPanel();
        panel.setLayout(new FlowLayout(FlowLayout.LEFT));
        panel.add(scbautoy = new ActionCheckBox(resources.getString("Auto-update"), plot.getSecondaryRangeAxis(0).isAutoRange()) {
          public void actionPerformed(ActionEvent e) {
            scbfixedautoy.setEnabled(isSelected());
            scbfixedautoy.apply();
            slpymin.setEnabled(!isSelected());
            slpymax.setEnabled(!isSelected());
            stfpymin.setEnabled(!isSelected());
            stfpymax.setEnabled(!isSelected());
          }
        });
        autorange = plot.getSecondaryRangeAxis(0).getFixedAutoRange();
        panel.add(scbfixedautoy = new ActionCheckBox(resources.getString("FixedRange"),autorange!=0) {
          public void actionPerformed(ActionEvent e) {
            snffixedautoy.setEnabled(isSelected() && isEnabled());
          }
        });
        panel.add(snffixedautoy = new NumberField(autorange,8));
View Full Code Here

                    ((CardLayout)cardPane.getLayout()).show(cardPane,rbDynamic.isSelected()?"d":"s");                   
                }
            });
           
            box = Box.createHorizontalBox();
            box.add(cbSeed = new ActionCheckBox(resources.getString("seed"),false) {
                public void actionPerformed(ActionEvent e) {
                    tfSeed.setEditable(cbSeed.isSelected());
                    tfSeed.setEnabled(cbSeed.isSelected());
                }
            });
View Full Code Here

     *
     * @return the text size panel
     */
    protected void setTextSizePanel() {
        cbMargin = new JCheckBox(resources.getString("EnableMargin"), true);
        cbFontLocked = new ActionCheckBox(resources.getString("FixedFontSize"), true) {
            public void actionPerformed(ActionEvent e) {
                if (isSelected()) {
                    cbFrameLocked.setSelected(false);
                }
                lcharNumber.setEnabled(cbFrameLocked.isSelected());
                nfCharNumber.setEnabled(cbFrameLocked.isSelected());
            }
        };
        lcharNumber = new JLabel(resources.getString("CharNumber"));
        nfCharNumber = new NumberField(0, 5);
        cbFrameLocked = new ActionCheckBox(resources.getString("FixedFrame"), false) {
            public void actionPerformed(ActionEvent e) {
                if (isSelected()) {
                    cbFontLocked.setSelected(false);
                }
                lcharNumber.setEnabled(cbFrameLocked.isSelected());
View Full Code Here

     * class to modify the arrangement
     */
    protected void setDynamicDataSource() {
        dstree = FilteredSourceTree.getFromPool("PropertiesPanel0");
       
        cbDataSource = new ActionCheckBox(resources.getString("UseADataSource"), source != null) {
            public void actionPerformed(ActionEvent e) {
                displayDynamicCustomisation(isSelected());
                updateWarnings();
            }
        };
        ldynamicDsId = new JTextField();
        ldynamicDsId.setPreferredSize(new Dimension(200, 20));
        ldynamicDsId.setEditable(true);
        ldynamicDsId.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                String dsId = ldynamicDsId.getText();
                DataSource ds = null;
                try {
                    ds = DataSourcePool.global.getDataSourceWithId(dsId);
                } catch (DuplicateIdException e1) {
                }

                if (ds == null){
                    displayWarning(dsId + resources.getString("isNoAnExistingDataSource"));
                    ldynamicDsId.setText( source==null? "" : DataInfo.getId(source));
                } else {
                    // Set source with entered id
                    dstree.setSelectedValue(ds);

                    if (canSetDataSource(ds)){
                        source = ds;
                    }
                    updateWarnings()
                }
            }
        });
       
        cbDisplayName = new JCheckBox(resources.getString("Name"), false);
        cbDisplayValue = new ActionCheckBox(resources.getString("Value"), true) {
            public void actionPerformed(ActionEvent e) {
                cbxformat.setEnabled(isSelected());
                lformat.setEnabled(isSelected());
                lPrintfFormat.setEnabled(isSelected());
                tfPrintfFormat.setEnabled(isSelected());
View Full Code Here

TOP

Related Classes of simtools.ui.ActionCheckBox

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.