|
||||||||||
| 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.data.aggregation.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 methodId)
Changes the aggregation method of all selected rows to the method with the given label. |
void |
excludeColsChange(Collection<String> excludeCols)
|
protected int |
getAggregationColumnCount()
|
Collection<Class<? extends DataValue>> |
getAllPresentTypes()
|
JPanel |
getComponentPanel()
|
protected List<Map.Entry<String,List<AggregationMethod>>> |
getMethods4SelectedItems()
|
void |
initialize(DataTableSpec spec,
List<ColumnAggregator> colAggrs)
Initializes the panel. |
void |
loadSettingsFrom(NodeSettingsRO settings,
DataTableSpec spec)
|
(package private) int |
noOfCompatibleRows(Class<? extends DataValue> type)
Returns the number of rows that are compatible to the given type. |
protected void |
onAddAll()
Adds all columns to the aggregation column table. |
protected void |
onAddIt()
Adds all selected columns to the aggregation column table. |
protected void |
onRemAll()
Removes all columns from the aggregation column table. |
protected void |
onRemIt()
Removes the selected columns from the aggregation column table. |
(package private) boolean |
rowsSelected()
|
void |
saveSettingsTo(NodeSettingsWO settings)
|
protected void |
selectAllRows()
Selects all rows. |
protected void |
selectCompatibleRows(Class<? extends DataValue> type)
Selects all rows that are compatible with the given type. |
protected void |
toggleMissingCellOption()
Changes the include missing cell option for the selected 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 |
|---|
public Collection<Class<? extends DataValue>> getAllPresentTypes()
protected void onRemAll()
protected void onRemIt()
protected void onAddAll()
protected void onAddIt()
protected void changeAggregationMethod(String methodId)
methodId - the label of the aggregation methodprotected void toggleMissingCellOption()
protected void selectAllRows()
protected void selectCompatibleRows(Class<? extends DataValue> type)
type - the type to check for compatibilityint noOfCompatibleRows(Class<? extends DataValue> type)
type - the type to check for
boolean rowsSelected()
true if at least one row is 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 to
public void loadSettingsFrom(NodeSettingsRO settings,
DataTableSpec spec)
throws InvalidSettingsException
settings - the settings to read fromspec - initializes the component
InvalidSettingsException - if the settings are invalid
public void initialize(DataTableSpec spec,
List<ColumnAggregator> colAggrs)
spec - the DataTableSpec of the input tablecolAggrs - the List of ColumnAggregators that are
initially usedprotected List<Map.Entry<String,List<AggregationMethod>>> getMethods4SelectedItems()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||