Uses of Interface
javax.swing.table.TableCellEditor
| Package | Description |
|---|---|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.table |
Provides classes and interfaces for dealing with
javax.swing.JTable. |
-
Uses of TableCellEditor in javax.swing
Classes in javax.swing that implement TableCellEditor Modifier and Type Class Description classDefaultCellEditorThe default editor for table and tree cells.Fields in javax.swing declared as TableCellEditor Modifier and Type Field Description protected TableCellEditorJTable. cellEditorThe active cell editor object, that overwrites the screen real estate occupied by the current cell and allows the user to change its contents.Methods in javax.swing that return TableCellEditor Modifier and Type Method Description TableCellEditorJTable. getCellEditor()Returns the active cell editor, which isnullif the table is not currently editing.TableCellEditorJTable. getCellEditor(int row, int column)Returns an appropriate editor for the cell specified byrowandcolumn.TableCellEditorJTable. getDefaultEditor(Class<?> columnClass)Returns the editor to be used when no editor has been set in aTableColumn.Methods in javax.swing with parameters of type TableCellEditor Modifier and Type Method Description ComponentJTable. 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.voidJTable. setCellEditor(TableCellEditor anEditor)Sets the active cell editor.voidJTable. 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
Fields in javax.swing.table declared as TableCellEditor Modifier and Type Field Description protected TableCellEditorTableColumn. cellEditorThe editor used to edit the data cells of the column.Methods in javax.swing.table that return TableCellEditor Modifier and Type Method Description TableCellEditorTableColumn. getCellEditor()Returns theTableCellEditorused by theJTableto edit values for this column.Methods in javax.swing.table with parameters of type TableCellEditor Modifier and Type Method Description voidTableColumn. setCellEditor(TableCellEditor cellEditor)Sets the editor to used by when a cell in this column is edited.Constructors in javax.swing.table with parameters of type TableCellEditor Constructor Description TableColumn(int modelIndex, int width, TableCellRenderer cellRenderer, TableCellEditor cellEditor)Creates and initializes an instance ofTableColumnwith the specified model index, width, cell renderer, and cell editor; allTableColumnconstructors delegate to this one.