Package edu.indiana.extreme.xbaya.gui

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


  /**
   * ReInit Host Name ComboBox
   */
  public void reinitHostComboBox() {
    if (this.resourceSelectionComboBox == null)
      this.resourceSelectionComboBox = new XBayaComboBox(new DefaultComboBoxModel(initHostNameList()));
    else
      this.resourceSelectionComboBox.setModel(new DefaultComboBoxModel(initHostNameList()));
  }
View Full Code Here


      @Override
      public void actionPerformed(ActionEvent paramActionEvent) {
        InstanceConfigurationDialog.this.instanceTypeComboBox.getJComboBox().setEnabled(true);
      }
    });   
    this.instanceTypeComboBox = new XBayaComboBox(new DefaultComboBoxModel(AmazonUtil.INSTANCE_TYPE));
    this.instanceTypeComboBox.setSelectedItem(AmazonUtil.INSTANCE_TYPE[1]);
    GridPanel amiPanel = new GridPanel();   
    amiPanel.add(this.amiButton);
    amiPanel.add(this.instanceTypeComboBox);
    amiPanel.layout(1, 2, GridPanel.WEIGHT_NONE, 1);
View Full Code Here

  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);
View Full Code Here

  }

  private void initGUI() {

    GridPanel searchPanel = new GridPanel();
    this.docTypeComboBox = new XBayaComboBox(
        new javax.swing.DefaultComboBoxModel(new String[] { "Host",
            "Application", "Service" }));
    this.docTypeComboBox.addItemListener(new ItemListener() {
      @Override
      public void itemStateChanged(ItemEvent arg0) {
View Full Code Here

    this.addHostButton.setText("Update Host");
  }

  private void initGUI() {
    GridPanel infoPanel = new GridPanel();
    this.hostNameComboBox = new XBayaComboBox(
        new javax.swing.DefaultComboBoxModel(initHostNameList()));
    this.hostNameComboBox.setEditable(true);
    this.hostNameComboBox.getJComboBox().addItemListener(
        new ItemListener() {
          @Override
          public void itemStateChanged(ItemEvent arg0) {
            HostDescriptionRegistrationWindow.this.gateKeeprEndpointComboBox
                .setModel(new javax.swing.DefaultComboBoxModel(
                    gateWayEndPoint()));

            HostDescriptionRegistrationWindow.this.gridFTPEndPointComboBox
                .setModel(new javax.swing.DefaultComboBoxModel(
                    initGridFtpEndPoint()));
          }
        });
    this.hostNameLabel = new XBayaLabel("Host Name", this.hostNameComboBox);

    this.serviceTypesScrollPanel = new JScrollPane();
    this.serviceTypesList = new JList();
    this.serviceTypesList.setModel(new javax.swing.AbstractListModel() {
      String[] strings = { "gram5", "ws-gram" };

      @Override
      public int getSize() {
        return this.strings.length;
      }

      @Override
      public Object getElementAt(int i) {
        return this.strings[i];
      }
    });
    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);
   
View Full Code Here

    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);

    this.inputNumSpinner = new JSpinner(new SpinnerNumberModel(0, 0, Integer.MAX_VALUE, 1));
    this.inputNumLabel = new XBayaLabel("Number of Inputs", this.inputNumSpinner);
View Full Code Here

  /**
   *
   */
  private void initGUI() {
    GridPanel infoPanel = new GridPanel();
    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();
View Full Code Here

    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);

    this.instanceTypeComboBox = new XBayaComboBox(new DefaultComboBoxModel(AmazonUtil.INSTANCE_TYPE));
    this.instanceTypeComboBox.setSelectedItem(AmazonUtil.INSTANCE_TYPE[1]);
    XBayaLabel instanceTypeLabel = new XBayaLabel("Instance Type", this.instanceTypeComboBox);

    this.noKeyButton = new JRadioButton("No Key Pair");
    this.noKeyButton.setSelected(true);
    this.noKeyButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent paramActionEvent) {
        EC2LaunchWindow.this.keyComboBox.getJComboBox().setEnabled(false);
      }
    });

    this.existKeyButton = new JRadioButton("Exist Key Pairs");
    this.existKeyButton.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent paramActionEvent) {
        if (EC2LaunchWindow.this.keyComboBoxModel == null) {
          EC2LaunchWindow.this.keyComboBoxModel = new DefaultComboBoxModel(AmazonUtil.loadKeypairs().toArray());
          EC2LaunchWindow.this.keyComboBox.setModel(EC2LaunchWindow.this.keyComboBoxModel);
        }
        EC2LaunchWindow.this.keyComboBox.getJComboBox().setEnabled(true);
      }
    });

    ButtonGroup serviceTypeButtonGroup = new ButtonGroup();
    serviceTypeButtonGroup.add(this.noKeyButton);
    serviceTypeButtonGroup.add(this.existKeyButton);

    this.keyComboBox = new XBayaComboBox(new DefaultComboBoxModel());
    this.keyComboBox.getJComboBox().setEnabled(false);

    GridPanel radioPanel = new GridPanel();
    radioPanel.add(this.noKeyButton);
    radioPanel.add(new JPanel());
View Full Code Here

TOP

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

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.