Package com.bc.ceres.swing
Class Grid.DefaultGridSelectionModel
- java.lang.Object
-
- com.bc.ceres.swing.Grid.DefaultGridSelectionModel
-
- All Implemented Interfaces:
GridSelectionModel
- Enclosing class:
- Grid
public static class Grid.DefaultGridSelectionModel extends Object implements GridSelectionModel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.bc.ceres.swing.GridSelectionModel
GridSelectionModel.Event, GridSelectionModel.Listener
-
-
Constructor Summary
Constructors Constructor Description DefaultGridSelectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(GridSelectionModel.Listener listener)
void
addSelectedRowIndex(int rowIndex)
void
fireChange(GridSelectionModel.Event event)
int
getMaxSelectedRowIndex()
int
getMinSelectedRowIndex()
int
getSelectedRowCount()
int[]
getSelectedRowIndices()
boolean
isRowSelected(int rowIndex)
void
removeListener(GridSelectionModel.Listener listener)
void
removeSelectedRowIndex(int rowIndex)
void
setSelectedRowIndices(int... rowIndices)
-
-
-
Method Detail
-
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
public void addListener(GridSelectionModel.Listener listener)
- Specified by:
addListener
in interfaceGridSelectionModel
-
removeListener
public void removeListener(GridSelectionModel.Listener listener)
- Specified by:
removeListener
in interfaceGridSelectionModel
-
fireChange
public void fireChange(GridSelectionModel.Event event)
- Specified by:
fireChange
in interfaceGridSelectionModel
-
-