Package edu.indiana.extreme.xbaya.gui

Examples of edu.indiana.extreme.xbaya.gui.XBayaTextField


    this.docTypeComboBox = new XBayaComboBox(
        new javax.swing.DefaultComboBoxModel(new String[] { "Host",
            "Application", "Service" }));
    XBayaLabel docTypeLabel = new XBayaLabel("Document Type",
        this.docTypeComboBox);
    this.fileLocationField = new XBayaTextField();
    XBayaLabel fileLocationLabel = new XBayaLabel("File Location",
        this.fileLocationField);
    JLabel dummyLabel = new JLabel("");
    this.fileChooserButton = new JButton("Choose File...");
    this.fileChooserButton.addActionListener(new AbstractAction() {
View Full Code Here


        this.registerer.register(url, id, rate);
    }

    private void initGui() {
        this.urlTextField = new XBayaTextField();
        XBayaLabel brokerLabel = new XBayaLabel("Karma URL", this.urlTextField);
        this.idTextField = new XBayaTextField();
        XBayaLabel idLabel = new XBayaLabel("Workflow Instance ID",
                this.idTextField);

        GridPanel infoPanel = new GridPanel();
        infoPanel.add(brokerLabel);
View Full Code Here

    for (InputNode node : inputNodes) {
      String id = node.getID();
      QName parameterType = node.getParameterType();
      JLabel nameLabel = new JLabel(id);
      JLabel typeField = new JLabel(parameterType.getLocalPart());
      XBayaTextField paramField = new XBayaTextField();
      Object value = node.getDefaultValue();

      String valueString;
      if (value == null) {
        valueString = "";
      } else {
        if (value instanceof XmlElement) {
          XmlElement valueElement = (XmlElement) value;
          valueString = XMLUtil.xmlElementToString(valueElement);
        } else {
          // Only string comes here for now.
          valueString = value.toString();
        }
      }
      paramField.setText(valueString);
      this.parameterPanel.add(nameLabel);
      this.parameterPanel.add(typeField);
      this.parameterPanel.add(paramField);
      this.parameterTextFields.add(paramField);
    }
View Full Code Here

  }

  private void initGUI() {
    this.parameterPanel = new GridPanel(true);

    this.topicTextField = new XBayaTextField();
    XBayaLabel topicLabel = new XBayaLabel("Notification topic",
        this.topicTextField);

    this.gfacTextField = new XBayaTextField();
    XBayaLabel gfacLabel = new XBayaLabel("GFac URL", this.gfacTextField);
   
    /*
     * extend
     */
    this.gridchemBridgeTextField = new XBayaTextField();
    this.usernameTextField = new XBayaTextField();
    XBayaLabel gridchemBridgeLabel = new XBayaLabel("GridChem Bridge URL", this.gridchemBridgeTextField);
    XBayaLabel usernameLabel = new XBayaLabel("Username", this.usernameTextField);
   
    //default value
    gridchemBridgeTextField.setText("http://129.79.49.227:8080/ogce-gridchem-bridge/");
View Full Code Here

    List<InputNode> inputNodes = GraphUtil.getInputNodes(this.workflow
        .getGraph());
    for (int i = 0; i < inputNodes.size(); i++) {
      InputNode inputNode = inputNodes.get(i);
      XBayaTextField parameterTextField = this.parameterTextFields.get(i);
      String id = inputNode.getID();
      String value = parameterTextField.getText();
      arguments.add("-" + id);
      arguments.add(value);
    }

    XBayaConfiguration config = this.engine.getConfiguration();
View Full Code Here

  protected void initGUI() {

    /*
     * Upload Panel
     */
    this.fileTextField = new XBayaTextField();
    XBayaLabel fileLabel = new XBayaLabel("Upload File Path", this.fileTextField);

    this.uploadBucketTextField = new XBayaTextField();
    XBayaLabel uploadBucketLabel = new XBayaLabel("Bucket Name", this.uploadBucketTextField);

    GridPanel uploadPanel = new GridPanel();
    uploadPanel.getSwingComponent().setBorder(BorderFactory.createTitledBorder("Upload"));
    uploadPanel.add(fileLabel);
    uploadPanel.add(this.fileTextField);
    uploadPanel.add(uploadBucketLabel);
    uploadPanel.add(this.uploadBucketTextField);
    uploadPanel.layout(2, 2, GridPanel.WEIGHT_NONE, 1);

    /*
     * Download Panel
     */        if (AmazonCredential.getInstance().getAwsAccessKeyId().equals("AKIAI3GNMQVYA5LSQNEQ")) { // Avoid to use default Aws Access Key
        JOptionPane.showMessageDialog(AmazonS3UtilsWindow.this.dialog.getDialog(),
            "Aws Access Key not set!", "Error",
            JOptionPane.ERROR_MESSAGE);
        return;
      }
    this.downloadBucketTextField = new XBayaTextField();
    XBayaLabel downloadBucketLabel = new XBayaLabel("Bucket Name", this.downloadBucketTextField);

    this.keyTextField = new XBayaTextField();
    XBayaLabel keyLabel = new XBayaLabel("Key Name", this.keyTextField);

    this.folderTextField = new XBayaTextField();
    XBayaLabel folderLabel = new XBayaLabel("Download Location", this.folderTextField);

    GridPanel downloadPanel = new GridPanel();
    downloadPanel.getSwingComponent().setBorder(BorderFactory.createTitledBorder("Download"));
    downloadPanel.add(downloadBucketLabel);
View Full Code Here

    initGUI();
  }

  protected void initGUI() {

    this.accessKeyIDTextField = new XBayaTextField();
    XBayaLabel accessKeyIDLabel = new XBayaLabel("Access Key", this.accessKeyIDTextField);

    this.secretAccessKeyTextField = new XBayaTextField();
    XBayaLabel secretAccessKeyLabel = new XBayaLabel("Secret Access Key", this.secretAccessKeyTextField);

    GridPanel infoPanel = new GridPanel();
    infoPanel.add(accessKeyIDLabel);
    infoPanel.add(this.accessKeyIDTextField);
View Full Code Here

    initGUI();
  }
 
  protected void initGUI() {

    this.accessKeyIDTextField = new XBayaTextField();
    XBayaLabel accessKeyIDLabel = new XBayaLabel("Access Key",
        this.accessKeyIDTextField);
   
    this.secretAccessKeyTextField = new XBayaTextField();
    XBayaLabel secretAccessKeyLabel = new XBayaLabel("Secret Access Key",
        this.secretAccessKeyTextField);
   
    this.keyPairNameTextField = new XBayaTextField();
    XBayaLabel keyPairNameLabel = new XBayaLabel("Key Pair Name",
        this.keyPairNameTextField);
   
    this.numOfInstancesTextField = new XBayaTextField();
    XBayaLabel numOfInstancesLabel = new XBayaLabel("Number of Instances",
        this.numOfInstancesTextField);
   
    this.jobFlowNameTextField = new XBayaTextField();
    XBayaLabel jobFlowNameLabel = new XBayaLabel("Job Flow Name",
        this.jobFlowNameTextField);
   
    this.logLocationOnS3TextField = new XBayaTextField();
    XBayaLabel logLocationOnS3Label = new XBayaLabel("Log Location(S3)",
        this.logLocationOnS3TextField);
   
    this.inputLocationOnS3TextField = new XBayaTextField();
    XBayaLabel inputLocationOnS3Label = new XBayaLabel("Input Location(S3)",
        this.inputLocationOnS3TextField);
   
    this.outputLocationOnS3TextField = new XBayaTextField();
    XBayaLabel outputLocationOnS3Label = new XBayaLabel("Output Location(S3)",
        this.outputLocationOnS3TextField);
   
    this.jarFilePathOnS3TextField = new XBayaTextField();
    XBayaLabel jarFilePathOnS3Label = new XBayaLabel("Jar File Location(S3)",
        this.jarFilePathOnS3TextField);
   
    this.mainClassNameTextField = new XBayaTextField();
    XBayaLabel mainClassNameLabel = new XBayaLabel("Main Class Name",
        this.mainClassNameTextField);
   
    this.accessKeyIDTextField.setText("AKIAI3GNMQVYA5LSQNEQ");
    this.secretAccessKeyTextField.setText("CcdJtCELevu03nIsyho6bb0pZv6aRi034OoXFYWl");
View Full Code Here

  private void initGUI() {
    /*
     * Main Panel
     */
    this.amiTextField = new XBayaTextField();
    XBayaLabel amiLabel = new XBayaLabel("AMI ID", this.amiTextField);

    this.numberOfInstanceSpinner = new JSpinner(new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 1));
    XBayaLabel nInstanceLabel = new XBayaLabel("Number Of Instances", this.numberOfInstanceSpinner);

View Full Code Here

    for (InputNode node : inputNodes) {
      String id = node.getID();
      QName parameterType = node.getParameterType();
      JLabel nameLabel = new JLabel(id);
      JLabel typeField = new JLabel(parameterType.getLocalPart());
      XBayaTextField paramField = new XBayaTextField();
      Object value = node.getDefaultValue();

      String valueString;
      if (value == null) {
        valueString = "";
      } else {
        if (value instanceof XmlElement) {
          XmlElement valueElement = (XmlElement) value;
          valueString = XMLUtil.xmlElementToString(valueElement);
        } else {
          // Only string comes here for now.
          valueString = value.toString();
        }
      }
      paramField.setText(valueString);
      this.parameterPanel.add(nameLabel);
      this.parameterPanel.add(typeField);
      this.parameterPanel.add(paramField);
      this.parameterTextFields.add(paramField);
    }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.gui.XBayaTextField

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.