Class ColumnsLayoutCache.LayoutInfoCache
java.lang.Object
java.util.AbstractMap<VFXTableColumn<T,?>, ColumnsLayoutCache<T>.LayoutInfo>
java.util.HashMap<VFXTableColumn<T,?>, ColumnsLayoutCache<T>.LayoutInfo>
io.github.palexdev.virtualizedfx.table.ColumnsLayoutCache.LayoutInfoCache
- All Implemented Interfaces:
Serializable,Cloneable,Map<VFXTableColumn<T,?>, ColumnsLayoutCache<T>.LayoutInfo>
- Enclosing class:
ColumnsLayoutCache<T>
public class ColumnsLayoutCache.LayoutInfoCache
extends HashMap<VFXTableColumn<T,?>, ColumnsLayoutCache<T>.LayoutInfo>
Nothing special, just an extension of
HashMap to store data about columns' layout as ColumnsLayoutCache<T>.LayoutInfo objects.
Makes the variable declaration shorted and offers a bunch of convenience methods, that's all.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidvoiddoublegetPos(int index) doublegetWidth(VFXTableColumn<T, ?> column) booleanisVisible(VFXTableColumn<T, ?> column) booleanisWidthValid(VFXTableColumn<T, ?> column) Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
LayoutInfoCache
public LayoutInfoCache()
-
-
Method Details
-
getWidth
-
isWidthValid
-
getPos
public double getPos(int index) -
isVisible
-
clearPositionCache
public void clearPositionCache() -
clearVisibilityCache
public void clearVisibilityCache() -
clear
public void clear()- Specified by:
clearin interfaceMap<VFXTableColumn<T,?>, ColumnsLayoutCache<T>.LayoutInfo> - Overrides:
clearin classHashMap<VFXTableColumn<T,?>, ColumnsLayoutCache<T>.LayoutInfo>
-