Module VirtualizedFX
Class VirtualGrid<T,C extends GridCell<T>>
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
io.github.palexdev.virtualizedfx.grid.VirtualGrid<T,C>
- All Implemented Interfaces:
Styleable
,EventTarget
,Skinnable
-
Property Summary
PropertiesTypePropertyDescriptionObjectProperty<io.github.palexdev.mfxcore.base.beans.SizeBean>
io.github.palexdev.mfxcore.base.properties.functional.SupplierProperty<GridHelper>
ObjectProperty<io.github.palexdev.mfxcore.collections.ObservableGrid<T>>
ReadOnlyObjectProperty<io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>>
ReadOnlyObjectProperty<io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>>
Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltip
Properties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width
Properties inherited from class javafx.scene.Parent
needsLayout
Properties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
-
Field Summary
Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZE
Fields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualGrid
(io.github.palexdev.mfxcore.collections.ObservableGrid<T> items, Function<T, C> cellFactory) -
Method Summary
Modifier and TypeMethodDescriptionObjectProperty<io.github.palexdev.mfxcore.base.beans.SizeBean>
void
clear()
protected Skin<?>
Gets the value of thecellFactory
property.io.github.palexdev.mfxcore.base.beans.SizeBean
Gets the value of thecellSize
property.int
protected List<CssMetaData<? extends Styleable,
?>> double
Gets the value of theestimatedBreadth
property.double
Gets the value of theestimatedLength
property.Gets the value of thegridHelper
property.Gets the value of thegridHelperFactory
property.double
getHPos()
Gets the value of thehPos
property.io.github.palexdev.mfxcore.collections.ObservableGrid<T>
getItems()
Gets the value of theitems
property.io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>
Gets the value of thelastColumnRange
property.io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>
Gets the value of thelastRowRange
property.int
getState()
Gets the value of thestate
property.protected ViewportManager<T,
C> double
getVPos()
Gets the value of thevPos
property.io.github.palexdev.mfxcore.base.properties.functional.SupplierProperty<GridHelper>
io.github.palexdev.mfxcore.collections.ObservableGrid<T>
init()
io.github.palexdev.mfxcore.collections.ObservableGrid<T>
init
(int rows, int columns) io.github.palexdev.mfxcore.collections.ObservableGrid<T>
init
(int rows, int columns, BiFunction<Integer, Integer, T> valFunction) io.github.palexdev.mfxcore.collections.ObservableGrid<T>
boolean
isEmpty()
boolean
Gets the value of theneedsViewportLayout
property.ObjectProperty<io.github.palexdev.mfxcore.collections.ObservableGrid<T>>
ReadOnlyObjectProperty<io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>>
ReadOnlyObjectProperty<io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>>
void
void
setCellFactory
(Function<T, C> cellFactory) Sets the value of thecellFactory
property.void
setCellSize
(io.github.palexdev.mfxcore.base.beans.SizeBean cellSize) Sets the value of thecellSize
property.protected void
setGridHelper
(GridHelper gridHelper) Sets the value of thegridHelper
property.void
setGridHelperFactory
(Supplier<GridHelper> gridHelperFactory) Sets the value of thegridHelperFactory
property.void
setHPos
(double hPos) Sets the value of thehPos
property.void
Sets the value of theitems
property.protected void
setNeedsViewportLayout
(boolean needsViewportLayout) Sets the value of theneedsViewportLayout
property.void
setVPos
(double vPos) Sets the value of thevPos
property.size()
int
Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
Methods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
Methods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
Methods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
estimatedLength
-
estimatedBreadth
-
state
- See Also:
-
lastRowRange
public ReadOnlyObjectProperty<io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>> lastRowRangeProperty- See Also:
-
lastColumnRange
public ReadOnlyObjectProperty<io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>> lastColumnRangeProperty -
items
-
cellSize
-
cellFactory
-
vPos
- See Also:
-
hPos
- See Also:
-
gridHelper
-
gridHelperFactory
public io.github.palexdev.mfxcore.base.properties.functional.SupplierProperty<GridHelper> gridHelperFactoryProperty -
needsViewportLayout
-
-
Constructor Details
-
VirtualGrid
public VirtualGrid() -
VirtualGrid
-
-
Method Details
-
requestViewportLayout
public void requestViewportLayout() -
init
-
init
-
init
-
init
public io.github.palexdev.mfxcore.collections.ObservableGrid<T> init(int rows, int columns, BiFunction<Integer, Integer, T> valFunction) -
clear
public void clear() -
totalSize
public int totalSize() -
size
-
isEmpty
public boolean isEmpty() -
getRowsNum
public int getRowsNum() -
getColumnsNum
public int getColumnsNum() -
getEstimatedLength
public double getEstimatedLength()Gets the value of theestimatedLength
property.- Property description:
- Returns:
- the value of the
estimatedLength
property - See Also:
-
estimatedLengthProperty
- Returns:
- the
estimatedLength
property - See Also:
-
getEstimatedBreadth
public double getEstimatedBreadth()Gets the value of theestimatedBreadth
property.- Property description:
- Returns:
- the value of the
estimatedBreadth
property - See Also:
-
estimatedBreadthProperty
- Returns:
- the
estimatedBreadth
property - See Also:
-
getState
Gets the value of thestate
property.- Property description:
- Returns:
- the value of the
state
property - See Also:
-
stateProperty
- Returns:
- the
state
property - See Also:
-
getLastRowRange
Gets the value of thelastRowRange
property.- Property description:
- Returns:
- the value of the
lastRowRange
property - See Also:
-
lastRowRangeProperty
public ReadOnlyObjectProperty<io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>> lastRowRangeProperty()- Returns:
- the
lastRowRange
property - See Also:
-
getLastColumnRange
Gets the value of thelastColumnRange
property.- Property description:
- Returns:
- the value of the
lastColumnRange
property - See Also:
-
lastColumnRangeProperty
public ReadOnlyObjectProperty<io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>> lastColumnRangeProperty()- Returns:
- the
lastColumnRange
property - See Also:
-
createDefaultSkin
- Overrides:
createDefaultSkin
in classControl
-
getControlCssMetaData
- Overrides:
getControlCssMetaData
in classControl
-
getViewportManager
-
getItems
Gets the value of theitems
property.- Property description:
- Returns:
- the value of the
items
property - See Also:
-
itemsProperty
- Returns:
- the
items
property - See Also:
-
setItems
Sets the value of theitems
property.- Property description:
- Parameters:
items
- the value for theitems
property- See Also:
-
getCellSize
public io.github.palexdev.mfxcore.base.beans.SizeBean getCellSize()Gets the value of thecellSize
property.- Property description:
- Returns:
- the value of the
cellSize
property - See Also:
-
cellSizeProperty
- Returns:
- the
cellSize
property - See Also:
-
setCellSize
public void setCellSize(io.github.palexdev.mfxcore.base.beans.SizeBean cellSize) Sets the value of thecellSize
property.- Property description:
- Parameters:
cellSize
- the value for thecellSize
property- See Also:
-
getCellFactory
Gets the value of thecellFactory
property.- Property description:
- Returns:
- the value of the
cellFactory
property - See Also:
-
cellFactoryProperty
public io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<T,C> cellFactoryProperty()- Returns:
- the
cellFactory
property - See Also:
-
setCellFactory
Sets the value of thecellFactory
property.- Property description:
- Parameters:
cellFactory
- the value for thecellFactory
property- See Also:
-
getVPos
public double getVPos()Gets the value of thevPos
property.- Property description:
- Returns:
- the value of the
vPos
property - See Also:
-
vPosProperty
- Returns:
- the
vPos
property - See Also:
-
setVPos
public void setVPos(double vPos) Sets the value of thevPos
property.- Property description:
- Parameters:
vPos
- the value for thevPos
property- See Also:
-
getHPos
public double getHPos()Gets the value of thehPos
property.- Property description:
- Returns:
- the value of the
hPos
property - See Also:
-
hPosProperty
- Returns:
- the
hPos
property - See Also:
-
setHPos
public void setHPos(double hPos) Sets the value of thehPos
property.- Property description:
- Parameters:
hPos
- the value for thehPos
property- See Also:
-
getGridHelper
Gets the value of thegridHelper
property.- Property description:
- Returns:
- the value of the
gridHelper
property - See Also:
-
gridHelperProperty
- Returns:
- the
gridHelper
property - See Also:
-
setGridHelper
Sets the value of thegridHelper
property.- Property description:
- Parameters:
gridHelper
- the value for thegridHelper
property- See Also:
-
getGridHelperFactory
Gets the value of thegridHelperFactory
property.- Property description:
- Returns:
- the value of the
gridHelperFactory
property - See Also:
-
gridHelperFactoryProperty
public io.github.palexdev.mfxcore.base.properties.functional.SupplierProperty<GridHelper> gridHelperFactoryProperty()- Returns:
- the
gridHelperFactory
property - See Also:
-
setGridHelperFactory
Sets the value of thegridHelperFactory
property.- Property description:
- Parameters:
gridHelperFactory
- the value for thegridHelperFactory
property- See Also:
-
isNeedsViewportLayout
public boolean isNeedsViewportLayout()Gets the value of theneedsViewportLayout
property.- Property description:
- Returns:
- the value of the
needsViewportLayout
property - See Also:
-
needsViewportLayoutProperty
- Returns:
- the
needsViewportLayout
property - See Also:
-
setNeedsViewportLayout
protected void setNeedsViewportLayout(boolean needsViewportLayout) Sets the value of theneedsViewportLayout
property.- Property description:
- Parameters:
needsViewportLayout
- the value for theneedsViewportLayout
property- See Also:
-