in taverna-report-view/src/main/java/org/apache/taverna/workbench/report/config/ui/ReportManagerConfigurationPanel.java [79:186]
public ReportManagerConfigurationPanel(ReportManagerConfiguration reportManagerConfiguration) {
super();
configuration = reportManagerConfiguration;
this.setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
// Title describing what kind of settings we are configuring here
JTextArea descriptionText = new JTextArea(DESCRIPTION);
descriptionText.setLineWrap(true);
descriptionText.setWrapStyleWord(true);
descriptionText.setEditable(false);
descriptionText.setFocusable(false);
descriptionText.setBorder(new EmptyBorder(10, 10, 10, 10));
gbc.anchor = GridBagConstraints.WEST;
gbc.gridx = 0;
gbc.gridy = 0;
gbc.gridwidth = 2;
gbc.weightx = 1.0;
gbc.weighty = 0.0;
gbc.fill = GridBagConstraints.HORIZONTAL;
this.add(descriptionText, gbc);
openCombo = new JComboBox(new Object[] {NO_CHECKS, QUICK_CHECKS, FULL_CHECKS});
gbc.gridx = 0;
gbc.gridy++;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.NONE;
gbc.insets = new Insets(10,0,0,0);
this.add(new JLabel(CHECKS_ON_OPEN), gbc);
gbc.gridx = 1;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
this.add(openCombo, gbc);
editCombo = new JComboBox(new Object[] {NO_CHECKS, QUICK_CHECKS});
gbc.gridx = 0;
gbc.gridy++;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.NONE;
gbc.insets = new Insets(10,0,0,0);
this.add(new JLabel(CHECKS_ON_EDIT), gbc);
gbc.gridx = 1;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
this.add(editCombo, gbc);
runCombo = new JComboBox(new Object[] {QUICK_CHECKS, FULL_CHECKS});
gbc.gridx = 0;
gbc.gridy++;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.NONE;
gbc.insets = new Insets(10,0,0,0);
this.add(new JLabel(CHECKS_BEFORE_RUN), gbc);
gbc.gridx = 1;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
this.add(runCombo, gbc);
timeoutField = new JTextField(TEXTFIELD_SIZE);
gbc.gridx = 0;
gbc.gridy++;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.NONE;
gbc.insets = new Insets(10,0,0,0);
this.add(new JLabel(DEFAULT_TIMEOUT_STRING), gbc);
gbc.gridx = 1;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
this.add(timeoutField, gbc);
expirationField = new JTextField(TEXTFIELD_SIZE);
gbc.gridx = 0;
gbc.gridy++;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.NONE;
gbc.insets = new Insets(10,0,0,0);
this.add(new JLabel(REPORT_EXPIRATION_STRING), gbc);
gbc.gridx = 1;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
this.add(expirationField, gbc);
queryBeforeRunCombo = new JComboBox(new Object[] {NEVER_ASK, ASK_ON_ERRORS, ASK_ON_ERRORS_OR_WARNINGS});
gbc.gridx = 0;
gbc.gridy++;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.NONE;
gbc.insets = new Insets(10,0,0,0);
this.add(new JLabel(QUERY_USER_BEFORE_RUN), gbc);
gbc.gridx = 1;
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
this.add(queryBeforeRunCombo, gbc);
// Add buttons panel
gbc.gridx = 0;
gbc.gridy++;
gbc.weightx = 1;
gbc.weighty = 1;
gbc.gridwidth = 2;
gbc.fill = GridBagConstraints.BOTH;
gbc.anchor = GridBagConstraints.SOUTH;
gbc.insets = new Insets(10, 0, 0, 0);
this.add(createButtonPanel(), gbc);
setFields();
}