org.knime.base.node.preproc.groupby.dialogutil
Class AggregationMethodTableCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
          extended by org.knime.base.node.preproc.groupby.dialogutil.AggregationMethodTableCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor, TreeCellEditor

public class AggregationMethodTableCellEditor
extends DefaultCellEditor
implements TableCellEditor

Extends the DefaultTreeCellEditor class to provide the AggregationMethodComboBox as cell editor. It passes the DataColumnSpec of the selected method to the combo box to display only compatible aggregation methods.

Author:
Tobias Koetter, University of Konstanz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
 
Field Summary
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
AggregationMethodTableCellEditor(TableModel model)
          Constructor for class AggregationMethodTableCellEditor.
 
Method Summary
(package private)  AggregationMethodComboBox getBox()
           
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
          
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Constructor Detail

AggregationMethodTableCellEditor

public AggregationMethodTableCellEditor(TableModel model)
Constructor for class AggregationMethodTableCellEditor.

Parameters:
model - the TableModel to get the type of the column that should be changed
Method Detail

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)

Specified by:
getTableCellEditorComponent in interface TableCellEditor
Overrides:
getTableCellEditorComponent in class DefaultCellEditor

getBox

AggregationMethodComboBox getBox()
Returns:
the AggregationMethodComboBox


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.