Uses of Interface
javax.swing.ListSelectionModel
-
Packages that use ListSelectionModel 软件包 描述 javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.table 提供处理javax.swing.JTable
类和接口。 -
-
Uses of ListSelectionModel in javax.swing
Classes in javax.swing that implement ListSelectionModel Modifier and Type Class 描述 class
DefaultListSelectionModel
列表选择的默认数据模型。Fields in javax.swing declared as ListSelectionModel Modifier and Type Field 描述 protected ListSelectionModel
JTable. selectionModel
表中的ListSelectionModel
,用于跟踪行选择。Methods in javax.swing that return ListSelectionModel Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 void
JList. setSelectionModel(ListSelectionModel selectionModel)
将该列表的selectionModel
设置为非null
ListSelectionModel
实现。void
JTable. setSelectionModel(ListSelectionModel selectionModel)
将此表的行选择模型设置为selectionModel
并从新选择模型注册侦听器通知。Constructors in javax.swing with parameters of type ListSelectionModel Constructor 描述 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 Modifier and Type 方法 描述 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 Modifier and Type Field 描述 protected ListSelectionModel
DefaultTableColumnModel. selectionModel
跟踪列选择的模型Methods in javax.swing.table that return ListSelectionModel Modifier and Type 方法 描述 protected ListSelectionModel
DefaultTableColumnModel. createSelectionModel()
创建一个新的默认列表选择模型。ListSelectionModel
DefaultTableColumnModel. getSelectionModel()
返回用于维护列选择状态的ListSelectionModel
。ListSelectionModel
TableColumnModel. getSelectionModel()
返回当前的选择模型。Methods in javax.swing.table with parameters of type ListSelectionModel Modifier and Type 方法 描述 void
DefaultTableColumnModel. setSelectionModel(ListSelectionModel newModel)
设置此选择模型TableColumnModel
至newModel
并注册为来自新选择模型的通知。void
TableColumnModel. setSelectionModel(ListSelectionModel newModel)
Sets the selection model.
-