net.sf.doolin.gui.field.table.editor
Class ComboTableCellEditor<V,E>
java.lang.Object
javax.swing.AbstractCellEditor
net.sf.doolin.gui.field.table.editor.ComboTableCellEditor<V,E>
- Type Parameters:
V - Type of bean for the viewE - Type of bean for the rows
- All Implemented Interfaces:
- Serializable, CellEditor, TableCellEditor
public class ComboTableCellEditor<V,E>
- extends AbstractCellEditor
- implements TableCellEditor
Table cell editor based on a JComboBox.
- Author:
- Damien Coraboeuf
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboTableCellEditor
public ComboTableCellEditor()
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue in interface CellEditor
getFieldCombo
public FieldCombo<V,E> getFieldCombo()
- Gets the field definition for the combo box
- Returns:
- Field definition
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent in interface TableCellEditor
init
protected void init(JTable table)
- Initialises the combo box
- Parameters:
table - Hosting table (must be a GUITable).
setFieldCombo
public void setFieldCombo(FieldCombo<V,E> fieldCombo)
- Sets the field definition for the combo box
- Parameters:
fieldCombo - Field definition
Copyright © 2011. All Rights Reserved.