Uses of Interface
javax.swing.ListSelectionModel
| 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.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| javax.swing.table |
Provides classes and interfaces for dealing with
javax.swing.JTable. |
-
Uses of ListSelectionModel in javax.swing
Classes in javax.swing that implement ListSelectionModel Modifier and Type Class Description classDefaultListSelectionModelDefault data model for list selections.Fields in javax.swing declared as ListSelectionModel Modifier and Type Field Description protected ListSelectionModelJTable. selectionModelTheListSelectionModelof the table, used to keep track of row selections.Methods in javax.swing that return ListSelectionModel Modifier and Type Method Description protected ListSelectionModelJTable. createDefaultSelectionModel()Returns the default selection model object, which is aDefaultListSelectionModel.protected ListSelectionModelJList. createSelectionModel()Returns an instance ofDefaultListSelectionModel; called during construction to initialize the list's selection model property.ListSelectionModelJList. getSelectionModel()Returns the current selection model.ListSelectionModelJTable. getSelectionModel()Returns theListSelectionModelthat is used to maintain row selection state.Methods in javax.swing with parameters of type ListSelectionModel Modifier and Type Method Description voidJList. setSelectionModel(ListSelectionModel selectionModel)Sets theselectionModelfor the list to a non-nullListSelectionModelimplementation.voidJTable. setSelectionModel(ListSelectionModel selectionModel)Sets the row selection model for this table toselectionModeland registers for listener notifications from the new selection model.Constructors in javax.swing with parameters of type ListSelectionModel Constructor Description 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 ListSelectionModel in javax.swing.plaf.basic
Methods in javax.swing.plaf.basic with parameters of type ListSelectionModel Modifier and Type Method Description protected voidBasicListUI. 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 theCellRendererPaneto paint it. -
Uses of ListSelectionModel in javax.swing.table
Fields in javax.swing.table declared as ListSelectionModel Modifier and Type Field Description protected ListSelectionModelDefaultTableColumnModel. selectionModelModel for keeping track of column selectionsMethods in javax.swing.table that return ListSelectionModel Modifier and Type Method Description protected ListSelectionModelDefaultTableColumnModel. createSelectionModel()Creates a new default list selection model.ListSelectionModelDefaultTableColumnModel. getSelectionModel()Returns theListSelectionModelthat is used to maintain column selection state.ListSelectionModelTableColumnModel. getSelectionModel()Returns the current selection model.Methods in javax.swing.table with parameters of type ListSelectionModel Modifier and Type Method Description voidDefaultTableColumnModel. setSelectionModel(ListSelectionModel newModel)Sets the selection model for thisTableColumnModeltonewModeland registers for listener notifications from the new selection model.voidTableColumnModel. setSelectionModel(ListSelectionModel newModel)Sets the selection model.