use of org.apache.airavata.xbaya.ui.widgets.XBayaList in project airavata by apache.
the class ParameterPropertyPanel method initGUI.
private void initGUI() {
this.parameterList = new XBayaList();
this.parameterList.addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent event) {
selectionChanged();
}
});
this.upButton = new JButton("UP");
this.upButton.setEnabled(false);
this.upButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
up();
}
});
this.downButton = new JButton("DOWN");
this.downButton.setEnabled(false);
this.downButton.addActionListener(new AbstractAction() {
public void actionPerformed(ActionEvent e) {
down();
}
});
GridPanel buttonPanel = new GridPanel();
buttonPanel.add(this.upButton);
buttonPanel.add(this.downButton);
buttonPanel.layout(2, 1, GridPanel.WEIGHT_NONE, 0);
GridPanel reorderingPanel = new GridPanel();
reorderingPanel.add(this.parameterList);
reorderingPanel.add(buttonPanel);
reorderingPanel.layout(1, 2, 0, 0);
this.metadataTextArea = new XBayaTextArea();
JLabel metadataLabel = new JLabel("Metadata");
metadataLabel.setLabelFor(this.metadataTextArea.getSwingComponent());
this.panel = new GridPanel();
this.panel.add(reorderingPanel);
this.panel.add(metadataLabel);
this.panel.add(this.metadataTextArea);
this.panel.layout(3, 1, 2, 0);
TitledBorder border = BorderFactory.createTitledBorder(this.title);
this.panel.getSwingComponent().setBorder(border);
}
Aggregations