Uses of Interface
javax.swing.table.TableModel
Packages that use TableModel
包
描述
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides for events fired by Swing components.
Provides classes and interfaces for dealing with
javax.swing.JTable.-
Uses of TableModel in javax.swing
Fields in javax.swing declared as TableModelMethods in javax.swing that return TableModel修饰符和类方法描述protected TableModelJTable.createDefaultDataModel()Returns the default table model object, which is aDefaultTableModel.JTable.getModel()Returns theTableModelthat provides the data displayed by thisJTable.Methods in javax.swing that return types with arguments of type TableModel修饰符和类方法描述RowSorter<? extends TableModel> JTable.getRowSorter()Returns the object responsible for sorting.Methods in javax.swing with parameters of type TableModel修饰符和类方法描述voidJTable.setModel(TableModel dataModel) Sets the data model for this table todataModeland registers with it for listener notifications from the new data model.Method parameters in javax.swing with type arguments of type TableModelConstructors in javax.swing with parameters of type TableModelModifierConstructor描述JTable(TableModel dm) Constructs aJTablethat is initialized withdmas the data model, a default column model, and a default selection model.JTable(TableModel dm, TableColumnModel cm) Constructs aJTablethat is initialized withdmas the data model,cmas the column model, and a default selection model.JTable(TableModel dm, TableColumnModel cm, ListSelectionModel sm) Constructs aJTablethat is initialized withdmas the data model,cmas the column model, andsmas the selection model. -
Uses of TableModel in javax.swing.event
Constructors in javax.swing.event with parameters of type TableModelModifierConstructor描述TableModelEvent(TableModel source) All row data in the table has changed, listeners should discard any state that was based on the rows and requery theTableModelto get the new row count and all the appropriate values.TableModelEvent(TableModel source, int row) This row of data has been updated.TableModelEvent(TableModel source, int firstRow, int lastRow) The data in rows [firstRow, lastRow] have been updated.TableModelEvent(TableModel source, int firstRow, int lastRow, int column) The cells in column column in the range [firstRow, lastRow] have been updated.TableModelEvent(TableModel source, int firstRow, int lastRow, int column, int type) The cells from (firstRow, column) to (lastRow, column) have been changed. -
Uses of TableModel in javax.swing.table
Classes in javax.swing.table with type parameters of type TableModel修饰符和类Class描述classTableRowSorter<M extends TableModel>An implementation ofRowSorterthat provides sorting and filtering using aTableModel.Classes in javax.swing.table that implement TableModel修饰符和类Class描述classThis abstract class provides default implementations for most of the methods in theTableModelinterface.classThis is an implementation ofTableModelthat uses aVectorofVectorsto store the cell value objects.Methods in javax.swing.table with parameters of type TableModel修饰符和类方法描述abstract StringTableStringConverter.toString(TableModel model, int row, int column) Returns the string representation of the value at the specified location.