Package edu.indiana.extreme.xbaya.gui

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


     */
    private void initGui() {
        this.memoTextArea = new XBayaTextArea();
        XBayaLabel memoLabel = new XBayaLabel("Memo", this.memoTextArea);

        GridPanel gridPanel = new GridPanel();
        gridPanel.add(memoLabel);
        gridPanel.add(this.memoTextArea);
        gridPanel.layout(1, 2, 0, 1);

        JButton okButton = new JButton("OK");
        okButton.addActionListener(new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                setInput();
View Full Code Here


        this.descriptionLabel = new XBayaLabel("Description",
                this.descriptionTextField);



        this.gridPanel = new GridPanel();
        this.gridPanel.add(wsdlLabel);
        this.gridPanel.add(this.wsdlTextField);
        this.gridPanel.add(descriptionLabel);
        this.gridPanel.add(this.descriptionTextField);
        this.gridPanel.layout(2, 2, 1, 1);
View Full Code Here

    else
      this.resourceSelectionComboBox.setModel(new DefaultComboBoxModel(initHostNameList()));
  }

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

    reinitHostComboBox();
    this.resourceSelectionLabel = new XBayaLabel("Select a Compute Resource", this.resourceSelectionComboBox);

    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.interactChkBox = new JCheckBox();
    this.interactChkBox.setSelected(false);
    XBayaLabel interactLabel = new XBayaLabel("Enable Service Interactions", this.interactChkBox);

    GridPanel infoPanel = new GridPanel();
    infoPanel.add(this.resourceSelectionLabel);
    infoPanel.add(this.resourceSelectionComboBox);
    infoPanel.add(topicLabel);
    infoPanel.add(this.topicTextField);
    infoPanel.add(xRegistryLabel);
    infoPanel.add(this.xRegistryTextField);
    infoPanel.add(gfacLabel);
    infoPanel.add(this.gfacTextField);
    infoPanel.add(interactLabel);
    infoPanel.add(this.interactChkBox);

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

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

    JButton okButton = new JButton("OK");
    okButton.addActionListener(new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
        execute();
View Full Code Here

    this.dialog.hide();
  }

  private void initGUI() {

    GridPanel infoPanel = new GridPanel();
    this.eplStatement = new XBayaTextField();
    XBayaLabel operationLabel = new XBayaLabel("EPL Statement",
        this.eplStatement);
    XBayaTextField streamTxt = new XBayaTextField();
    streamTxt.setText(streams);
    streamTxt.setEditable(false);

    outputStreamName = new XBayaTextField();
    XBayaLabel outputStreamNameLabel = new XBayaLabel("Output Stream Name",
        this.outputStreamName);

    rootElementName = new XBayaTextField();
    XBayaLabel rootElementNameLabel = new XBayaLabel("Root element",
        this.rootElementName);

    xpaths = new XBayaTextField();
    XBayaLabel xpathsLabel = new XBayaLabel(
        "Comma seperated xpath expressions", this.xpaths);

    properties = new XBayaTextField();
    XBayaLabel propertiesLabel = new XBayaLabel(
        "Comma seperated xpath property name", this.properties);

    types = new XBayaTextField();
    XBayaLabel typesLabel = new XBayaLabel(
        "Comma seperated property Data Type", this.types);

    checkBox = new JCheckBox();

    infoPanel.add(new XBayaLabel("Event Streams", streamTxt));
    infoPanel.add(streamTxt);
    infoPanel.add(operationLabel);
    infoPanel.add(this.eplStatement);
    infoPanel.add(outputStreamNameLabel);
    infoPanel.add(this.outputStreamName);
    infoPanel.add(rootElementNameLabel);
    infoPanel.add(this.rootElementName);
    infoPanel.add(xpathsLabel);
    infoPanel.add(this.xpaths);
    infoPanel.add(propertiesLabel);
    infoPanel.add(this.properties);
    infoPanel.add(typesLabel);
    infoPanel.add(this.types);

    infoPanel
        .add(new XBayaLabel("Hot deploy during composition", checkBox));
    infoPanel.add(checkBox);

    infoPanel.layout(8, 2, 0, 0);

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

                            .setEnabled(false);
                }
            }
        });

        GridPanel infoPanel = new GridPanel();
        infoPanel.add(brokerLabel);
        infoPanel.add(this.brokerTextField);
        infoPanel.add(topicLabel);
        infoPanel.add(this.topicTextField);
        infoPanel.add(dummyLabel);
        infoPanel.add(this.pullCheckBox);
        infoPanel.add(msgBoxLabel);
        infoPanel.add(this.messageBoxTextField);
        infoPanel.layout(4, 2, SwingUtil.WEIGHT_NONE, 1);

        JButton okButton = new JButton("OK");
        okButton.addActionListener(new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                setConfiguration();
View Full Code Here

     
        });
        buttonPanel.add(this.okButton);
       
        GridPanel mainPanel = new GridPanel();
        TitledBorder border = new TitledBorder(new EtchedBorder(),
                "Select a workflow to load");
        mainPanel.getSwingComponent().setBorder(border);
        chkMakePublic = new JCheckBox("Make public");
    mainPanel.add(chkMakePublic);
   
    messageField = new JTextField(engine.getWorkflow().getName());
    messageField.setEditable(true);
    mainPanel.add(messageField);
        mainPanel.layout(2, 1, 0, 0);
       

        this.dialog = new XBayaDialog(this.engine,
                "Export to XRegistry", mainPanel, buttonPanel);
        this.dialog.setDefaultButton(this.okButton);
View Full Code Here

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

    infoPanel.add(this.applicationNameLabel);
    infoPanel.add(this.applicationNameTextField);
    infoPanel.add(this.hostNameLabel);
    infoPanel.add(this.hostNameComboBox);
    infoPanel.add(this.executableLabel);
    infoPanel.add(this.executableTextField);
    infoPanel.add(this.workDirectoryLabel);
    infoPanel.add(this.workDirectoryTextField);
    infoPanel.add(this.tempDirLabel);
    infoPanel.add(this.tempDirTextField);
    infoPanel.add(this.projectNameLabel);
    infoPanel.add(this.projectNameComboBox);
    infoPanel.add(this.jobTypeLabel);
    infoPanel.add(this.jobTypeComboBox);
    infoPanel.add(this.queueLabel);
    infoPanel.add(this.queueTextField);
    infoPanel.add(this.maxWallTimeLabel);
    infoPanel.add(this.maxWallTimeTextField);
    infoPanel.add(this.procsCountLabel);
    infoPanel.add(this.procsCountTextField);
    infoPanel.add(this.appParaFileLabel);
    infoPanel.add(this.appParaFileTextField);
    infoPanel.add(this.minMemoryLabel);
    infoPanel.add(this.minMemoryTextField);
    infoPanel.add(this.hostCountLabel);
    infoPanel.add(this.hostCountTextField);
    infoPanel.add(this.rslParaNameLabel);
    infoPanel.add(this.rslParamNameTextField);
    infoPanel.add(this.rslParamValueLabel);
    infoPanel.add(this.rslParamValueTextField);
    infoPanel.add(this.isPublicLabel);
    infoPanel.add(this.isPublicCheckBox);

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

    JPanel buttonPanel = new JPanel();
    this.addApplicationButton = new JButton();
    this.addApplicationButton.setText("Add Application");
    this.addApplicationButton.addActionListener(new java.awt.event.ActionListener() {
View Full Code Here

    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

    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

            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

TOP

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

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.