Examples of GridPanel


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

    this(args.size(), args, engine);
  }

  private void initArgsPanel() {
    // init argsPanel
    this.argsPanel = new GridPanel();

    this.argsPanel.add(new JLabel("Input Name", SwingConstants.CENTER));
    this.argsPanel.add(new JLabel("Input Description", SwingConstants.CENTER));
    this.argsPanel.add(new JLabel("Input Type", SwingConstants.CENTER));
View Full Code Here

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

    return window;
  }

  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) {
        SearchAndEditWindow.this.list.clear();
        SearchAndEditWindow.this.editButton.setEnabled(false);
        SearchAndEditWindow.this.deleteButton.setEnabled(false);
        SearchAndEditWindow.this.saveButton.setEnabled(false);
      }

    });
    XBayaLabel docTypeLabel = new XBayaLabel("Document Type",
        this.docTypeComboBox);
    this.nameTextField = new XBayaTextField();
    XBayaLabel nameLabel = new XBayaLabel("Name", this.nameTextField);
    JLabel dummyLabel = new JLabel("");
    this.searchButton = new JButton("search");
    this.searchButton.addActionListener(new AbstractAction() {
      @Override
      public void actionPerformed(ActionEvent e) {
        SearchAndEditWindow.this.searchButton.setEnabled(false);
        search();
      }
    });
    searchPanel.add(docTypeLabel);
    searchPanel.add(this.docTypeComboBox);
    searchPanel.add(nameLabel);
    searchPanel.add(this.nameTextField);
    searchPanel.add(dummyLabel);
    searchPanel.add(this.searchButton);
    searchPanel.layout(3, 2, GridPanel.WEIGHT_NONE, 1);

    // this.list = new XBayaList<OGCEXRegistrySearchResult>();
    this.list = new XbayaEnhancedList<OGCEXRegistrySearchResult>();

    this.list.addMouseListener(new MouseAdapter() {
      @Override
      public void mouseClicked(MouseEvent e) {
        if (e.getClickCount() >= 2) {
          // double click is same as cliking the OK button.
          SearchAndEditWindow.this.editButton.doClick();
        }

        if (SearchAndEditWindow.this.list.getSelectedIndex() == -2) {
          SearchAndEditWindow.this.editButton.setEnabled(false);
          SearchAndEditWindow.this.deleteButton.setEnabled(true);
          SearchAndEditWindow.this.saveButton.setEnabled(false);
        } else if (SearchAndEditWindow.this.list.getSelectedIndex() != -1) {
          SearchAndEditWindow.this.editButton.setEnabled(true);
          SearchAndEditWindow.this.deleteButton.setEnabled(true);
          SearchAndEditWindow.this.saveButton.setEnabled(true);
        } else {
          SearchAndEditWindow.this.editButton.setEnabled(false);
          SearchAndEditWindow.this.deleteButton.setEnabled(false);
          SearchAndEditWindow.this.saveButton.setEnabled(false);
        }
      }
    });

    GridPanel listPanel = new GridPanel();
    TitledBorder border = new TitledBorder(new EtchedBorder(),
        "Select an item to config");
    listPanel.getSwingComponent().setBorder(border);
    listPanel.add(this.list);
    listPanel.layout(1, 1, 0, 0);

    GridPanel mainPanel = new GridPanel();
    mainPanel.add(searchPanel);
    mainPanel.add(listPanel);
    mainPanel.layout(2, 1, GridPanel.WEIGHT_EQUALLY, 0);

    JPanel buttonPanel = new JPanel();
    this.editButton = new JButton("Edit");
    this.editButton.addActionListener(new AbstractAction() {
      @Override
View Full Code Here

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

            public void actionPerformed(ActionEvent e) {
                down();
            }
        });

        GridPanel buttonPanel = new GridPanel();
        buttonPanel.add(this.upButton);
        buttonPanel.add(this.downButton);
        buttonPanel.layout(2, 1, GridPanel.WEIGHT_NONE, 0);

        GridPanel reorderingPanel = new GridPanel();
        reorderingPanel.add(this.parameterList);
        reorderingPanel.add(buttonPanel);
        reorderingPanel.layout(1, 2, 0, 0);

        this.metadataTextArea = new XBayaTextArea();
        JLabel metadataLabel = new JLabel("Metadata");
        metadataLabel.setLabelFor(this.metadataTextArea.getSwingComponent());

        this.panel = new GridPanel();
        this.panel.add(reorderingPanel);
        this.panel.add(metadataLabel);
        this.panel.add(this.metadataTextArea);
        this.panel.layout(3, 1, 2, 0);
