Uses of Interface
javax.swing.table.TableCellEditor
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces for dealing with
javax.swing.JTable
.-
Uses of TableCellEditor in javax.swing
Modifier and TypeClassDescriptionclass
The default editor for table and tree cells.Modifier and TypeFieldDescriptionprotected TableCellEditor
JTable.cellEditor
The active cell editor object, that overwrites the screen real estate occupied by the current cell and allows the user to change its contents.Modifier and TypeMethodDescriptionJTable.getCellEditor()
Returns the active cell editor, which isnull
if the table is not currently editing.JTable.getCellEditor
(int row, int column) Returns an appropriate editor for the cell specified byrow
andcolumn
.JTable.getDefaultEditor
(Class<?> columnClass) Returns the editor to be used when no editor has been set in aTableColumn
.Modifier and TypeMethodDescriptionJTable.prepareEditor
(TableCellEditor editor, int row, int column) Prepares the editor by querying the data model for the value and selection state of the cell atrow
,column
.void
JTable.setCellEditor
(TableCellEditor anEditor) Sets the active cell editor.void
JTable.setDefaultEditor
(Class<?> columnClass, TableCellEditor editor) Sets a default cell editor to be used if no editor has been set in aTableColumn
. -
Uses of TableCellEditor in javax.swing.table
Modifier and TypeFieldDescriptionprotected TableCellEditor
TableColumn.cellEditor
The editor used to edit the data cells of the column.Modifier and TypeMethodDescriptionTableColumn.getCellEditor()
Returns theTableCellEditor
used by theJTable
to edit values for this column.Modifier and TypeMethodDescriptionvoid
TableColumn.setCellEditor
(TableCellEditor cellEditor) Sets the editor to used by when a cell in this column is edited.ModifierConstructorDescriptionTableColumn
(int modelIndex, int width, TableCellRenderer cellRenderer, TableCellEditor cellEditor) Creates and initializes an instance ofTableColumn
with the specified model index, width, cell renderer, and cell editor; allTableColumn
constructors delegate to this one.