Package org.apache.airavata.xbaya.gui

Examples of org.apache.airavata.xbaya.gui.XBayaTextField


        if (isNewHost()) {
      setTitle("New Host Description");
    }else{
      setTitle("Update Host Description: "+getOriginalHostDescription().getType().getHostName());
    }
    this.hostIdTextField = new XBayaTextField();
        this.hostAddressTextField = new XBayaTextField();
        this.globusGateKeeperTextField = new XBayaTextField();
        this.GridFTPTextField = new XBayaTextField();

        XBayaLabel hostIdLabel = new XBayaLabel("Host ID", this.hostIdTextField);
        XBayaLabel hostAddressLabel = new XBayaLabel("Host Address", this.hostAddressTextField);
        globusGateKeeperLabel = new XBayaLabel("Globus Gate Keeper Endpoint", this.globusGateKeeperTextField);
        gridFTPLabel = new XBayaLabel("Grid FTP Endpoint", this.GridFTPTextField);
View Full Code Here


            }
        });
           
       
      GridPanel panel = new GridPanel();
    txtProjectAccountNumber = new XBayaTextField();
    txtProjectAccountDescription = new XBayaTextField();

        txtStaticWorkingDirectory = new XBayaTextField();
        txtQueueType = new XBayaTextField();
        txtMaxWallTime = new XBayaTextField();
        txtMinMemory = new XBayaTextField();
        txtMaxMemory = new XBayaTextField();
        txtCpuCount = new XBayaTextField();
        txtProcessorsPerNode = new XBayaTextField();

        cmbJobType = new XBayaComboBox(new DefaultComboBoxModel(getJobTypesAsStrings()));
        cmbJobType.setEditable(false);

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();
        XBayaLabel fileLocationLabel = new XBayaLabel("File Location", this.fileLocationField);
        JLabel dummyLabel = new JLabel("");
        this.fileChooserButton = new JButton("Choose File...");
        this.fileChooserButton.addActionListener(new AbstractAction() {
            @Override
View Full Code Here

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

    private void hide() {
        this.dialog.hide();
    }

    private void init() {
        this.timeTextField = new XBayaTextField();
        this.timeTextField.setEditable(false);
        XBayaLabel timeLabel = new XBayaLabel(MonitorEventData.Column.TIME.getName(), this.timeTextField);

        this.idTextField = new XBayaTextField();
        this.idTextField.setEditable(false);
        XBayaLabel idLabel = new XBayaLabel(MonitorEventData.Column.ID.getName(), this.idTextField);

        this.statusTextField = new XBayaTextField();
        this.statusTextField.setEditable(false);
        XBayaLabel statusLabel = new XBayaLabel(MonitorEventData.Column.STATUS.getName(), this.statusTextField);

        this.messageTextArea = new XBayaTextArea();
        this.messageTextArea.setSize(500, 500);
View Full Code Here

        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() {
            public void itemStateChanged(ItemEvent event) {
View Full Code Here

            List<XBayaTextField> parameterTextFields) {
        this.engine = engine;
        this.workflow = this.engine.getWorkflow();
        this.topicTextField = topicTextField;
        this.parameterTextFields = parameterTextFields;
        this.gfacTextField = new XBayaTextField();
        this.script = new JythonScript(this.workflow, this.engine.getConfiguration());

        MonitorConfiguration notifConfig = this.engine.getMonitor().getConfiguration();
        if (notifConfig.getBrokerURL() == null) {
            this.engine.getErrorWindow().error(ErrorMessages.BROKER_URL_NOT_SET_ERROR);
View Full Code Here

        for (InputNode node : inputNodes) {
            String id = node.getID();
            QName parameterType = node.getParameterType();
            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

    }

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

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

        this.gfacTextField = new XBayaTextField();
        XBayaLabel gfacLabel = new XBayaLabel("GFac URL", this.gfacTextField);

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

        // TODO error check for user inputs

        List<InputNode> inputNodes = GraphUtil.getInputNodes(this.workflow.getGraph());
        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();
            arguments.add("-" + id);
            arguments.add(value);
        }

        XBayaConfiguration config = this.engine.getConfiguration();
View Full Code Here

TOP

Related Classes of org.apache.airavata.xbaya.gui.XBayaTextField

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.