| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ListSelectionModel | |
|---|---|
| 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 | |
|---|---|
|  class | DefaultListSelectionModelDefault data model for list selections. | 
| Fields in javax.swing declared as ListSelectionModel | |
|---|---|
| protected  ListSelectionModel | JTable.selectionModelThe ListSelectionModelof the table, used to keep track of row selections. | 
| Methods in javax.swing that return ListSelectionModel | |
|---|---|
| protected  ListSelectionModel | JTable.createDefaultSelectionModel()Returns the default selection model object, which is a DefaultListSelectionModel. | 
| protected  ListSelectionModel | JList.createSelectionModel()Returns an instance of DefaultListSelectionModel. | 
|  ListSelectionModel | JTable.getSelectionModel()Returns the ListSelectionModelthat is used to maintain row
 selection state. | 
|  ListSelectionModel | JList.getSelectionModel()Returns the value of the current selection model. | 
| Methods in javax.swing with parameters of type ListSelectionModel | |
|---|---|
|  void | JTable.setSelectionModel(ListSelectionModel newModel)Sets the row selection model for this table to newModeland registers for listener notifications from the new selection model. | 
|  void | JList.setSelectionModel(ListSelectionModel selectionModel)Sets the selectionModelfor the list to a
 non-nullListSelectionModelimplementation. | 
| Constructors in javax.swing with parameters of type ListSelectionModel | |
|---|---|
| JTable(TableModel dm,
       TableColumnModel cm,
       ListSelectionModel sm)Constructs a JTablethat 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 | |
|---|---|
| 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 | 
|---|
| Fields in javax.swing.table declared as ListSelectionModel | |
|---|---|
| protected  ListSelectionModel | DefaultTableColumnModel.selectionModelModel for keeping track of column selections | 
| Methods in javax.swing.table that return ListSelectionModel | |
|---|---|
| protected  ListSelectionModel | DefaultTableColumnModel.createSelectionModel()Creates a new default list selection model. | 
|  ListSelectionModel | DefaultTableColumnModel.getSelectionModel()Returns the ListSelectionModelthat is used to
 maintain column selection state. | 
|  ListSelectionModel | TableColumnModel.getSelectionModel()Returns the current selection model. | 
| Methods in javax.swing.table with parameters of type ListSelectionModel | |
|---|---|
|  void | DefaultTableColumnModel.setSelectionModel(ListSelectionModel newModel)Sets the selection model for this TableColumnModeltonewModeland registers for listener notifications from the new selection
  model. | 
|  void | TableColumnModel.setSelectionModel(ListSelectionModel newModel)Sets the selection model. | 
| 
 | JavaTM 2 Platform Standard Ed. 5.0 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.