Class TablePositionBuilder<S,T>
java.lang.Object
io.github.sosuisen.jfxbuilder.controls.TablePositionBuilder<S,T>
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 Summary
Modifier and TypeMethodDescriptionapply(Consumer<TablePosition<S, T>> func) Applies a function to the TablePosition instance being constructed.build()Builds and returns an instance of theTablePositionclass.static <S,T> TablePositionBuilder <S, T> create(TableView<S> tableView, int row, TableColumn<S, T> tableColumn) Accepts the constructor arguments ofTablePosition(TableView, int, TableColumn)and returns an instance ofTablePositionBuilder<S, T>.
-
Method Details
-
create
public static <S,T> TablePositionBuilder<S,T> create(TableView<S> tableView, int row, TableColumn<S, T> tableColumn) Accepts the constructor arguments ofTablePosition(TableView, int, TableColumn)and returns an instance ofTablePositionBuilder<S, T>.- Returns:
- an instance of the
TablePositionBuilder<S, T>.
-
build
Builds and returns an instance of theTablePositionclass.Intermediate builder methods are not evaluated until the
buildmethod is called; in other words, they are evaluated lazily.- Returns:
- new instance of the
TablePositionclass
-
apply
Applies a function to the TablePosition instance being constructed. Most operations on the instance can be performed using this method.- Returns:
- builder instance
-