Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
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 |
---|
Modifier and Type | Class and Description |
---|---|
class |
DefaultListSelectionModel
Default data model for list selections. |
Modifier and Type | Field and Description |
---|---|
protected ListSelectionModel |
JTable.selectionModel
The ListSelectionModel of the table, used to keep track of row selections. |
Modifier and Type | Method and Description |
---|---|
protected ListSelectionModel |
JTable.createDefaultSelectionModel()
Returns the default selection model object, which is a DefaultListSelectionModel . |
protected ListSelectionModel |
JList.createSelectionModel()
Returns an instance of DefaultListSelectionModel ; called
during construction to initialize the list's selection model
property. |
ListSelectionModel |
JTable.getSelectionModel()
Returns the ListSelectionModel that is used to maintain row
selection state. |
ListSelectionModel |
JList.getSelectionModel()
Returns the current selection model. |
Modifier and Type | Method and Description |
---|---|
void |
JTable.setSelectionModel(ListSelectionModel newModel)
Sets the row selection model for this table to newModel
and registers for listener notifications from the new selection model. |
void |
JList.setSelectionModel(ListSelectionModel selectionModel)
Sets the selectionModel for the list to a
non-null ListSelectionModel
implementation. |
Constructor and Description |
---|
JTable(TableModel dm,
TableColumnModel cm,
ListSelectionModel sm)
Constructs a JTable that is initialized with
dm as the data model, cm as the
column model, and sm as the selection model. |
Uses of ListSelectionModel in javax.swing.plaf.basic |
---|
Modifier and Type | Method and Description |
---|---|
protected void |
BasicListUI.paintCell(Graphics g,
int row,
Rectangle rowBounds,
ListCellRenderer cellRenderer,
ListModel dataModel,
ListSelectionModel selModel,
int leadIndex)
Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use the CellRendererPane to paint it. |
Uses of ListSelectionModel in javax.swing.table |
---|
Modifier and Type | Field and Description |
---|---|
protected ListSelectionModel |
DefaultTableColumnModel.selectionModel
Model for keeping track of column selections |
Modifier and Type | Method and Description |
---|---|
protected ListSelectionModel |
DefaultTableColumnModel.createSelectionModel()
Creates a new default list selection model. |
ListSelectionModel |
DefaultTableColumnModel.getSelectionModel()
Returns the ListSelectionModel that is used to
maintain column selection state. |
ListSelectionModel |
TableColumnModel.getSelectionModel()
Returns the current selection model. |
Modifier and Type | Method and Description |
---|---|
void |
DefaultTableColumnModel.setSelectionModel(ListSelectionModel newModel)
Sets the selection model for this TableColumnModel
to newModel
and registers for listener notifications from the new selection
model. |
void |
TableColumnModel.setSelectionModel(ListSelectionModel newModel)
Sets the selection model. |
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.