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

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


          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 {
            throw new CancellationException();
View Full Code Here

TOP

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

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.