Package edu.indiana.extreme.xbaya.gui

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


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

    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());
    radioPanel.add(this.existKeyButton);
    radioPanel.add(this.keyComboBox);
    radioPanel.layout(2, 2, 0, 1);

    XBayaLabel keyLabel = new XBayaLabel("Key Pair", radioPanel);

    GridPanel mainPanel = new GridPanel(true);
    mainPanel.add(amiLabel);
    mainPanel.add(this.amiTextField);
    mainPanel.add(nInstanceLabel);
View Full Code Here


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

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

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

  private void initGUI() {
    BasicTypeMapping.reset();

    this.javaCodeTxtArea = new XBayaTextArea();
    XBayaLabel operationLabel = new XBayaLabel("Operation",
        this.javaCodeTxtArea);

    GridPanel infoPanel = new GridPanel();
    infoPanel.add(operationLabel);
    infoPanel.add(this.javaCodeTxtArea);
    checkBox = new JCheckBox("Export as webservice");
    infoPanel.add(new XBayaLabel("", checkBox));
   
    infoPanel.add(checkBox);
    infoPanel.layout(2, 2, 0, 0);

    JButton okButton = new JButton("OK");
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.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);
        infoPanel.add(xRegistryLabel);
View Full Code Here

    XBayaTextField streamTxt = new XBayaTextField();
    streamTxt.setText(streams.toString());
    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);

    checkBox = new JCheckBox();

    infoPanel.add(new XBayaLabel("Event Streams", streamTxt));
    infoPanel.add(streamTxt);
    infoPanel.add(outputStreamNameLabel);
    infoPanel.add(this.outputStreamName);
    infoPanel.add(rootElementNameLabel);
    infoPanel.add(this.rootElementName);

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

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

    JButton okButton = new JButton("OK");
View Full Code Here

     * Initializes the GUI.
     */
    private void initGUI() {

        this.urlTextField = new XBayaTextField();
        XBayaLabel urlLabel = new XBayaLabel("MyLead Agent URL",
                this.urlTextField);

        this.userIDTextField = new XBayaTextField();
        XBayaLabel userIDLabel = new XBayaLabel("User DN", this.userIDTextField);

        this.projectTextField = new XBayaTextField();
        XBayaLabel projectIdLabel = new XBayaLabel("Project ID",
                this.projectTextField);

        GridPanel infoPanel = new GridPanel();
        infoPanel.add(urlLabel);
        infoPanel.add(this.urlTextField);
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.inputFilepathField = new XBayaTextField();
    this.inputFilepathField.setText("/Users/fanye/Documents/fileList");
    XBayaLabel filePathLabel = new XBayaLabel("Input File",
        this.inputFilepathField);

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

  /**
   * Initializes the GUI
   */
  private void initGUI() {
    this.odeUriField = new XBayaTextField();
    XBayaLabel uriLabel = new XBayaLabel("ODE URL", this.odeUriField);

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

    this.proxyTextField = new XBayaTextField();
    XBayaLabel proxyLable = new XBayaLabel("ODE proxy URL",
        this.proxyTextField);

    this.makePublicChkBox = new JCheckBox();

    GridPanel mainPanel = new GridPanel();
View Full Code Here

TOP

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

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.