Examples of XBayaTextField


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

      final int val = i;
       new Thread() {
                @Override
                public synchronized void run() {
                  XBaya xBaya = new XBaya(args);
              XBayaTextField topic = new XBayaTextField();
              topic.setText("topic"+val);
              //Iterator<WSComponentPort> iterator = xBaya.getEngine().getWorkflow().getInputs().iterator();
              List<XBayaTextField> parameterTextFields = new LinkedList<XBayaTextField>();
              xBaya.getEngine().getWorkflow().getWorkflowWSDL();
              int count = 1;
              for(int j = 0; j<2; ++j) {
                XBayaTextField txt = new XBayaTextField();
                txt.setText(""+count);
                parameterTextFields.add(txt);
               
              }
              JythonRunnerWindow window = new JythonRunnerWindow(xBaya.getEngine(), topic, parameterTextFields);
              window.execute();
View Full Code Here

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

    /**
     * Initializes the GUI.
     */
    private void initGui() {
        this.wsdlTextField = new XBayaTextField();
        this.wsdlLabel = new XBayaLabel("The EPR of the Stream Source", this.wsdlTextField);

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



View Full Code Here

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

      }

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

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

            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

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

        continue;
      }

      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

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

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

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

    final List<InputNode> inputNodes = GraphUtil.getInputNodes(this.workflow.getGraph());
    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 xregistryUrl = this.xRegistryTextField.getText();
    if (null != xregistryUrl && !"".equals(xregistryUrl)) {
View Full Code Here

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

  }

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

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

        hide();
    }

    private void initGui() {

        this.brokerTextField = new XBayaTextField();
        XBayaLabel brokerLabel = new XBayaLabel("Broker URL",
                this.brokerTextField);

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

        this.pullCheckBox = new JCheckBox("Pull Mode");
        JLabel dummyLabel = new JLabel();

        this.messageBoxTextField = new XBayaTextField();
        XBayaLabel msgBoxLabel = new XBayaLabel("Message Box URL",
                this.messageBoxTextField);

        this.messageBoxTextField.setEnabled(false);
        this.pullCheckBox.addItemListener(new ItemListener() {
View Full Code Here

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

  private void initGui() {

    /*
     * Name
     */
    this.nameTextField = new XBayaTextField();
    XBayaLabel nameLabel = new XBayaLabel("Name", this.nameTextField);
    this.nameTextField.setEditable(false);

    /*
     * Radio button
     */
    this.amiButton = new JRadioButton("Start new instance");
    this.amiButton.setSelected(true);
    this.amiButton.addActionListener(new ActionListener() {
      @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);
   
    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);
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.