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 TypeMethodDescriptionvoidaddListener(GridSelectionModel.Listener listener) voidaddSelectedRowIndex(int rowIndex) voidintintintint[]booleanisRowSelected(int rowIndex) voidremoveListener(GridSelectionModel.Listener listener) voidremoveSelectedRowIndex(int rowIndex) voidsetSelectedRowIndices(int... rowIndices)
-
Constructor Details
-
DefaultGridSelectionModel
public DefaultGridSelectionModel()
-
-
Method Details
-
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
- Specified by:
addListenerin interfaceGridSelectionModel
-
removeListener
- Specified by:
removeListenerin interfaceGridSelectionModel
-
fireChange
- Specified by:
fireChangein interfaceGridSelectionModel
-