use of org.apache.airavata.xbaya.ui.widgets.XBayaLabel in project airavata by apache.
the class MemoConfigurationDialog method initGui.
/**
* Initializes the GUI.
*/
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();
}
});
JButton cancelButton = new JButton("Cancel");
cancelButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
hide();
}
});
JPanel buttonPanel = new JPanel();
buttonPanel.add(okButton);
buttonPanel.add(cancelButton);
this.dialog = new XBayaDialog(this.engine.getGUI(), "Memo", gridPanel, buttonPanel);
this.dialog.setDefaultButton(okButton);
}
use of org.apache.airavata.xbaya.ui.widgets.XBayaLabel in project airavata by apache.
the class OutputConfigurationDialog method initGui.
/**
* Initializes the GUI.
*/
private void initGui() {
this.nameTextField = new XBayaTextField();
XBayaLabel nameLabel = new XBayaLabel("Name", this.nameTextField);
this.dataTypeField = new XBayaTextField(this.node.getParameterType().toString());
this.dataTypeField.setEditable(false);
this.dataTypeLabel = new XBayaLabel("Type", this.dataTypeField);
this.descriptionTextArea = new XBayaTextArea();
XBayaLabel descriptionLabel = new XBayaLabel("Description", this.descriptionTextArea);
GridPanel mainPanel = new GridPanel();
mainPanel.add(nameLabel);
mainPanel.add(this.nameTextField);
mainPanel.add(this.dataTypeLabel);
mainPanel.add(this.dataTypeField);
mainPanel.add(descriptionLabel);
mainPanel.add(this.descriptionTextArea);
mainPanel.layout(3, 2, 2, 1);
JButton okButton = new JButton("OK");
okButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
setInput();
}
});
JButton cancelButton = new JButton("Cancel");
cancelButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
hide();
}
});
JPanel buttonPanel = new JPanel();
buttonPanel.add(okButton);
buttonPanel.add(cancelButton);
this.dialog = new XBayaDialog(this.xbayaGUI, "Input Parameter Configuration", mainPanel, buttonPanel);
this.dialog.setDefaultButton(okButton);
}
use of org.apache.airavata.xbaya.ui.widgets.XBayaLabel in project airavata by apache.
the class StreamSourceConfigurationDialog method initGui.
/**
* 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);
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);
JButton okButton = new JButton("OK");
okButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
setInput();
}
});
JButton cancelButton = new JButton("Cancel");
cancelButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
hide();
}
});
JPanel buttonPanel = new JPanel();
buttonPanel.add(okButton);
buttonPanel.add(cancelButton);
this.dialog = new XBayaDialog(this.xbayaGUI, "Configure Streaming Data source", this.gridPanel, buttonPanel);
this.dialog.setDefaultButton(okButton);
}
use of org.apache.airavata.xbaya.ui.widgets.XBayaLabel in project airavata by apache.
the class ServiceInteractionWindow method initGui.
/**
*/
private void initGui() {
GridPanel mainPanel = new GridPanel();
MonitorPanel monitorPanel = new MonitorPanel(this.xbayaGUI, this.nodeID, monitor);
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)
*/
public void actionPerformed(ActionEvent e) {
send();
}
});
JButton cancelButton = new JButton("Done");
cancelButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
hide();
}
});
JPanel buttonPanel = new JPanel();
buttonPanel.add(sendButton);
buttonPanel.add(cancelButton);
this.dialog = new XBayaDialog(this.xbayaGUI, "Deploy workflow to ODE and Registry", mainPanel, buttonPanel);
this.dialog.setDefaultButton(sendButton);
}
use of org.apache.airavata.xbaya.ui.widgets.XBayaLabel in project airavata by apache.
the class WSNodeWindow method initGUI.
private void initGUI() {
this.nameTextField = new XBayaTextField();
this.nameTextField.setEditable(false);
XBayaLabel nameLabel = new XBayaLabel("Name", this.nameTextField);
this.idTextField = new XBayaTextField();
this.idTextField.setEditable(false);
XBayaLabel idLabel = new XBayaLabel("ID", this.idTextField);
this.typeTextField = new XBayaTextField();
this.typeTextField.setEditable(false);
XBayaLabel typeLabel = new XBayaLabel("Type", this.typeTextField);
this.wsdlTextArea = new XBayaTextArea();
this.wsdlTextArea.setEditable(false);
XBayaLabel wsdlLabel = new XBayaLabel("WSDL", this.wsdlTextArea);
GridPanel infoPanel = new GridPanel();
infoPanel.add(nameLabel);
infoPanel.add(this.nameTextField);
infoPanel.add(idLabel);
infoPanel.add(this.idTextField);
infoPanel.add(typeLabel);
infoPanel.add(this.typeTextField);
infoPanel.add(wsdlLabel);
infoPanel.add(this.wsdlTextArea);
infoPanel.layout(4, 2, 3, 1);
JButton okButton = new JButton("OK");
okButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
hide();
}
});
JPanel buttonPanel = new JPanel();
buttonPanel.add(okButton);
this.dialog = new XBayaDialog(this.engine.getGUI(), this.node.getName(), infoPanel, buttonPanel);
this.dialog.setDefaultButton(okButton);
}
Aggregations