Package com._1c.g5.v8.dt.moxel.ui.editor
Class RowHeightCache
- java.lang.Object
-
- com._1c.g5.v8.dt.moxel.ui.editor.RowHeightCache
-
- All Implemented Interfaces:
IRowHeightCache
public class RowHeightCache extends Object implements IRowHeightCache
Row height cache implementation
-
-
Constructor Summary
Constructors Constructor Description RowHeightCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCache()
Clear height cachevoid
clearCacheFromRow(int row)
Clear cache of rows positions after specified rowInteger
getRowHeight(int row)
Get row height from cachevoid
putRowHeight(int row, int heightUnit)
Put row height to cachevoid
unsetRowHeight(int row)
Clear height of specified row
-
-
-
Method Detail
-
putRowHeight
public void putRowHeight(int row, int heightUnit)
Description copied from interface:IRowHeightCache
Put row height to cache- Specified by:
putRowHeight
in interfaceIRowHeightCache
- Parameters:
row
- - row indexheightUnit
- - row height (in units)
-
getRowHeight
public Integer getRowHeight(int row)
Description copied from interface:IRowHeightCache
Get row height from cache- Specified by:
getRowHeight
in interfaceIRowHeightCache
- Parameters:
row
- - row index- Returns:
- row height (in units) or null if not cached yet
-
clearCacheFromRow
public void clearCacheFromRow(int row)
Description copied from interface:IRowHeightCache
Clear cache of rows positions after specified row- Specified by:
clearCacheFromRow
in interfaceIRowHeightCache
- Parameters:
row
- - row index
-
clearCache
public void clearCache()
Description copied from interface:IRowHeightCache
Clear height cache- Specified by:
clearCache
in interfaceIRowHeightCache
-
unsetRowHeight
public void unsetRowHeight(int row)
Description copied from interface:IRowHeightCache
Clear height of specified row- Specified by:
unsetRowHeight
in interfaceIRowHeightCache
- Parameters:
row
- - row index
-
-