Package edu.indiana.extreme.xbaya.gui

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


    this.addApplicationButton.setText("Update Application");
  }

  private void initGUI() {
    GridPanel infoPanel = new GridPanel();
    this.applicationNameTextField = new XBayaTextField();
    this.applicationNameLabel = new XBayaLabel("Application Name", this.applicationNameTextField);

    this.hostNameComboBox = new XBayaComboBox(new DefaultComboBoxModel(initHostNameList()));
    this.hostNameComboBox.setEditable(false);
    this.hostNameLabel = new XBayaLabel("Host Name", this.hostNameComboBox);

    this.executableTextField = new XBayaTextField();
    this.executableLabel = new XBayaLabel("Executable", this.executableTextField);

    this.workDirectoryTextField = new XBayaTextField("/tmp");
    this.workDirectoryLabel = new XBayaLabel("Work Directory", this.workDirectoryTextField);

    this.tempDirTextField = new XBayaTextField("/tmp");
    this.tempDirLabel = new XBayaLabel("Temp Dir", this.tempDirTextField);

    this.projectNameComboBox = new XBayaComboBox(new DefaultComboBoxModel());
    this.projectNameComboBox.setEditable(true);
    this.projectNameLabel = new XBayaLabel("TeraGrid Project Name (optional)", this.projectNameComboBox);

    this.jobTypeComboBox = new XBayaComboBox(new DefaultComboBoxModel(new String[] { "single", "mpi", "multiple", "condor" }));
    this.jobTypeComboBox.setEditable(false);
    this.jobTypeLabel = new XBayaLabel("Job Type (optional)", this.jobTypeComboBox);

    this.queueTextField = new XBayaTextField();
    this.queueLabel = new XBayaLabel("Queue (optional)", this.queueTextField);

    this.maxWallTimeTextField = new XBayaTextField();
    this.maxWallTimeLabel = new XBayaLabel("Max Wall Time (optional)", this.maxWallTimeTextField);

    this.procsCountTextField = new XBayaTextField();
    this.procsCountLabel = new XBayaLabel("Processors Count (optional)", this.procsCountTextField);

    this.appParaFileTextField = new XBayaTextField();
    this.appParaFileLabel = new XBayaLabel("Application Parameter File (optional)", this.appParaFileTextField);

    this.minMemoryTextField = new XBayaTextField();
    this.minMemoryLabel = new XBayaLabel("Min Memory (optional)", this.minMemoryTextField);

    this.hostCountTextField = new XBayaTextField();
    this.hostCountLabel = new XBayaLabel("Host Count (optional)", this.hostCountTextField);

    this.rslParamNameTextField = new XBayaTextField();
    this.rslParaNameLabel = new XBayaLabel("RSL Param Name (optional)", this.rslParamNameTextField);

    this.rslParamValueTextField = new XBayaTextField();
    this.rslParamValueLabel = new XBayaLabel("RSL Param Value (optional)", this.rslParamValueTextField);

    this.isPublicCheckBox = new JCheckBox();
    this.isPublicLabel = new XBayaLabel("Is Public (optional)", this.isPublicCheckBox);
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.workflowInterpreterTextField = new XBayaTextField();
    XBayaLabel workflowInterpreterLabel = new XBayaLabel("Workflow Interpreter URL",
        this.workflowInterpreterTextField);
    this.xRegistryTextField = new XBayaTextField();
    XBayaLabel xRegistryLabel = new XBayaLabel("XRegistry URL",
        this.xRegistryTextField);
    this.gfacTextField = new XBayaTextField();
    XBayaLabel gfacLabel = new XBayaLabel("GFac URL", this.gfacTextField);

    GridPanel infoPanel = new GridPanel();
    infoPanel.add(topicLabel);
    infoPanel.add(this.topicTextField);
View Full Code Here

    final org.xmlpull.v1.builder.XmlElement inputs = builder
        .newFragment("inputs");
    ODEClient client = new ODEClient();
    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();
      inputNode.setDefaultValue(value);
    }
   
    final String workflowInterpreterUrl = this.workflowInterpreterTextField.getText();
    if (null != workflowInterpreterUrl && !"".equals(workflowInterpreterUrl)) {
View Full Code Here

  /**
   * Intialize UI
   */
  private void initGUI() {
   
    this.nameTextField = new XBayaTextField();
    XBayaLabel nameLabel = new XBayaLabel("Name", this.nameTextField);

    this.descriptionTextArea = new XBayaTextArea();
    XBayaLabel descriptionLabel = new XBayaLabel("Description",
        this.descriptionTextArea);
View Full Code Here

    });
    this.serviceTypesScrollPanel.setViewportView(this.serviceTypesList);
    this.serviceTypesLabel = new XBayaLabel("Service Types",
        this.serviceTypesList);

    this.hostEnvTextField = new XBayaTextField();
    this.hostEnvLabel = new XBayaLabel("Host Environment",
        this.hostEnvTextField);

    this.tempDirTextField = new XBayaTextField("/tmp");
    this.tempDirLabel = new XBayaLabel("Temp Dir", this.tempDirTextField);

    this.sshEnabledCheckBox = new JCheckBox();
    this.sshEnabledCheckBox.setSelected(false);
    this.sshEnabledLabel = new XBayaLabel("SSH Enabled",
        this.sshEnabledCheckBox);

    this.jobManagerComboBox = new XBayaComboBox(
        new javax.swing.DefaultComboBoxModel(new String[] { "PBS",
            "FORK", "LSF", "MULTI", "CONDOR", "SPRUCE",
            "LoadLeveler" }));
    this.jobManagerLabel = new XBayaLabel("Gate Keeper JobManager",
        this.jobManagerComboBox);

    this.gateKeeprEndpointComboBox = new XBayaComboBox(
        new javax.swing.DefaultComboBoxModel(gateWayEndPoint()));
    this.gateKeeperEndPointLabel = new XBayaLabel("GateKeeper EndPoint",
        this.gateKeeprEndpointComboBox);

    this.wsGramPresentCheckBox = new JCheckBox();
    this.wsGramPresentCheckBox.setSelected(false);
    this.wsGramLabel = new XBayaLabel("WSGram Present",
        this.wsGramPresentCheckBox);

    this.gridFTPEndPointComboBox = new XBayaComboBox(
        new javax.swing.DefaultComboBoxModel(initGridFtpEndPoint()));
    this.gridFTPendpointLabel = new XBayaLabel("GridFtp Endpoint",
        this.gridFTPEndPointComboBox);

    this.isPublicCheckBox = new JCheckBox();
    this.isPublicCheckBox.setSelected(false);
    this.isPublicLabel = new XBayaLabel("Is Public",
        this.isPublicCheckBox);

    this.gfacPathTextField = new XBayaTextField();
    this.gfacPathLabel = new XBayaLabel("GFac Path (Optional)",
        this.gfacPathTextField);

    this.jdkNameComboBox = new XBayaComboBox(
        new javax.swing.DefaultComboBoxModel(new String[] { "jdk 1.4",
            "jdk 1.5", "jdk 1.6" }));
    this.jdkNameComboBox.setSelectedItem("jdk 1.5");
    this.jdkNameLabel = new XBayaLabel("JDK Name (Optional)", this.jdkNameComboBox);
   
    this.jdkPathTextField = new XBayaTextField();
    this.jdkPathLabel = new XBayaLabel("JDK Path (Optional)", this.jdkPathTextField);

    infoPanel.add(this.hostNameLabel);
    infoPanel.add(this.hostNameComboBox);
    infoPanel.add(this.serviceTypesLabel);
