|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.MouseAdapter
org.knime.base.node.preproc.groupby.dialogutil.AggregationColumnPanel
public class AggregationColumnPanel
This class creates the aggregation column panel that allows the user to define the aggregation columns and their aggregation method.
Field Summary | |
---|---|
static Dimension |
PANEL_DIMENSION
The initial dimension of this panel. |
Constructor Summary | |
---|---|
AggregationColumnPanel()
Constructor for class AggregationColumnPanel. |
Method Summary | |
---|---|
protected void |
changeAggregationMethod(String methodLabel)
Changes the aggregation method of all selected rows to the method with the given label. |
void |
excludeColsChange(Collection<String> excludeCols)
|
protected int |
getAggregationColumnCount()
|
JPanel |
getComponentPanel()
|
void |
initialize(DataTableSpec spec,
List<ColumnAggregator> colAggrs)
Initializes the panel. |
void |
loadSettingsFrom(NodeSettingsRO settings,
DataTableSpec spec)
|
protected void |
onAddAll()
Adds all columns to the aggregation column table. |
protected void |
onAddIt()
Adds all selected columns to the aggregation column table. |
protected boolean |
onlyNumericalSelected()
|
protected void |
onRemAll()
Removes all columns from the aggregation column table. |
protected void |
onRemIt()
Removes the selected columns from the aggregation column table. |
protected boolean |
rowsSelected()
|
void |
saveSettingsTo(NodeSettingsWO settings)
|
protected void |
selectAllNoneNumericalRows()
Selects all none numerical rows. |
protected void |
selectAllNumericalRows()
Selects all numerical rows. |
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Dimension PANEL_DIMENSION
Constructor Detail |
---|
public AggregationColumnPanel()
Method Detail |
---|
protected void onRemAll()
protected void onRemIt()
protected void onAddAll()
protected void onAddIt()
protected void changeAggregationMethod(String methodLabel)
methodLabel
- the label of the aggregation methodprotected void selectAllNumericalRows()
protected void selectAllNoneNumericalRows()
protected boolean rowsSelected()
true
if at least one row is selectedprotected boolean onlyNumericalSelected()
true
if only numerical columns are selectedprotected int getAggregationColumnCount()
public JPanel getComponentPanel()
public void excludeColsChange(Collection<String> excludeCols)
excludeCols
- the name of all columns that should be excluded from
the aggregation panelpublic void saveSettingsTo(NodeSettingsWO settings)
settings
- the settings object to write topublic void loadSettingsFrom(NodeSettingsRO settings, DataTableSpec spec) throws InvalidSettingsException
settings
- the settings to read fromspec
- initializes the component
InvalidSettingsException
- if the settings are invalidpublic void initialize(DataTableSpec spec, List<ColumnAggregator> colAggrs)
spec
- the DataTableSpec
of the input tablecolAggrs
- the List
of ColumnAggregator
s that are
initially used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |