use of org.apache.airavata.xbaya.ui.views.ParameterPropertyPanel in project airavata by apache.
the class ParameterPropertyWindow method initGui.
private void initGui() {
this.inputPanel = new ParameterPropertyPanel("Inputs");
this.outputPanel = new ParameterPropertyPanel("Outputs");
JPanel mainPanel = new JPanel();
// To have the same size.
mainPanel.setLayout(new GridLayout(1, 2));
mainPanel.add(this.inputPanel.getSwingComponent());
mainPanel.add(this.outputPanel.getSwingComponent());
JPanel buttonPanel = new JPanel();
this.okButton = new JButton("OK");
this.okButton.setDefaultCapable(true);
this.okButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
ok();
}
});
buttonPanel.add(this.okButton);
JButton cancelButton = new JButton("Cancel");
cancelButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
hide();
}
});
buttonPanel.add(cancelButton);
this.dialog = new XBayaDialog(this.engine.getGUI(), "Workflow Paremeter Properties", mainPanel, buttonPanel);
this.dialog.setDefaultButton(this.okButton);
}
Aggregations