|
||||||||||
| 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.data.aggregation.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)
|
ColumnAggregator |
getColumnAggregator(int row)
|
List<ColumnAggregator> |
getColumnAggregators()
|
Class<?> |
getColumnClass(int columnIndex)
|
int |
getColumnCount()
|
String |
getColumnName(int columnIdx)
|
Collection<Integer> |
getCompatibleRowIdxs(Class<? extends DataValue> type)
|
int |
getRowCount()
|
Object |
getValueAt(int row,
int columnIndex)
|
protected void |
initialize(List<ColumnAggregator> colAggrs)
Initializes the column aggregator table with the given ColumnAggregators. |
boolean |
isCellEditable(int row,
int columnIdx)
|
boolean |
isCompatible(int row,
Class<? extends DataValue> type)
|
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)
|
void |
toggleMissingCellOption(int[] selectedRows)
Toggles the include missing cell option of all selected rows if they support it. |
| 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)
ColumnAggregators.
colAggrs - the List of ColumnAggregatorsprotected void addColumn(DataColumnSpec... specs)
specs - the DataColumnSpecs 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 void toggleMissingCellOption(int[] selectedRows)
selectedRows - the index of the rows to change the aggregation
methodpublic String getColumnName(int columnIdx)
getColumnName in interface TableModelgetColumnName in class DefaultTableModelpublic Collection<Integer> getCompatibleRowIdxs(Class<? extends DataValue> type)
type - the type to check for compatibility
public boolean isCompatible(int row,
Class<? extends DataValue> type)
row - the index of the row to checktype - the type to check for compatibility
true if the row contains a numerical column
public void setValueAt(Object aValue,
int row,
int columnIdx)
setValueAt in interface TableModelsetValueAt in class DefaultTableModelpublic ColumnAggregator getColumnAggregator(int row)
row - the index of the row
public List<ColumnAggregator> getColumnAggregators()
ColumnAggregator List
public boolean isCellEditable(int row,
int columnIdx)
isCellEditable in interface TableModelisCellEditable in class DefaultTableModelpublic int getRowCount()
getRowCount in interface TableModelgetRowCount in class DefaultTableModelpublic int getColumnCount()
getColumnCount in interface TableModelgetColumnCount in class DefaultTableModelpublic Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModel
public Object getValueAt(int row,
int columnIndex)
getValueAt in interface TableModelgetValueAt in class DefaultTableModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||