Examples of NumberField


Examples of org.graylog2.restclient.lib.plugin.configuration.NumberField

                switch (fieldType) {
                    case "text":
                        result.add(new TextField(entry));
                        continue;
                    case "number":
                        result.add(new NumberField(entry));
                        continue;
                    case "boolean":
                        booleanFields.add(new BooleanField(entry));
                        continue;
                    case "dropdown":
View Full Code Here

Examples of org.graylog2.restclient.lib.plugin.configuration.NumberField

                switch(fieldType) {
                    case "text":
                        fields.add(new TextField(c));
                        continue;
                    case "number":
                        fields.add(new NumberField(c));
                        continue;
                    case "boolean":
                        tmpBools.add(new BooleanField(c));
                        continue;
                    case "dropdown":
View Full Code Here

Examples of org.jnode.apps.jpartition.consoleview.components.NumberField

        }
    }

    private Partition createPartition(Partition freePart) throws Exception {
        long size = freePart.getSize();
        NumberField sizeField = new NumberField(context);
        size = sizeField.show("Size of the new partition ", size, 1, size);

        return UserFacade.getInstance().createPartition(freePart.getStart(), size);
    }
View Full Code Here

Examples of simtools.ui.NumberField

    // Offst (in seconds
    JPanel offsetPanel = new JPanel (new BorderLayout());
    JLabel offset= new JLabel(resources.getString("offset"));
    offset.setFont(new Font("Dialog", Font.PLAIN,12));
    offsetPanel.add(offset, BorderLayout.WEST);
    offsetPanel.add(secondsTimeOffset = new NumberField(0.0, 10), BorderLayout.CENTER);   
    add(offsetPanel, gbc);
    gbc.gridy++;
    //

    //  An optional date for sync -> async or async -> sync format conversions
View Full Code Here

Examples of simtools.ui.NumberField

    public PropertiesPanel() {
      setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
      Box box = Box.createHorizontalBox();
      box.add(new JLabel(resources.getString("Period")));
      box.add(Box.createHorizontalGlue());
      box.add(nfPeriod = new NumberField(getPeriod(), 5));
      add(box);
      box = Box.createHorizontalBox();
      box.add(cbAutoStop = new JCheckBox(resources.getString("AutoStopWhenStepFails"),isAutoStop()));
      box.add(Box.createHorizontalGlue());
      add(box);
View Full Code Here

Examples of simtools.ui.NumberField

      box.add(pcurvedelete = new JButton(resources.getString("Delete")));
      section.add(box);
     
      box = Box.createHorizontalBox();
      box.add(new JLabel(resources.getString("ExplodedRatio(>=1)")));
      box.add(tfRatio = new NumberField(1.0));
     
      // So long as this does not work for 3D pies, do not show it
      if (!(plot instanceof Pie3DPlot)) section.add(box);
     
      content.add(section);
View Full Code Here

Examples of simtools.ui.NumberField

    public PropertiesPanel() {
      setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
      Box box = Box.createHorizontalBox();
      box.add(new JLabel(resources.getString("Period")));
      box.add(Box.createHorizontalGlue());
      box.add(nfPeriod = new NumberField(getPeriod(), 5));
      add(box);
      box = Box.createHorizontalBox();
      box.add(cbAutoStop = new JCheckBox(resources.getString("AutoStopWhenStepFails"),isAutoStop()));
      box.add(Box.createHorizontalGlue());
      add(box);
View Full Code Here

Examples of simtools.ui.NumberField

      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());
          tfpymin.setEnabled(!isSelected());
          tfpymax.setEnabled(!isSelected());
        }
      });
      panel.add(lpymin = new JLabel(resources.getString("minLabel")));
      panel.add(tfpymin = new NumberField(10));
      tfpymin.setValue(plot.getRangeAxis().getLowerBound());
      panel.add(lpymax = new JLabel(resources.getString("maxLabel")));
      panel.add(tfpymax = new NumberField(10));
      tfpymax.setValue(plot.getRangeAxis().getUpperBound());
      cbautoy.apply();
      section.add(panel);

      Box box = Box.createHorizontalBox();
View Full Code Here

Examples of simtools.ui.NumberField

      JPanel gridPanel = new JPanel(new BorderLayout());
      gridPanel.setBorder(BorderFactory.createTitledBorder(resources.getString("GridArrayParameters")));
      JPanel colpane = new JPanel(new GridLayout(2,2));
      colpane.add(new JLabel(resources.getString("NumberOfColumns")));
      colpane.add(nfNumCellX = new NumberField(cells[0].length,5));
      colpane.add(new JLabel(resources.getString("ActiveColumn")));
      colpane.add(nfActiveX = new NumberField(activeX,5));
      gridPanel.add(colpane,BorderLayout.WEST);

      JPanel rowpane = new JPanel(new GridLayout(2,2));
      rowpane.add(new JLabel(resources.getString("NumberOfRows")));
      rowpane.add(nfNumCellY = new NumberField(cells.length,5));
      rowpane.add(new JLabel(resources.getString("ActiveRow")));
      rowpane.add(nfActiveY = new NumberField(activeY,5));
      gridPanel.add(rowpane,BorderLayout.EAST);
      topBox.add(gridPanel);

      JPanel dimensionsPanel = new JPanel(new BorderLayout());
      dimensionsPanel.setBorder(BorderFactory.createTitledBorder(resources.getString("Dimensions")));
      Box box = Box.createHorizontalBox();
      box.add(cbResize = new JCheckBox(resources.getString("AllowResize"),allowResize));
      box.add(Box.createHorizontalGlue());
      box.add(cbRatio = new JCheckBox(resources.getString("FixedRatio"),fixedRatio));
      dimensionsPanel.add(box,BorderLayout.NORTH);

      box = Box.createHorizontalBox();
      box.add(lwidth = new JLabel(resources.getString("Width")));
      box.add(nfWidth = new NumberField((long)_w));
      nfWidth.setHorizontalAlignment(JTextField.RIGHT);
      box.add(Box.createHorizontalGlue());
      box.add(lheight = new JLabel(resources.getString("Height")));
      box.add(nfHeight = new NumberField((long)_h));
      nfHeight.setHorizontalAlignment(JTextField.RIGHT);
      dimensionsPanel.add(box,BorderLayout.SOUTH);

      topBox.add(dimensionsPanel);
View Full Code Here

Examples of simtools.ui.NumberField

          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());
        }
      });
      panel.add(lcrangemin = new JLabel(resources.getString("minLabel")));
      panel.add(tfcrangemin = new NumberField(10));
      if (plot.getCriticalRange()!=null) tfcrangemin.setValue(plot.getCriticalRange().getLowerBound());
      panel.add(lcrangemax = new JLabel(resources.getString("maxLabel")));
      panel.add(tfcrangemax = new NumberField(10));
      if (plot.getCriticalRange()!=null) tfcrangemax.setValue(plot.getCriticalRange().getUpperBound());
      section.add(panel);
      cbcrange.apply();
      p1.add(section);
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.