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, tooltipProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties 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_SIZEFields 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>voidclear()protected Skin<?>Gets the value of thecellFactoryproperty.io.github.palexdev.mfxcore.base.beans.SizeBeanGets the value of thecellSizeproperty.intprotected List<CssMetaData<? extends Styleable,?>> doubleGets the value of theestimatedBreadthproperty.doubleGets the value of theestimatedLengthproperty.Gets the value of thegridHelperproperty.Gets the value of thegridHelperFactoryproperty.doublegetHPos()Gets the value of thehPosproperty.io.github.palexdev.mfxcore.collections.ObservableGrid<T>getItems()Gets the value of theitemsproperty.io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>Gets the value of thelastColumnRangeproperty.io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>Gets the value of thelastRowRangeproperty.intgetState()Gets the value of thestateproperty.protected ViewportManager<T,C> doublegetVPos()Gets the value of thevPosproperty.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>booleanisEmpty()booleanGets the value of theneedsViewportLayoutproperty.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>>voidvoidsetCellFactory(Function<T, C> cellFactory) Sets the value of thecellFactoryproperty.voidsetCellSize(io.github.palexdev.mfxcore.base.beans.SizeBean cellSize) Sets the value of thecellSizeproperty.protected voidsetGridHelper(GridHelper gridHelper) Sets the value of thegridHelperproperty.voidsetGridHelperFactory(Supplier<GridHelper> gridHelperFactory) Sets the value of thegridHelperFactoryproperty.voidsetHPos(double hPos) Sets the value of thehPosproperty.voidSets the value of theitemsproperty.protected voidsetNeedsViewportLayout(boolean needsViewportLayout) Sets the value of theneedsViewportLayoutproperty.voidsetVPos(double vPos) Sets the value of thevPosproperty.size()intMethods 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, tooltipPropertyMethods 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, widthPropertyMethods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods 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, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 theestimatedLengthproperty.- Property description:
- Returns:
- the value of the
estimatedLengthproperty - See Also:
-
estimatedLengthProperty
- Returns:
- the
estimatedLengthproperty - See Also:
-
getEstimatedBreadth
public double getEstimatedBreadth()Gets the value of theestimatedBreadthproperty.- Property description:
- Returns:
- the value of the
estimatedBreadthproperty - See Also:
-
estimatedBreadthProperty
- Returns:
- the
estimatedBreadthproperty - See Also:
-
getState
Gets the value of thestateproperty.- Property description:
- Returns:
- the value of the
stateproperty - See Also:
-
stateProperty
- Returns:
- the
stateproperty - See Also:
-
getLastRowRange
Gets the value of thelastRowRangeproperty.- Property description:
- Returns:
- the value of the
lastRowRangeproperty - See Also:
-
lastRowRangeProperty
public ReadOnlyObjectProperty<io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>> lastRowRangeProperty()- Returns:
- the
lastRowRangeproperty - See Also:
-
getLastColumnRange
Gets the value of thelastColumnRangeproperty.- Property description:
- Returns:
- the value of the
lastColumnRangeproperty - See Also:
-
lastColumnRangeProperty
public ReadOnlyObjectProperty<io.github.palexdev.mfxcore.base.beans.range.NumberRange<Integer>> lastColumnRangeProperty()- Returns:
- the
lastColumnRangeproperty - See Also:
-
createDefaultSkin
- Overrides:
createDefaultSkinin classControl
-
getControlCssMetaData
- Overrides:
getControlCssMetaDatain classControl
-
getViewportManager
-
getItems
Gets the value of theitemsproperty.- Property description:
- Returns:
- the value of the
itemsproperty - See Also:
-
itemsProperty
- Returns:
- the
itemsproperty - See Also:
-
setItems
Sets the value of theitemsproperty.- Property description:
- Parameters:
items- the value for theitemsproperty- See Also:
-
getCellSize
public io.github.palexdev.mfxcore.base.beans.SizeBean getCellSize()Gets the value of thecellSizeproperty.- Property description:
- Returns:
- the value of the
cellSizeproperty - See Also:
-
cellSizeProperty
- Returns:
- the
cellSizeproperty - See Also:
-
setCellSize
public void setCellSize(io.github.palexdev.mfxcore.base.beans.SizeBean cellSize) Sets the value of thecellSizeproperty.- Property description:
- Parameters:
cellSize- the value for thecellSizeproperty- See Also:
-
getCellFactory
Gets the value of thecellFactoryproperty.- Property description:
- Returns:
- the value of the
cellFactoryproperty - See Also:
-
cellFactoryProperty
public io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<T,C> cellFactoryProperty()- Returns:
- the
cellFactoryproperty - See Also:
-
setCellFactory
Sets the value of thecellFactoryproperty.- Property description:
- Parameters:
cellFactory- the value for thecellFactoryproperty- See Also:
-
getVPos
public double getVPos()Gets the value of thevPosproperty.- Property description:
- Returns:
- the value of the
vPosproperty - See Also:
-
vPosProperty
- Returns:
- the
vPosproperty - See Also:
-
setVPos
public void setVPos(double vPos) Sets the value of thevPosproperty.- Property description:
- Parameters:
vPos- the value for thevPosproperty- See Also:
-
getHPos
public double getHPos()Gets the value of thehPosproperty.- Property description:
- Returns:
- the value of the
hPosproperty - See Also:
-
hPosProperty
- Returns:
- the
hPosproperty - See Also:
-
setHPos
public void setHPos(double hPos) Sets the value of thehPosproperty.- Property description:
- Parameters:
hPos- the value for thehPosproperty- See Also:
-
getGridHelper
Gets the value of thegridHelperproperty.- Property description:
- Returns:
- the value of the
gridHelperproperty - See Also:
-
gridHelperProperty
- Returns:
- the
gridHelperproperty - See Also:
-
setGridHelper
Sets the value of thegridHelperproperty.- Property description:
- Parameters:
gridHelper- the value for thegridHelperproperty- See Also:
-
getGridHelperFactory
Gets the value of thegridHelperFactoryproperty.- Property description:
- Returns:
- the value of the
gridHelperFactoryproperty - See Also:
-
gridHelperFactoryProperty
public io.github.palexdev.mfxcore.base.properties.functional.SupplierProperty<GridHelper> gridHelperFactoryProperty()- Returns:
- the
gridHelperFactoryproperty - See Also:
-
setGridHelperFactory
Sets the value of thegridHelperFactoryproperty.- Property description:
- Parameters:
gridHelperFactory- the value for thegridHelperFactoryproperty- See Also:
-
isNeedsViewportLayout
public boolean isNeedsViewportLayout()Gets the value of theneedsViewportLayoutproperty.- Property description:
- Returns:
- the value of the
needsViewportLayoutproperty - See Also:
-
needsViewportLayoutProperty
- Returns:
- the
needsViewportLayoutproperty - See Also:
-
setNeedsViewportLayout
protected void setNeedsViewportLayout(boolean needsViewportLayout) Sets the value of theneedsViewportLayoutproperty.- Property description:
- Parameters:
needsViewportLayout- the value for theneedsViewportLayoutproperty- See Also:
-