Package org.aavso.tools.vstar.ui.dialog

Examples of org.aavso.tools.vstar.ui.dialog.TextField


      public void actionPerformed(ActionEvent e) {
        // Request a name for the filter.
        String defaultName = Mediator.getInstance()
            .getDocumentManager().getNextUntitledFilterName();
        List<ITextComponent<String>> fields = new ArrayList<ITextComponent<String>>();
        fields.add(new TextField("Name", defaultName, false, false,
            TextField.Kind.LINE));
        final TextDialog nameDlg = new TextDialog("Filter Name", fields);

        // Create an observation filter message and notify listeners.
        IFilterDescription desc = new IFilterDescription() {
View Full Code Here


          }
          urlStrs = urlStrs.substring(0, urlStrs.lastIndexOf(", "));
          obSourcePlugin.setInputInfo(streams, urlStrs);
        } else {
          // Request a URL from the user.
          TextField urlField = new TextField("URL");
          Checkbox additiveLoadCheckbox = new Checkbox(
              "Add to current?", false);
          MultiEntryComponentDialog urlDialog = new MultiEntryComponentDialog(
              "Enter URL", urlField, additiveLoadCheckbox);
          if (!urlDialog.isCancelled()
              && !urlField.getValue().matches("^\\s*$")) {
            String urlStr = urlField.getValue();
            obSourcePlugin.setAdditive(additiveLoadCheckbox.getValue());
            URL url = new URL(urlStr);
            streams.add(url.openStream());
            obSourcePlugin.setInputInfo(streams, urlStr);
          } else {
View Full Code Here

      BinningResult binningResult = model.getBinningResult();

      String msg = binningResult.createAnovaText();
     
      List<ITextComponent<String>> fields = new ArrayList<ITextComponent<String>>();
      fields.add(new TextField("ANOVA", msg, TextField.Kind.AREA));
      new TextDialog(
          "ANOVA for " + binningResult.getSeries() + " series",
          fields);
    }
  }
View Full Code Here

        initialType = DCEP;
      }

      List<ITextComponent<?>> fields = new ArrayList<ITextComponent<?>>();

      final TextField absMagEqn = new TextField(
          "Absolute Mag Relationship",
          initialType != null ? absMagEqns.get(initialType) : "",
          true, false, Kind.LINE);

      final SelectableTextField typesField = new SelectableTextField(
View Full Code Here

      double distance) {
    List<ITextComponent<String>> resultFields = new ArrayList<ITextComponent<String>>();

    // resultFields.add(new TextField("Absolute Magnitude Calculation",
    // absMagEqns.get(varType), true, false, TextField.Kind.LINE));
    resultFields.add(new TextField("Absolute Magnitude",
        NumericPrecisionPrefs.formatMag(absMagnitude), true, false,
        TextField.Kind.LINE));
    resultFields.add(new TextField("Distance (parsecs)",
        NumericPrecisionPrefs.formatOther(distance), true, false,
        TextField.Kind.LINE));
    resultFields.add(new TextField("Distance (light years)",
        NumericPrecisionPrefs.formatOther(distance * 3.26), true,
        false, TextField.Kind.LINE));
    resultFields.add(new TextField("Distance Modulus",
        "10 ^ ((apparent mag - absolute mag + 5) / 5)", true, false,
        TextField.Kind.LINE));
    // resultFields[2] = new TextField("Minimum Distance", String
    // .format(otherFmt + " parsecs", distanceMin), true,
    // false, TextField.Kind.LINE);
View Full Code Here

          obsCodesForCurrentSeries.add(obs.getObsCode());
        }
        obsCodes = obsCodesForCurrentSeries.toString();
        obsCodes = obsCodes.replaceAll(squareBrackets, "");
        obsCodes = wrap(obsCodes)// Force lines to wrap ...
        seriesFields.add(new TextField(type.getDescription(), obsCodes,
            Kind.AREA));
      }
    }
    new TextDialog("Observers By Series", seriesFields);
  }
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.ui.dialog.TextField

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.