Package com.bc.ceres.swing
Class Grid.DefaultGridSelectionModel
java.lang.Object
com.bc.ceres.swing.Grid.DefaultGridSelectionModel
- All Implemented Interfaces:
GridSelectionModel
- Enclosing class:
Grid
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.bc.ceres.swing.GridSelectionModel
GridSelectionModel.Event, GridSelectionModel.Listener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(GridSelectionModel.Listener listener) void
addSelectedRowIndex
(int rowIndex) void
int
int
int
int[]
boolean
isRowSelected
(int rowIndex) void
removeListener
(GridSelectionModel.Listener listener) void
removeSelectedRowIndex
(int rowIndex) void
setSelectedRowIndices
(int... rowIndices)
-
Constructor Details
-
DefaultGridSelectionModel
public DefaultGridSelectionModel()
-
-
Method Details
-
getSelectedRowCount
public int getSelectedRowCount()- Specified by:
getSelectedRowCount
in interfaceGridSelectionModel
-
isRowSelected
public boolean isRowSelected(int rowIndex) - Specified by:
isRowSelected
in interfaceGridSelectionModel
-
getMinSelectedRowIndex
public int getMinSelectedRowIndex()- Specified by:
getMinSelectedRowIndex
in interfaceGridSelectionModel
-
getMaxSelectedRowIndex
public int getMaxSelectedRowIndex()- Specified by:
getMaxSelectedRowIndex
in interfaceGridSelectionModel
-
getSelectedRowIndices
public int[] getSelectedRowIndices()- Specified by:
getSelectedRowIndices
in interfaceGridSelectionModel
-
setSelectedRowIndices
public void setSelectedRowIndices(int... rowIndices) - Specified by:
setSelectedRowIndices
in interfaceGridSelectionModel
-
addSelectedRowIndex
public void addSelectedRowIndex(int rowIndex) - Specified by:
addSelectedRowIndex
in interfaceGridSelectionModel
-
removeSelectedRowIndex
public void removeSelectedRowIndex(int rowIndex) - Specified by:
removeSelectedRowIndex
in interfaceGridSelectionModel
-
addListener
- Specified by:
addListener
in interfaceGridSelectionModel
-
removeListener
- Specified by:
removeListener
in interfaceGridSelectionModel
-
fireChange
- Specified by:
fireChange
in interfaceGridSelectionModel
-