Uses of Interface
javax.swing.ListSelectionModel
-
Packages that use ListSelectionModel 软件包 描述 javax.swing 提供一组“轻量级”(全Java语言)组件,这些组件在所有平台上尽可能地工作。javax.swing.plaf.basic 提供根据Basic外观构建的用户界面对象。javax.swing.table 提供用于处理javax.swing.JTable
类和接口。 -
-
Uses of ListSelectionModel in javax.swing
Classes in javax.swing that implement ListSelectionModel 变量和类型 类 描述 class
DefaultListSelectionModel
列表选择的默认数据模型。Fields in javax.swing declared as ListSelectionModel 变量和类型 字段 描述 protected ListSelectionModel
JTable. selectionModel
该表的ListSelectionModel
,用于跟踪行选择。Methods in javax.swing that return ListSelectionModel 变量和类型 方法 描述 protected ListSelectionModel
JTable. createDefaultSelectionModel()
返回默认选择模型对象,即DefaultListSelectionModel
。protected ListSelectionModel
JList. createSelectionModel()
返回DefaultListSelectionModel
的实例; 在构造期间调用以初始化列表的选择模型属性。ListSelectionModel
JList. getSelectionModel()
返回当前选择模型。ListSelectionModel
JTable. getSelectionModel()
返回用于维护行选择状态的ListSelectionModel
。Methods in javax.swing with parameters of type ListSelectionModel 变量和类型 方法 描述 void
JList. setSelectionModel(ListSelectionModel selectionModel)
将列表的selectionModel
设置为非null
ListSelectionModel
实现。void
JTable. setSelectionModel(ListSelectionModel selectionModel)
将此表的行选择模型设置为selectionModel
并注册来自新选择模型的侦听器通知。Constructors in javax.swing with parameters of type ListSelectionModel 构造器 描述 JTable(TableModel dm, TableColumnModel cm, ListSelectionModel sm)
构造JTable
,初始化为dm
作为数据模型,cm
作为列模型,sm
作为选择模型。 -
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<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex)
绘制一个列表单元格:计算相关状态,获取“橡皮图章”单元格渲染器组件,然后使用CellRendererPane
绘制它。 -
Uses of ListSelectionModel in javax.swing.table
Fields in javax.swing.table declared as ListSelectionModel 变量和类型 字段 描述 protected ListSelectionModel
DefaultTableColumnModel. selectionModel
用于跟踪列选择的模型Methods in javax.swing.table that return ListSelectionModel 变量和类型 方法 描述 protected ListSelectionModel
DefaultTableColumnModel. createSelectionModel()
创建新的默认列表选择模型。ListSelectionModel
DefaultTableColumnModel. getSelectionModel()
返回用于维护列选择状态的ListSelectionModel
。ListSelectionModel
TableColumnModel. getSelectionModel()
返回当前选择模型。Methods in javax.swing.table with parameters of type ListSelectionModel 变量和类型 方法 描述 void
DefaultTableColumnModel. setSelectionModel(ListSelectionModel newModel)
设置此选择模型TableColumnModel
至newModel
,并注册了来自新选择模型的通知。void
TableColumnModel. setSelectionModel(ListSelectionModel newModel)
Sets the selection model.
-