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 voidaddListener(GridSelectionModel.Listener listener)voidaddSelectedRowIndex(int rowIndex)voidfireChange(GridSelectionModel.Event event)intgetMaxSelectedRowIndex()intgetMinSelectedRowIndex()intgetSelectedRowCount()int[]getSelectedRowIndices()booleanisRowSelected(int rowIndex)voidremoveListener(GridSelectionModel.Listener listener)voidremoveSelectedRowIndex(int rowIndex)voidsetSelectedRowIndices(int... rowIndices)
-
-
-
Method Detail
-
getSelectedRowCount
public int getSelectedRowCount()
- Specified by:
getSelectedRowCountin interfaceGridSelectionModel
-
isRowSelected
public boolean isRowSelected(int rowIndex)
- Specified by:
isRowSelectedin interfaceGridSelectionModel
-
getMinSelectedRowIndex
public int getMinSelectedRowIndex()
- Specified by:
getMinSelectedRowIndexin interfaceGridSelectionModel
-
getMaxSelectedRowIndex
public int getMaxSelectedRowIndex()
- Specified by:
getMaxSelectedRowIndexin interfaceGridSelectionModel
-
getSelectedRowIndices
public int[] getSelectedRowIndices()
- Specified by:
getSelectedRowIndicesin interfaceGridSelectionModel
-
setSelectedRowIndices
public void setSelectedRowIndices(int... rowIndices)
- Specified by:
setSelectedRowIndicesin interfaceGridSelectionModel
-
addSelectedRowIndex
public void addSelectedRowIndex(int rowIndex)
- Specified by:
addSelectedRowIndexin interfaceGridSelectionModel
-
removeSelectedRowIndex
public void removeSelectedRowIndex(int rowIndex)
- Specified by:
removeSelectedRowIndexin interfaceGridSelectionModel
-
addListener
public void addListener(GridSelectionModel.Listener listener)
- Specified by:
addListenerin interfaceGridSelectionModel
-
removeListener
public void removeListener(GridSelectionModel.Listener listener)
- Specified by:
removeListenerin interfaceGridSelectionModel
-
fireChange
public void fireChange(GridSelectionModel.Event event)
- Specified by:
fireChangein interfaceGridSelectionModel
-
-