org.eclipse.nebula.widgets.nattable.selection
Class RowSelectionModel<R>
java.lang.Object
   org.eclipse.nebula.widgets.nattable.selection.RowSelectionModel<R>
org.eclipse.nebula.widgets.nattable.selection.RowSelectionModel<R>
- All Implemented Interfaces: 
- IRowSelectionModel<R>, ISelectionModel
- public class RowSelectionModel<R> 
- extends Object- implements IRowSelectionModel<R>
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
selectionLayer
protected final SelectionLayer selectionLayer
rowDataProvider
protected final IRowDataProvider<R> rowDataProvider
rowIdAccessor
protected final IRowIdAccessor<R> rowIdAccessor
selectedRows
protected Map<Serializable,R> selectedRows
lastSelectedRange
protected org.eclipse.swt.graphics.Rectangle lastSelectedRange
lastSelectedRowIds
protected Set<Serializable> lastSelectedRowIds
selectionsLock
protected final ReadWriteLock selectionsLock
RowSelectionModel
public RowSelectionModel(SelectionLayer selectionLayer,
                         IRowDataProvider<R> rowDataProvider,
                         IRowIdAccessor<R> rowIdAccessor)
RowSelectionModel
public RowSelectionModel(SelectionLayer selectionLayer,
                         IRowDataProvider<R> rowDataProvider,
                         IRowIdAccessor<R> rowIdAccessor,
                         boolean multipleSelectionAllowed)
isMultipleSelectionAllowed
public boolean isMultipleSelectionAllowed()
- 
- Specified by:
- isMultipleSelectionAllowedin interface- ISelectionModel
 
- 
 
setMultipleSelectionAllowed
public void setMultipleSelectionAllowed(boolean multipleSelectionAllowed)
- 
- Specified by:
- setMultipleSelectionAllowedin interface- ISelectionModel
 
- 
 
addSelection
public void addSelection(int columnPosition,
                         int rowPosition)
- 
- Specified by:
- addSelectionin interface- ISelectionModel
 
- 
 
addSelection
public void addSelection(org.eclipse.swt.graphics.Rectangle range)
- 
- Specified by:
- addSelectionin interface- ISelectionModel
 
- 
 
clearSelection
public void clearSelection()
- 
- Specified by:
- clearSelectionin interface- ISelectionModel
 
- 
 
clearSelection
public void clearSelection(int columnPosition,
                           int rowPosition)
- 
- Specified by:
- clearSelectionin interface- ISelectionModel
 
- 
 
clearSelection
public void clearSelection(org.eclipse.swt.graphics.Rectangle removedSelection)
- 
- Specified by:
- clearSelectionin interface- ISelectionModel
 
- 
 
clearSelection
public void clearSelection(R rowObject)
- Description copied from interface: IRowSelectionModel
- Removes the selected row object from the selection
 
- 
- Specified by:
- clearSelectionin interface- IRowSelectionModel<R>
 
- 
 
isEmpty
public boolean isEmpty()
- 
- Specified by:
- isEmptyin interface- ISelectionModel
 
- 
 
getSelections
public List<org.eclipse.swt.graphics.Rectangle> getSelections()
- 
- Specified by:
- getSelectionsin interface- ISelectionModel
 
- 
 
isCellPositionSelected
public boolean isCellPositionSelected(int columnPosition,
                                      int rowPosition)
- 
- Specified by:
- isCellPositionSelectedin interface- ISelectionModel
 
- 
 
getSelectedColumnPositions
public int[] getSelectedColumnPositions()
- 
- Specified by:
- getSelectedColumnPositionsin interface- ISelectionModel
 
- 
 
isColumnPositionSelected
public boolean isColumnPositionSelected(int columnPosition)
- 
- Specified by:
- isColumnPositionSelectedin interface- ISelectionModel
 
- 
 
getFullySelectedColumnPositions
public int[] getFullySelectedColumnPositions(int fullySelectedColumnRowCount)
- 
- Specified by:
- getFullySelectedColumnPositionsin interface- ISelectionModel
 
- 
- Parameters:
- fullySelectedColumnRowCount- the number of rows in a fully selected column
 
isColumnPositionFullySelected
public boolean isColumnPositionFullySelected(int columnPosition,
                                             int fullySelectedColumnRowCount)
- 
- Specified by:
- isColumnPositionFullySelectedin interface- ISelectionModel
 
- 
- fullySelectedColumnRowCount- the number of rows in a fully selected column
 
getSelectedRowObjects
public List<R> getSelectedRowObjects()
- Description copied from interface: IRowSelectionModel
- Expose the underlying row objects
 
- 
- Specified by:
- getSelectedRowObjectsin interface- IRowSelectionModel<R>
 
- 
- Returns:
- The selected row objects.
 
getSelectedRowCount
public int getSelectedRowCount()
- 
- Specified by:
- getSelectedRowCountin interface- ISelectionModel
 
- 
 
getSelectedRowPositions
public Set<Range> getSelectedRowPositions()
- 
- Specified by:
- getSelectedRowPositionsin interface- ISelectionModel
 
- 
 
isRowPositionSelected
public boolean isRowPositionSelected(int rowPosition)
- 
- Specified by:
- isRowPositionSelectedin interface- ISelectionModel
 
- 
 
getFullySelectedRowPositions
public int[] getFullySelectedRowPositions(int rowWidth)
- 
- Specified by:
- getFullySelectedRowPositionsin interface- ISelectionModel
 
- 
- Parameters:
- rowWidth- the number of columns in a fully selected row
 
isRowPositionFullySelected
public boolean isRowPositionFullySelected(int rowPosition,
                                          int rowWidth)
- 
- Specified by:
- isRowPositionFullySelectedin interface- ISelectionModel
 
- 
 
Copyright © 2014. All rights reserved.