View Full Code Here

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

    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);
   
    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);
    infoPanel.add(this.serviceTypesScrollPanel);
    infoPanel.add(this.hostEnvLabel);
    infoPanel.add(this.hostEnvTextField);
    infoPanel.add(this.tempDirLabel);
    infoPanel.add(this.tempDirTextField);
    infoPanel.add(this.sshEnabledLabel);
    infoPanel.add(this.sshEnabledCheckBox);
    infoPanel.add(this.jobManagerLabel);
    infoPanel.add(this.jobManagerComboBox);
    infoPanel.add(this.gateKeeperEndPointLabel);
    infoPanel.add(this.gateKeeprEndpointComboBox);
    infoPanel.add(this.wsGramLabel);
    infoPanel.add(this.wsGramPresentCheckBox);
    infoPanel.add(this.gridFTPendpointLabel);
    infoPanel.add(this.gridFTPEndPointComboBox);
    infoPanel.add(this.isPublicLabel);
    infoPanel.add(this.isPublicCheckBox);
    infoPanel.add(this.gfacPathLabel);
    infoPanel.add(this.gfacPathTextField);
    infoPanel.add(this.jdkNameLabel);
    infoPanel.add(this.jdkNameComboBox);
    infoPanel.add(this.jdkPathLabel);
    infoPanel.add(this.jdkPathTextField);
   
    infoPanel.layout(13, 2, GridPanel.WEIGHT_NONE, 1);

    JPanel buttonPanel = new JPanel();
    this.addHostButton = new JButton();
    this.addHostButton.setText("Add Host");
    this.addHostButton
View Full Code Here

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

            }
     
        });
        buttonPanel.add(this.okButton);
       
        GridPanel mainPanel = new GridPanel();
        TitledBorder border = new TitledBorder(new EtchedBorder(),
                "Save Workflow to XRegistry");
        mainPanel.getSwingComponent().setBorder(border);
    mainPanel.add(nameLabel);
    mainPanel.add(this.nameTextField);
    mainPanel.add(descriptionLabel);
    mainPanel.add(this.descriptionTextArea);
        chkMakePublic = new JCheckBox("Make public");
    mainPanel.add(chkMakePublic);
    mainPanel.layout(2,2,0,0);
       
        this.dialog = new XBayaDialog(this.engine,
                "Save Workflow to XRegistry", mainPanel, buttonPanel);
        this.dialog.setDefaultButton(this.okButton);
  }
