java.lang.Object
io.github.sosuisen.jfxbuilder.controls.TablePositionBuilder<S,T>

public class TablePositionBuilder<S,T> extends Object
The TablePositionBuilder class constructs instances of the TablePosition class and offers a fluent interface for creating and configuring it.

This class includes a static create method that accepts the same arguments as the original TablePosition constructor and returns an instance of the TablePositionBuilder.

You can use method chaining to call the builder methods for configuring the TablePosition. Finally, invoke the build method to generate an instance of the TablePosition class.

Note that intermediate builder methods are not evaluated until the build method is called, meaning they are evaluated lazily.

Author:
Hidekazu Kubota <hidekazu.kubota@gmail.com>
  • Method Details

    • create

      public static <S, T> TablePositionBuilder<S,T> create(TableView<S> tableView, int row, TableColumn<S,T> tableColumn)
      Accepts the constructor arguments of TablePosition(TableView, int, TableColumn) and returns an instance of TablePositionBuilder<S, T>.
      Returns:
      an instance of the TablePositionBuilder<S, T>.
    • build

      public TablePosition<S,T> build()
      Builds and returns an instance of the TablePosition class.

      Intermediate builder methods are not evaluated until the build method is called; in other words, they are evaluated lazily.

      Returns:
      new instance of the TablePosition class
    • apply

      public TablePositionBuilder<S,T> apply(Consumer<TablePosition<S,T>> func)
      Applies a function to the TablePosition instance being constructed. Most operations on the instance can be performed using this method.
      Returns:
      builder instance