Class PagingGridTableView<T>

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
Type Parameters:
T - the type of items displayed in the table view
All Implemented Interfaces:
javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable
Direct Known Subclasses:
SimplePagingGridTableView

public class PagingGridTableView<T> extends ItemPagingControlBase<T>
The PagingGridTableView class is a control that combines a grid table with paging capabilities. This class facilitates the display of paginated data in a table format, supporting customizable columns, adjustable page size, and options to fill the last page with empty rows.
  • Property Details

  • Constructor Details

    • PagingGridTableView

      public PagingGridTableView()
      Default constructor for the PagingGridTableView class. This initializes the control and binds necessary properties to manage paging and display of items. The constructor sets up the following behavior: - Adds a specific style class named "paging-grid-table-view" to the control. - Binds the columns of the internal GridTableView to the columnsProperty of this control. - Sets the items of the internal GridTableView to the items provided by the current page. - Configures the `minNumberOfRowsProperty` of the internal GridTableView to ensure the proper number of rows are displayed, including empty rows if the last page should be filled. - Registers a listener on the `minNumberOfRowsProperty` to trigger a refresh when the property changes. Internally, this class uses the following additional methods and properties: - columnsProperty(): Provides access to the grid table's columns. - getItemsOnCurrentPage(): Supplies the items to display on the current page. - fillLastPageProperty(): Indicates whether the last page should be filled with empty rows if needed. - pageSizeProperty(): Defines the number of items per page. - refresh(): Rebuilds the view without reloading data.
  • Method Details

    • createDefaultSkin

      protected javafx.scene.control.Skin<?> createDefaultSkin()
      Overrides:
      createDefaultSkin in class javafx.scene.control.Control
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      Overrides:
      getUserAgentStylesheet in class javafx.scene.layout.Region
    • getContentBias

      public javafx.geometry.Orientation getContentBias()
      Overrides:
      getContentBias in class javafx.scene.Node
    • columnsProperty

      public final javafx.beans.property.ListProperty<GridTableColumn<T,?>> columnsProperty()
      Provides access to the list property containing the columns of the grid table.
      Returns:
      the list property of GridTableColumn<T, ?> objects representing the columns
      See Also:
    • getColumns

      public final javafx.collections.ObservableList<GridTableColumn<T,?>> getColumns()
      Gets the value of the columns property.
      Property description:
      Provides access to the list property containing the columns of the grid table.
      Returns:
      the value of the columns property
      See Also:
    • setColumns

      public final void setColumns(javafx.collections.ObservableList<GridTableColumn<T,?>> columns)
      Sets the value of the columns property.
      Property description:
      Provides access to the list property containing the columns of the grid table.
      Parameters:
      columns - the value for the columns property
      See Also:
    • getGridTableView

      public final GridTableView<T> getGridTableView()
      Returns the wrapped table view.
      Returns:
      the table view
    • refresh

      public final void refresh()
      Triggers a rebuild of the view without reloading data.
      Specified by:
      refresh in class ItemPagingControlBase<T>