View Full Code Here

    MonitorPanel monitorPanel = new MonitorPanel(this.engine, this.nodeID);
    this.consoleTextArea = new XBayaTextArea();
    XBayaLabel consoleLabel = new XBayaLabel("Console",
        this.consoleTextArea);

    this.commandField = new XBayaTextField();
    XBayaLabel commandLabel = new XBayaLabel("Command", this.commandField);

    mainPanel.add(monitorPanel);
    mainPanel.add(consoleLabel);
    mainPanel.add(this.consoleTextArea);
View Full Code Here

  }

  private void initGUI() {
    GridPanel infoPanel = new GridPanel();

    this.serviceNameTextField = new XBayaTextField();
    this.serviceNameLabel = new XBayaLabel("Service Name", this.serviceNameTextField);

    this.inactivityLimitTextField = new XBayaTextField("15");
    this.inactivityLimitLabel = new XBayaLabel("Inactivity Limit", this.inactivityLimitTextField);

    this.methodNameTextField = new XBayaTextField();
    this.methodNameLabel = new XBayaLabel("Method Name", this.methodNameTextField);

    this.methodDescTextField = new XBayaTextField();
    this.methodDescLabel = new XBayaLabel("Method Description", this.methodDescTextField);

    this.appNameComboBox = new XBayaComboBox(new DefaultComboBoxModel(initApplicationNameList()));
    this.appNameLabel = new XBayaLabel("Application Name", this.appNameComboBox);
View Full Code Here

  }

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

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

    this.xRegistryTextField = new XBayaTextField();
    XBayaLabel xRegistryLabel = new XBayaLabel("XRegistry URL",
        this.xRegistryTextField);

    this.gfacTextField = new XBayaTextField();
    XBayaLabel gfacLabel = new XBayaLabel("GFac URL", this.gfacTextField);

    this.resourceMappingField = new XBayaTextField();
    XBayaLabel resourceMappingLabel = new XBayaLabel(
        "Resource Mapping (optional)", this.resourceMappingField);

    this.gatekeeperField = new XBayaTextField();
    XBayaLabel gatekeeperLabel = new XBayaLabel("Gatekeeper (optional)",
        this.gatekeeperField);

    this.jobManagerField = new XBayaTextField();
    XBayaLabel jobMagerLabel = new XBayaLabel("Job Manager (optional)",
        this.jobManagerField);

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

      QName type = input.getType();
      JLabel paramLabel = new JLabel(id, SwingConstants.TRAILING);
      JLabel typeLabel = new JLabel(type.getLocalPart());
      XBayaTextComponent paramField;
      if (LEADTypes.isKnownType(type)) {
        paramField = new XBayaTextField();
        columnWeights.add(new Double(0));
      } else {
        paramField = new XBayaTextArea();
        columnWeights.add(new Double(1.0));
      }
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.