Module MaterialFX

Class MFXPaginatedTableViewSkin<T>

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>>

public class MFXPaginatedTableViewSkin<T> extends MFXTableViewSkin<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.

  • Constructor Details

    • MFXPaginatedTableViewSkin

      public MFXPaginatedTableViewSkin(MFXPaginatedTableView<T> tableView, io.github.palexdev.virtualizedfx.flow.simple.SimpleVirtualFlow<T,MFXTableRow<T>> rowsFlow)
  • Method Details