Uses of Interface
javax.swing.ListSelectionModel
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides user interface objects built according to the Basic look and feel.
Provides classes and interfaces for dealing with
javax.swing.JTable
.-
Uses of ListSelectionModel in javax.swing
Modifier and TypeClassDescriptionclass
Default data model for list selections.Modifier and TypeFieldDescriptionprotected ListSelectionModel
JTable.selectionModel
TheListSelectionModel
of the table, used to keep track of row selections.Modifier and TypeMethodDescriptionprotected ListSelectionModel
JTable.createDefaultSelectionModel()
Returns the default selection model object, which is aDefaultListSelectionModel
.protected ListSelectionModel
JList.createSelectionModel()
Returns an instance ofDefaultListSelectionModel
; called during construction to initialize the list's selection model property.JList.getSelectionModel()
Returns the current selection model.JTable.getSelectionModel()
Returns theListSelectionModel
that is used to maintain row selection state.Modifier and TypeMethodDescriptionvoid
JList.setSelectionModel
(ListSelectionModel selectionModel) Sets theselectionModel
for the list to a non-null
ListSelectionModel
implementation.void
JTable.setSelectionModel
(ListSelectionModel selectionModel) Sets the row selection model for this table toselectionModel
and registers for listener notifications from the new selection model.ModifierConstructorDescriptionJTable
(TableModel dm, TableColumnModel cm, ListSelectionModel sm) Constructs aJTable
that is initialized withdm
as the data model,cm
as the column model, andsm
as the selection model. -
Uses of ListSelectionModel in javax.swing.plaf.basic
Modifier and TypeMethodDescriptionprotected void
BasicListUI.paintCell
(Graphics g, int row, Rectangle rowBounds, ListCellRenderer<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex) Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use theCellRendererPane
to paint it. -
Uses of ListSelectionModel in javax.swing.table
Modifier and TypeFieldDescriptionprotected ListSelectionModel
DefaultTableColumnModel.selectionModel
Model for keeping track of column selectionsModifier and TypeMethodDescriptionprotected ListSelectionModel
DefaultTableColumnModel.createSelectionModel()
Creates a new default list selection model.DefaultTableColumnModel.getSelectionModel()
Returns theListSelectionModel
that is used to maintain column selection state.TableColumnModel.getSelectionModel()
Returns the current selection model.Modifier and TypeMethodDescriptionvoid
DefaultTableColumnModel.setSelectionModel
(ListSelectionModel newModel) Sets the selection model for thisTableColumnModel
tonewModel
and registers for listener notifications from the new selection model.void
TableColumnModel.setSelectionModel
(ListSelectionModel newModel) Sets the selection model.