java.lang.Object
javafx.scene.control.SkinBase<MFXTableView<T>>
io.github.palexdev.materialfx.skins.MFXTableViewSkin<T>
io.github.palexdev.materialfx.skins.MFXPaginatedTableViewSkin<T>
- All Implemented Interfaces:
Skin<MFXTableView<T>>
This is the default skin implementation for
MFXPaginatedTableView.
Extends MFXTableViewSkin and just modifies the footer node to add a
MFXPagination control to it, responsible for changing the current page.
Little side note as a reminder too:
The layoutChildren(...) method has been overridden because it's the best place to properly
initialize the virtual flow minHeight property, since it's needed to wait until the cellHeight
is retrieved. It's also needed to move the viewport to the current page (if not 1), and for
some reason it's needed to delay the update with a PauseTransition otherwise an exception
is thrown.
-
Field Summary
Fields inherited from class io.github.palexdev.materialfx.skins.MFXTableViewSkin
columnsContainer, container, footer, rowsFlow -
Constructor Summary
ConstructorsConstructorDescriptionMFXPaginatedTableViewSkin(MFXPaginatedTableView<T> tableView, io.github.palexdev.virtualizedfx.flow.simple.SimpleVirtualFlow<T, MFXTableRow<T>> rowsFlow) -
Method Summary
Modifier and TypeMethodDescriptionprotected StackPaneResponsible for building the table's footer.protected doublecomputeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Methods inherited from class io.github.palexdev.materialfx.skins.MFXTableViewSkin
computeMaxHeight, computeMaxWidthMethods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMinHeight, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Constructor Details
-
MFXPaginatedTableViewSkin
public MFXPaginatedTableViewSkin(MFXPaginatedTableView<T> tableView, io.github.palexdev.virtualizedfx.flow.simple.SimpleVirtualFlow<T, MFXTableRow<T>> rowsFlow)
-
-
Method Details
-
computeMinWidth
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinWidthin classSkinBase<MFXTableView<T>>