use of org.apache.airavata.xbaya.ui.widgets.GridPanel in project airavata by apache.
the class ConstantConfigurationDialog method initGui.
/**
* Initializes the GUI.
*/
private void initGui() {
this.nameTextField = new XBayaTextField();
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);
// for string
this.valueTextField = new XBayaTextField();
// for XML
this.valueTextArea = new XBayaTextArea();
// temporaly set text field.
this.valueLabel = new XBayaLabel("", this.valueTextField);
this.gridPanel = new GridPanel();
this.gridPanel.add(nameLabel);
this.gridPanel.add(this.nameTextField);
this.gridPanel.add(idLabel);
this.gridPanel.add(this.idTextField);
this.gridPanel.add(typeLabel);
this.gridPanel.add(this.typeTextField);
this.gridPanel.add(this.valueLabel);
this.gridPanel.add(this.valueTextField);
this.gridPanel.layout(4, 2, 3, 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, "Constant Configuration", this.gridPanel, buttonPanel);
this.dialog.setDefaultButton(okButton);
}
use of org.apache.airavata.xbaya.ui.widgets.GridPanel in project airavata by apache.
the class DifferedInputConfigurationDialog method initGui.
/**
* Initializes the GUI.
*/
private void initGui() {
this.nameTextField = new XBayaTextField();
XBayaLabel nameLabel = new XBayaLabel("Name", this.nameTextField);
this.descriptionTextArea = new XBayaTextArea();
XBayaLabel descriptionLabel = new XBayaLabel("Description", this.descriptionTextArea);
// for string
this.valueTextField = new XBayaTextField();
// for XML
this.valueTextArea = new XBayaTextArea();
// temporaly set text field.
this.valueLabel = new XBayaLabel("", this.valueTextField);
this.metadataTextArea = new XBayaTextArea();
XBayaLabel metadataLabel = new XBayaLabel("Metadata", this.metadataTextArea);
this.gridPanel = new GridPanel();
this.gridPanel.add(nameLabel);
this.gridPanel.add(this.nameTextField);
this.gridPanel.add(descriptionLabel);
this.gridPanel.add(this.descriptionTextArea);
this.gridPanel.add(this.valueLabel);
this.gridPanel.add(this.valueTextField);
this.gridPanel.add(metadataLabel);
this.gridPanel.add(this.metadataTextArea);
this.gridPanel.layout(4, 2, 3, 1);
JButton okButton = new JButton("OK");
okButton.addActionListener(new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
setInput();
}
});
JButton cancelButton = new JButton("Cancel");
cancelButton.addActionListener(new AbstractAction() {
@Override
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", this.gridPanel, buttonPanel);
this.dialog.setDefaultButton(okButton);
}
use of org.apache.airavata.xbaya.ui.widgets.GridPanel in project airavata by apache.
the class DoWhileConfigrationDialog method initGui.
/**
* Initializes the GUI.
*/
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);
SpinnerNumberModel model = new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 1);
this.numPorts = new JSpinner(model);
XBayaLabel numPortLabel = new XBayaLabel("Number of Inputs", this.numPorts);
this.xpathTextField = new XBayaTextField();
XBayaLabel xpathLabel = new XBayaLabel("XPath", this.xpathTextField);
GridPanel gridPanel = new GridPanel();
gridPanel.add(nameLabel);
gridPanel.add(this.nameTextField);
gridPanel.add(idLabel);
gridPanel.add(this.idTextField);
gridPanel.add(numPortLabel);
gridPanel.add(this.numPorts);
gridPanel.add(xpathLabel);
gridPanel.add(this.xpathTextField);
gridPanel.layout(4, 2, GridPanel.WEIGHT_NONE, 1);
JButton okButton = new JButton("OK");
okButton.addActionListener(new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
setInput();
}
});
JButton cancelButton = new JButton("Cancel");
cancelButton.addActionListener(new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
hide();
}
});
JPanel buttonPanel = new JPanel();
buttonPanel.add(okButton);
buttonPanel.add(cancelButton);
this.dialog = new XBayaDialog(xbayaGUI, "While Configuration", gridPanel, buttonPanel);
this.dialog.setDefaultButton(okButton);
}
use of org.apache.airavata.xbaya.ui.widgets.GridPanel in project airavata by apache.
the class EndBlockConfigurationDialog method initGui.
/**
* Initializes the GUI.
*/
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);
SpinnerNumberModel model = new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 1);
this.numPorts = new JSpinner(model);
XBayaLabel numPortLabel = new XBayaLabel("Number of Parameters", this.numPorts);
GridPanel gridPanel = new GridPanel();
gridPanel.add(nameLabel);
gridPanel.add(this.nameTextField);
gridPanel.add(idLabel);
gridPanel.add(this.idTextField);
gridPanel.add(numPortLabel);
gridPanel.add(this.numPorts);
gridPanel.layout(3, 2, GridPanel.WEIGHT_NONE, 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, "Endif Configuration", gridPanel, buttonPanel);
this.dialog.setDefaultButton(okButton);
}
use of org.apache.airavata.xbaya.ui.widgets.GridPanel in project airavata by apache.
the class EndifConfigurationDialog method initGui.
/**
* Initializes the GUI.
*/
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);
SpinnerNumberModel model = new SpinnerNumberModel(1, 1, Integer.MAX_VALUE, 1);
this.numPorts = new JSpinner(model);
XBayaLabel numPortLabel = new XBayaLabel("Number of Parameters", this.numPorts);
GridPanel gridPanel = new GridPanel();
gridPanel.add(nameLabel);
gridPanel.add(this.nameTextField);
gridPanel.add(idLabel);
gridPanel.add(this.idTextField);
gridPanel.add(numPortLabel);
gridPanel.add(this.numPorts);
gridPanel.layout(3, 2, GridPanel.WEIGHT_NONE, 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, "Endif Configuration", gridPanel, buttonPanel);
this.dialog.setDefaultButton(okButton);
}
Aggregations