Search in sources :

Example 1 with DialogComponentColumnFilter2

use of org.knime.core.node.defaultnodesettings.DialogComponentColumnFilter2 in project knime-core by knime.

the class NumericOutliersNodeDialogPane method createOutlierSelectionDialog.

/**
 * Creates the outlier selection dialog.
 *
 * @return the outlier selection dialog
 */
private JPanel createOutlierSelectionDialog() {
    final JPanel panel = new JPanel(new GridBagLayout());
    final GridBagConstraints gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.LINE_START;
    gbc.gridx = 0;
    gbc.gridy = 0;
    gbc.weightx = 1.0;
    gbc.weighty = 1.0;
    gbc.fill = GridBagConstraints.BOTH;
    // add the outlier selection dialog
    m_outlierDialog = new DialogComponentColumnFilter2(NumericOutliersNodeModel.createOutlierFilterModel(), 0);
    panel.add(m_outlierDialog.getComponentPanel(), gbc);
    return panel;
}
Also used : JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) GridBagLayout(java.awt.GridBagLayout) DialogComponentColumnFilter2(org.knime.core.node.defaultnodesettings.DialogComponentColumnFilter2)

Example 2 with DialogComponentColumnFilter2

use of org.knime.core.node.defaultnodesettings.DialogComponentColumnFilter2 in project knime-core by knime.

the class NumericOutliersNodeDialogPane method getGroupSelectionPanel.

/**
 * Creates the groups selection panel.
 *
 * @return the group selection dialog
 */
private JPanel getGroupSelectionPanel() {
    final JPanel panel = new JPanel(new GridBagLayout());
    final GridBagConstraints gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.LINE_START;
    gbc.gridx = 0;
    gbc.gridy = 0;
    gbc.weightx = 1.0;
    // add panel border
    panel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), GROUP_SELECTION_BORDER_TITLE));
    // add apply to groups selection dialog
    m_useGroupsDialog = new DialogComponentBoolean(NumericOutliersNodeModel.createUseGroupsModel(), APPLY_TO_GROUPS);
    panel.add(m_useGroupsDialog.getComponentPanel(), gbc);
    gbc.insets = INSET;
    ++gbc.gridy;
    gbc.weighty = 1.0;
    gbc.fill = GridBagConstraints.BOTH;
    m_groupsDialog = new DialogComponentColumnFilter2(NumericOutliersNodeModel.createGroupFilterModel(), 0);
    panel.add(m_groupsDialog.getComponentPanel(), gbc);
    return panel;
}
Also used : JPanel(javax.swing.JPanel) GridBagConstraints(java.awt.GridBagConstraints) GridBagLayout(java.awt.GridBagLayout) DialogComponentBoolean(org.knime.core.node.defaultnodesettings.DialogComponentBoolean) DialogComponentColumnFilter2(org.knime.core.node.defaultnodesettings.DialogComponentColumnFilter2)

Aggregations

GridBagConstraints (java.awt.GridBagConstraints)2 GridBagLayout (java.awt.GridBagLayout)2 JPanel (javax.swing.JPanel)2 DialogComponentColumnFilter2 (org.knime.core.node.defaultnodesettings.DialogComponentColumnFilter2)2 DialogComponentBoolean (org.knime.core.node.defaultnodesettings.DialogComponentBoolean)1