Class PointKeyHandler
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.datachange.PointKeyHandler
-
- All Implemented Interfaces:
CellKeyHandler<org.eclipse.swt.graphics.Point>
public class PointKeyHandler extends Object implements CellKeyHandler<org.eclipse.swt.graphics.Point>
Implementation of theCellKeyHandlerthat handlesPoints as keys.- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description PointKeyHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnIndex(org.eclipse.swt.graphics.Point key)org.eclipse.swt.graphics.PointgetKey(int columnIndex, int rowIndex)Creates the cell key based on the given column index and row index.org.eclipse.swt.graphics.PointgetKeyWithColumnUpdate(org.eclipse.swt.graphics.Point oldKey, int columnIndex)Creates a new cell key based on the given key with an updated column index.org.eclipse.swt.graphics.PointgetKeyWithRowUpdate(org.eclipse.swt.graphics.Point oldKey, int rowIndex)Creates a new cell key based on the given key with an updated row index.intgetRowIndex(org.eclipse.swt.graphics.Point key)booleanupdateOnHorizontalStructuralChange()booleanupdateOnVerticalStructuralChange()
-
-
-
Method Detail
-
getKey
public org.eclipse.swt.graphics.Point getKey(int columnIndex, int rowIndex)Description copied from interface:CellKeyHandlerCreates the cell key based on the given column index and row index.- Specified by:
getKeyin interfaceCellKeyHandler<org.eclipse.swt.graphics.Point>- Parameters:
columnIndex- The column index of the cell whose key should be generated.rowIndex- The row index of the cell whose key should be generated.- Returns:
- The key of the cell with the given indexes.
-
getKeyWithColumnUpdate
public org.eclipse.swt.graphics.Point getKeyWithColumnUpdate(org.eclipse.swt.graphics.Point oldKey, int columnIndex)Description copied from interface:CellKeyHandlerCreates a new cell key based on the given key with an updated column index.- Specified by:
getKeyWithColumnUpdatein interfaceCellKeyHandler<org.eclipse.swt.graphics.Point>- Parameters:
oldKey- The key that should be copied.columnIndex- The column index that should be updated in the existing key.- Returns:
- The key of the cell with the previous row identifier and the updated column identifier.
-
getKeyWithRowUpdate
public org.eclipse.swt.graphics.Point getKeyWithRowUpdate(org.eclipse.swt.graphics.Point oldKey, int rowIndex)Description copied from interface:CellKeyHandlerCreates a new cell key based on the given key with an updated row index.- Specified by:
getKeyWithRowUpdatein interfaceCellKeyHandler<org.eclipse.swt.graphics.Point>- Parameters:
oldKey- The key that should be copied.rowIndex- The row index that should be updated in the existing key.- Returns:
- The key of the cell with the previous column identifier and the updated row identifier.
-
getColumnIndex
public int getColumnIndex(org.eclipse.swt.graphics.Point key)
- Specified by:
getColumnIndexin interfaceCellKeyHandler<org.eclipse.swt.graphics.Point>- Parameters:
key- The key from which the column index should be retrieved.- Returns:
- The column index for the cell key.
-
getRowIndex
public int getRowIndex(org.eclipse.swt.graphics.Point key)
- Specified by:
getRowIndexin interfaceCellKeyHandler<org.eclipse.swt.graphics.Point>- Parameters:
key- The key from which the row index should be retrieved.- Returns:
- The row index for the cell key.
-
updateOnHorizontalStructuralChange
public boolean updateOnHorizontalStructuralChange()
- Specified by:
updateOnHorizontalStructuralChangein interfaceCellKeyHandler<org.eclipse.swt.graphics.Point>- Returns:
trueif the keys created by this handler need to be updated on horizontal structural changes,falseif the keys update automatically.
-
updateOnVerticalStructuralChange
public boolean updateOnVerticalStructuralChange()
- Specified by:
updateOnVerticalStructuralChangein interfaceCellKeyHandler<org.eclipse.swt.graphics.Point>- Returns:
trueif the keys created by this handler need to be updated on vertical structural changes,falseif the keys update automatically.
-
-