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 theaddAllmethod on the ObservableList returned by theTreeTableCellSkin#getChildren()method.final TreeTableCellSkinBuilder<S, T> addChildren(Node... elements) Calls theaddAllmethod 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 theTreeTableCellSkinclass.Applies a function to thecellSizePropertyof 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 thetableColumnPropertyof 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 theTreeTableCellSkinclass.Intermediate builder methods are not evaluated until the
buildmethod is called; in other words, they are evaluated lazily.- Returns:
- new instance of the
TreeTableCellSkinclass
-
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 theaddAllmethod on the ObservableList returned by theTreeTableCellSkin#getChildren()method.- Returns:
- builder instance
-
addChildren
Calls theaddAllmethod on the ObservableList returned by theTreeTableCellSkin#getChildren()method.- Returns:
- builder instance
-
cellSizePropertyApply
Applies a function to thecellSizePropertyof the instance being constructed. This serves as a shorthand form of theapplymethod.Example:
// Use apply .apply(obj -> obj.cellSizeProperty().bind(anotherProperty)) // Use shorthand form .cellSizePropertyApply(prop -> prop.bind(anotherProperty))- Returns:
- builder instance
-
tableColumnPropertyApply
public TreeTableCellSkinBuilder<S,T> tableColumnPropertyApply(Consumer<ReadOnlyObjectProperty<TreeTableColumn<S, T>>> op) Applies a function to thetableColumnPropertyof the instance being constructed. This serves as a shorthand form of theapplymethod.Example:
// Use apply .apply(obj -> obj.tableColumnProperty().bind(anotherProperty)) // Use shorthand form .tableColumnPropertyApply(prop -> prop.bind(anotherProperty))- Returns:
- builder instance
-