View Full Code Here

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

              .setEnabled(false);
        }
      }
    });   

    GridPanel mainPanel = new GridPanel();
    TitledBorder border = new TitledBorder(new EtchedBorder(),
        "Select a workflow to load");
    mainPanel.getSwingComponent().setBorder(border);
    mainPanel.add(this.list);
    mainPanel.layout(1, 1, 0, 0);

    JPanel buttonPanel = new JPanel();
    this.okButton = new JButton("Load");
    this.okButton.addActionListener(new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
View Full Code Here

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

  /**
   *
   */
  private void initGui() {

    GridPanel mainPanel = new GridPanel();

    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);
    mainPanel.add(commandLabel);
    mainPanel.add(this.commandField);

    mainPanel.layout(5, 1, GridPanel.WEIGHT_NONE, 1);

    JButton sendButton = new JButton("Send");
    sendButton.addActionListener(new AbstractAction() {
      /**
       * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
View Full Code Here

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

        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);
   
    this.idButton = new JRadioButton("Use existing instance");
    this.idButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent paramActionEvent) {
        InstanceConfigurationDialog.this.instanceTypeComboBox.getJComboBox().setEnabled(false);
      }
    });
    ButtonGroup serviceTypeButtonGroup = new ButtonGroup();
    serviceTypeButtonGroup.add(this.amiButton);
    serviceTypeButtonGroup.add(this.idButton);
    XBayaLabel radioLabel = new XBayaLabel("Options", this.amiButton);

    /*
     * AMI/Instance ID
     */
    this.idTextField = new XBayaTextField();
    XBayaLabel idLabel = new XBayaLabel("AMI/Instance ID", this.amiButton);
   
    /*
     * Username
     */
    this.usernameTextField = new XBayaTextField();
    XBayaLabel usernameLabel = new XBayaLabel("Username", this.amiButton);
   
    GridPanel gridPanel = new GridPanel();
    gridPanel.add(nameLabel);
    gridPanel.add(this.nameTextField);
    gridPanel.add(radioLabel);
    gridPanel.add(amiPanel);   
    gridPanel.add(new JPanel());
    gridPanel.add(this.idButton);
    gridPanel.add(idLabel);
    gridPanel.add(this.idTextField);
    gridPanel.add(usernameLabel);
    gridPanel.add(this.usernameTextField);
    gridPanel.layout(5, 2, GridPanel.WEIGHT_NONE, 1);

    JButton okButton = new JButton("OK");
    okButton.addActionListener(new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
        if(InstanceConfigurationDialog.this.idTextField.getText() == null || InstanceConfigurationDialog.this.idTextField.getText().isEmpty()){
View Full Code Here

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

  public ODEInvokerWindow() {

  }

  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);
    infoPanel.add(this.topicTextField);
    infoPanel.add(xRegistryLabel);
    infoPanel.add(this.xRegistryTextField);
    infoPanel.add(gfacLabel);
    infoPanel.add(this.gfacTextField);
    infoPanel.add(resourceMappingLabel);
    infoPanel.add(this.resourceMappingField);
    infoPanel.add(gatekeeperLabel);
    infoPanel.add(this.gatekeeperField);
    infoPanel.add(jobMagerLabel);
    infoPanel.add(this.jobManagerField);
    infoPanel.layout(6, 2, GridPanel.WEIGHT_NONE, 1);

    // leavign the defualts around just
    // LeadResourceMapping resourceMapping = new LeadResourceMapping(
    // "login.bigred.iu.teragrid.org");
    // leadContext.setResourceMapping(resourceMapping);
    //
    // resourceMapping
    // .setGatekeeperEPR(new URI(
    //"http://pagodatree.cs.indiana.edu:54321/axis2/services/SigiriService")
    // );
    // resourceMapping.setJobManager("Sigiri");

    GridPanel mainPanel = new GridPanel();
    mainPanel.add(this.parameterPanel);
    mainPanel.add(infoPanel);
    mainPanel.layout(2, 1, 0, 0);

    // this.deployNewAndInvokeButton = new JButton("Deploy and Invoke");
    // //TODO Is this feature necessary, if yes Enable this.
    // this.deployNewAndInvokeButton.setEnabled(false);
    // this.deployNewAndInvokeButton.addActionListener(new AbstractAction()
View Full Code Here

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

    this.addServiceButton.setText("Update Service");
  }

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

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

    JLabel inputDumpLabel = new JLabel();
    this.configInputsButton = new JButton("Config Inputs");
    this.configInputsButton.addActionListener(new java.awt.event.ActionListener() {
      @Override
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        configInputsButtonActionPerformed();
      }
    });

    this.outputNumSpinner = new JSpinner(new SpinnerNumberModel(0, 0, Integer.MAX_VALUE, 1));
    this.outputNumLabel = new XBayaLabel("Number of Outputs", this.outputNumSpinner);

    JLabel outputDumpLabel = new JLabel();
    this.configOutputsButton = new JButton("Config Outputs");
    this.configOutputsButton.addActionListener(new java.awt.event.ActionListener() {
      @Override
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        configOutputsButtonActionPerformed();
      }
    });

    infoPanel.add(this.serviceNameLabel);
    infoPanel.add(this.serviceNameTextField);
    infoPanel.add(this.inactivityLimitLabel);
    infoPanel.add(this.inactivityLimitTextField);
    infoPanel.add(this.methodNameLabel);
    infoPanel.add(this.methodNameTextField);
    infoPanel.add(this.methodDescLabel);
    infoPanel.add(this.methodDescTextField);
    infoPanel.add(this.appNameLabel);
    infoPanel.add(this.appNameComboBox);
    infoPanel.add(this.inputNumLabel);
    infoPanel.add(this.inputNumSpinner);
    infoPanel.add(inputDumpLabel);
    infoPanel.add(this.configInputsButton);
    infoPanel.add(this.outputNumLabel);
    infoPanel.add(this.outputNumSpinner);
    infoPanel.add(outputDumpLabel);
    infoPanel.add(this.configOutputsButton);

    infoPanel.layout(9, 2, GridPanel.WEIGHT_NONE, 1);

    JPanel buttonPanel = new JPanel();
    this.addServiceButton = new JButton("Add Service");
    this.addServiceButton.addActionListener(new java.awt.event.ActionListener() {
      @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.