|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
org.knime.base.node.preproc.groupby.dialogutil.AggregationColumnTableModel
public class AggregationColumnTableModel
This DefaultTableModel
holds all aggregation columns and their
aggregation method.
Field Summary |
---|
Fields inherited from class javax.swing.table.DefaultTableModel |
---|
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
AggregationColumnTableModel()
|
Method Summary | |
---|---|
protected void |
addColumn(DataColumnSpec... specs)
|
protected List<ColumnAggregator> |
getColumnAggregators()
|
Class<?> |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
String |
getColumnName(int columnIdx)
|
protected Collection<Integer> |
getNoneNumericalRowIdxs()
|
protected Collection<Integer> |
getNumericalRowIdxs()
|
int |
getRowCount()
|
Object |
getValueAt(int row,
int columnIndex)
|
protected void |
initialize(List<ColumnAggregator> colAggrs)
Initializes the column aggregator table with the given ColumnAggregator s. |
boolean |
isCellEditable(int row,
int columnIdx)
|
protected boolean |
isNumerical(int row)
|
protected boolean |
onlyNumerical(int[] rows2check)
|
protected void |
removeAll()
Removes all aggregation column. |
protected void |
removeColumn(int... idxs)
|
protected void |
removeColumns(Collection<String> colNames)
|
protected void |
setAggregationMethod(int[] selectedRows,
AggregationMethod method)
|
void |
setValueAt(Object aValue,
int row,
int columnIdx)
|
Methods inherited from class javax.swing.table.DefaultTableModel |
---|
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AggregationColumnTableModel()
Method Detail |
---|
protected void initialize(List<ColumnAggregator> colAggrs)
ColumnAggregator
s.
colAggrs
- the List
of ColumnAggregator
sprotected void addColumn(DataColumnSpec... specs)
specs
- the DataColumnSpec
s of the columns to addprotected void removeColumn(int... idxs)
idxs
- the indices of the columns to removeprotected void removeColumns(Collection<String> colNames)
colNames
- the names of the columns to removeprotected void removeAll()
protected void setAggregationMethod(int[] selectedRows, AggregationMethod method)
selectedRows
- the index of the rows to change the aggregation
methodmethod
- the aggregation method to usepublic String getColumnName(int columnIdx)
getColumnName
in interface TableModel
getColumnName
in class DefaultTableModel
protected boolean onlyNumerical(int[] rows2check)
rows2check
- the index of the rows to check
true
if all rows with the given index are numericalprotected Collection<Integer> getNumericalRowIdxs()
protected Collection<Integer> getNoneNumericalRowIdxs()
protected boolean isNumerical(int row)
row
- the index of the row to check
true
if the row contains a numerical columnpublic void setValueAt(Object aValue, int row, int columnIdx)
setValueAt
in interface TableModel
setValueAt
in class DefaultTableModel
protected List<ColumnAggregator> getColumnAggregators()
ColumnAggregator
List
public boolean isCellEditable(int row, int columnIdx)
isCellEditable
in interface TableModel
isCellEditable
in class DefaultTableModel
public int getRowCount()
getRowCount
in interface TableModel
getRowCount
in class DefaultTableModel
public int getColumnCount()
getColumnCount
in interface TableModel
getColumnCount
in class DefaultTableModel
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public Object getValueAt(int row, int columnIndex)
getValueAt
in interface TableModel
getValueAt
in class DefaultTableModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |