com.ehsbe.commons.gui
Class JxTable.AutoSelectCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
com.ehsbe.commons.gui.JxTable.AutoSelectCellEditor
- All Implemented Interfaces:
- Serializable, CellEditor, TableCellEditor, TreeCellEditor
- Enclosing class:
- JxTable
public class JxTable.AutoSelectCellEditor
- extends DefaultCellEditor
Same as the default cell editor, but clickcount set to 0 and
focus surrendering enabled. Since the default DefaultCellEditor from the
Table is not accessible, we need to install this slightly modified
version.
- Version:
- $Revision: 432 $
- Author:
- Jens Elkner
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JxTable.AutoSelectCellEditor
public JxTable.AutoSelectCellEditor(JTextField textField)
- Default constructor. Enables surrendering focus on keystrokes.
- Parameters:
textField
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Implements
TableCellEditor
. Automatically selects the
content of the component, if its selection state is true
.
- Specified by:
getTableCellEditorComponent
in interface TableCellEditor
- Overrides:
getTableCellEditorComponent
in class DefaultCellEditor
- Parameters:
table
- the owner of the cell to editvalue
- the object to editisSelected
- selection state of the objectrow
- row, where the object is locatedcolumn
- column, where the object is located
- Returns:
- the celleditor for the specified object
Copyright ©2005-2009 EHSBE, Walther-Rathenau-Str. 58, 39104 Magdeburg, Sachsen-Anhalt, Germany. All Rights Reserved.