Class TreeTableCellSkinBuilder<S,T>
java.lang.Object
io.github.sosuisen.jfxbuilder.controls.TreeTableCellSkinBuilder<S,T>
The
TreeTableCellSkinBuilder
class constructs instances of the TreeTableCellSkin
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 TreeTableCellSkin
constructor
and returns an instance of the TreeTableCellSkinBuilder
.
You can use method chaining to call the builder methods for configuring the TreeTableCellSkin
.
Finally, invoke the build
method to generate an instance of the TreeTableCellSkin
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 TypeMethodDescriptionfinal TreeTableCellSkinBuilder<S,
T> addChildren
(Collection<? extends Node> col) Calls theaddAll
method on the ObservableList returned by theTreeTableCellSkin#getChildren()
method.final TreeTableCellSkinBuilder<S,
T> addChildren
(Node... elements) Calls theaddAll
method on the ObservableList returned by theTreeTableCellSkin#getChildren()
method.apply
(Consumer<TreeTableCellSkin<S, T>> func) Applies a function to the TreeTableCellSkin instance being constructed.build()
Builds and returns an instance of theTreeTableCellSkin
class.Applies a function to thecellSizeProperty
of the instance being constructed.static <S,
T> TreeTableCellSkinBuilder<S, T> create
(TreeTableCell<S, T> control) Accepts the constructor arguments ofTreeTableCellSkin(TreeTableCell)
and returns an instance ofTreeTableCellSkinBuilder<S, T>
.Applies a function to thetableColumnProperty
of the instance being constructed.
-
Method Details
-
create
Accepts the constructor arguments ofTreeTableCellSkin(TreeTableCell)
and returns an instance ofTreeTableCellSkinBuilder<S, T>
.- Returns:
- an instance of the
TreeTableCellSkinBuilder<S, T>
.
-
build
Builds and returns an instance of theTreeTableCellSkin
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
TreeTableCellSkin
class
-
apply
Applies a function to the TreeTableCellSkin instance being constructed. Most operations on the instance can be performed using this method.- Returns:
- builder instance
-
addChildren
Calls theaddAll
method on the ObservableList returned by theTreeTableCellSkin#getChildren()
method.- Returns:
- builder instance
-
addChildren
Calls theaddAll
method on the ObservableList returned by theTreeTableCellSkin#getChildren()
method.- Returns:
- builder instance
-
cellSizePropertyApply
Applies a function to thecellSizeProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-
tableColumnPropertyApply
public TreeTableCellSkinBuilder<S,T> tableColumnPropertyApply(Consumer<ReadOnlyObjectProperty<TreeTableColumn<S, T>>> op) Applies a function to thetableColumnProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
- Returns:
- builder instance
-