Class SceneBuilder
SceneBuilder
class constructs instances of the Scene
class
and offers a fluent interface for creating and configuring it.
This class includes a static create
method that accepts the constructor arguments of the original Scene
constructor
and returns an instance of the SceneBuilder
.
You can use method chaining to call the builder methods for configuring the Scene
.
Finally, invoke the build
method to generate an instance of the Scene
class.
Note 1: Intermediate builder methods are not evaluated until the build
method
is called, meaning they are evaluated lazily.
Note 2: The Scene
class does not have setters for the constructor arguments
width
, height
, depthBuffer
, and antiAliasing
,
but SceneBuilder
provides setters for them.
Example:
Scene scene = SceneBuilder
.withRoot(
HBoxBuilder
.withChildren(
TextFieldBuilder.create()
.textPropertyApply(prop -> prop.bindBidirectional(textProp))
.style("""
-fx-font-weight: bold;
-fx-alignment: center;
""")
.hGrowInHBox(Priority.ALWAYS)
.maxWidth(Double.MAX_VALUE)
.build(),
ButtonBuilder.create()
.text("Send")
.onAction(e -> System.out.println("Sending..."))
.minWidth(50)
.build()
)
.padding(new Insets(10))
.build()
)
.width(150) // custom setter
.height(100) // custom setter
.build();
- Author:
- Hidekazu Kubota <hidekazu.kubota@gmail.com>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SceneAntialiasing
static final boolean
falsestatic final double
-1static final double
-1 -
Method Summary
Modifier and TypeMethodDescriptionfinal SceneBuilder
addStylesheets
(String... elements) Calls theaddAll
method on the ObservableList returned by theScene#getStylesheets()
method.final SceneBuilder
addStylesheets
(Collection<? extends String> col) Calls theaddAll
method on the ObservableList returned by theScene#getStylesheets()
method.addStylesheetsText
(String css) Utility setter to add CSS string for this scene's contents.antiAliasing
(SceneAntialiasing antiAliasing) Sets the antiAliasing of the scene.Applies a function to the Scene instance being constructed.build()
Builds and returns an instance of theScene
class.A builder method that invokes thesetCamera
method on the instance being constructed.Applies a function to thecameraProperty
of the instance being constructed.static SceneBuilder
Accepts the constructor arguments ofScene(Parent)
and returns an instance of the SceneBuilder.static SceneBuilder
Accepts the constructor arguments ofScene(Parent, double, double)
and returns an instance of the SceneBuilder.static SceneBuilder
Accepts the constructor arguments ofScene(Parent, double, double, boolean)
and returns an instance of the SceneBuilder.static SceneBuilder
create
(Parent root, double width, double height, boolean depthBuffer, SceneAntialiasing antiAliasing) Accepts the constructor arguments ofScene(Parent, double, double, boolean, SceneAntialiasing)
and returns an instance of the SceneBuilder.static SceneBuilder
Accepts the constructor arguments ofScene(Parent, double, double Paint)
and returns an instance of the SceneBuilder.static SceneBuilder
Accepts the constructor arguments ofScene(Parent, Paint)
and returns an instance of the SceneBuilder.A builder method that invokes thesetCursor
method on the instance being constructed.Applies a function to thecursorProperty
of the instance being constructed.depthBuffer
(boolean depthBuffer) Sets the depthBuffer of the scene.Applies a function to theeffectiveNodeOrientationProperty
of the instance being constructed.eventDispatcher
(EventDispatcher value) A builder method that invokes thesetEventDispatcher
method on the instance being constructed.Applies a function to theeventDispatcherProperty
of the instance being constructed.A builder method that invokes thesetFill
method on the instance being constructed.Applies a function to thefillProperty
of the instance being constructed.Applies a function to thefocusOwnerProperty
of the instance being constructed.height
(double height) Sets the height of the scene.Applies a function to theheightProperty
of the instance being constructed.nodeOrientation
(NodeOrientation orientation) A builder method that invokes thesetNodeOrientation
method on the instance being constructed.Applies a function to thenodeOrientationProperty
of the instance being constructed.onContextMenuRequested
(EventHandler<? super ContextMenuEvent> value) A builder method that invokes thesetOnContextMenuRequested
method on the instance being constructed.onContextMenuRequestedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super ContextMenuEvent>>> op) Applies a function to theonContextMenuRequestedProperty
of the instance being constructed.onDragDetected
(EventHandler<? super MouseEvent> value) A builder method that invokes thesetOnDragDetected
method on the instance being constructed.onDragDetectedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonDragDetectedProperty
of the instance being constructed.onDragDone
(EventHandler<? super DragEvent> value) A builder method that invokes thesetOnDragDone
method on the instance being constructed.onDragDonePropertyApply
(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op) Applies a function to theonDragDoneProperty
of the instance being constructed.onDragDropped
(EventHandler<? super DragEvent> value) A builder method that invokes thesetOnDragDropped
method on the instance being constructed.onDragDroppedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op) Applies a function to theonDragDroppedProperty
of the instance being constructed.onDragEntered
(EventHandler<? super DragEvent> value) A builder method that invokes thesetOnDragEntered
method on the instance being constructed.onDragEnteredPropertyApply
(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op) Applies a function to theonDragEnteredProperty
of the instance being constructed.onDragExited
(EventHandler<? super DragEvent> value) A builder method that invokes thesetOnDragExited
method on the instance being constructed.onDragExitedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op) Applies a function to theonDragExitedProperty
of the instance being constructed.onDragOver
(EventHandler<? super DragEvent> value) A builder method that invokes thesetOnDragOver
method on the instance being constructed.onDragOverPropertyApply
(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op) Applies a function to theonDragOverProperty
of the instance being constructed.onInputMethodTextChanged
(EventHandler<? super InputMethodEvent> value) A builder method that invokes thesetOnInputMethodTextChanged
method on the instance being constructed.onInputMethodTextChangedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super InputMethodEvent>>> op) Applies a function to theonInputMethodTextChangedProperty
of the instance being constructed.onKeyPressed
(EventHandler<? super KeyEvent> value) A builder method that invokes thesetOnKeyPressed
method on the instance being constructed.onKeyPressedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super KeyEvent>>> op) Applies a function to theonKeyPressedProperty
of the instance being constructed.onKeyReleased
(EventHandler<? super KeyEvent> value) A builder method that invokes thesetOnKeyReleased
method on the instance being constructed.onKeyReleasedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super KeyEvent>>> op) Applies a function to theonKeyReleasedProperty
of the instance being constructed.onKeyTyped
(EventHandler<? super KeyEvent> value) A builder method that invokes thesetOnKeyTyped
method on the instance being constructed.onKeyTypedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super KeyEvent>>> op) Applies a function to theonKeyTypedProperty
of the instance being constructed.onMouseClicked
(EventHandler<? super MouseEvent> value) A builder method that invokes thesetOnMouseClicked
method on the instance being constructed.onMouseClickedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseClickedProperty
of the instance being constructed.onMouseDragEntered
(EventHandler<? super MouseDragEvent> value) A builder method that invokes thesetOnMouseDragEntered
method on the instance being constructed.Applies a function to theonMouseDragEnteredProperty
of the instance being constructed.onMouseDragExited
(EventHandler<? super MouseDragEvent> value) A builder method that invokes thesetOnMouseDragExited
method on the instance being constructed.Applies a function to theonMouseDragExitedProperty
of the instance being constructed.onMouseDragged
(EventHandler<? super MouseEvent> value) A builder method that invokes thesetOnMouseDragged
method on the instance being constructed.onMouseDraggedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseDraggedProperty
of the instance being constructed.onMouseDragOver
(EventHandler<? super MouseDragEvent> value) A builder method that invokes thesetOnMouseDragOver
method on the instance being constructed.onMouseDragOverPropertyApply
(Consumer<ObjectProperty<EventHandler<? super MouseDragEvent>>> op) Applies a function to theonMouseDragOverProperty
of the instance being constructed.onMouseDragReleased
(EventHandler<? super MouseDragEvent> value) A builder method that invokes thesetOnMouseDragReleased
method on the instance being constructed.Applies a function to theonMouseDragReleasedProperty
of the instance being constructed.onMouseEntered
(EventHandler<? super MouseEvent> value) A builder method that invokes thesetOnMouseEntered
method on the instance being constructed.onMouseEnteredPropertyApply
(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseEnteredProperty
of the instance being constructed.onMouseExited
(EventHandler<? super MouseEvent> value) A builder method that invokes thesetOnMouseExited
method on the instance being constructed.onMouseExitedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseExitedProperty
of the instance being constructed.onMouseMoved
(EventHandler<? super MouseEvent> value) A builder method that invokes thesetOnMouseMoved
method on the instance being constructed.onMouseMovedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseMovedProperty
of the instance being constructed.onMousePressed
(EventHandler<? super MouseEvent> value) A builder method that invokes thesetOnMousePressed
method on the instance being constructed.onMousePressedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMousePressedProperty
of the instance being constructed.onMouseReleased
(EventHandler<? super MouseEvent> value) A builder method that invokes thesetOnMouseReleased
method on the instance being constructed.onMouseReleasedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseReleasedProperty
of the instance being constructed.onRotate
(EventHandler<? super RotateEvent> value) A builder method that invokes thesetOnRotate
method on the instance being constructed.onRotatePropertyApply
(Consumer<ObjectProperty<EventHandler<? super RotateEvent>>> op) Applies a function to theonRotateProperty
of the instance being constructed.onRotationFinished
(EventHandler<? super RotateEvent> value) A builder method that invokes thesetOnRotationFinished
method on the instance being constructed.onRotationFinishedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super RotateEvent>>> op) Applies a function to theonRotationFinishedProperty
of the instance being constructed.onRotationStarted
(EventHandler<? super RotateEvent> value) A builder method that invokes thesetOnRotationStarted
method on the instance being constructed.onRotationStartedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super RotateEvent>>> op) Applies a function to theonRotationStartedProperty
of the instance being constructed.onScroll
(EventHandler<? super ScrollEvent> value) A builder method that invokes thesetOnScroll
method on the instance being constructed.onScrollFinished
(EventHandler<? super ScrollEvent> value) A builder method that invokes thesetOnScrollFinished
method on the instance being constructed.onScrollFinishedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super ScrollEvent>>> op) Applies a function to theonScrollFinishedProperty
of the instance being constructed.onScrollPropertyApply
(Consumer<ObjectProperty<EventHandler<? super ScrollEvent>>> op) Applies a function to theonScrollProperty
of the instance being constructed.onScrollStarted
(EventHandler<? super ScrollEvent> value) A builder method that invokes thesetOnScrollStarted
method on the instance being constructed.onScrollStartedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super ScrollEvent>>> op) Applies a function to theonScrollStartedProperty
of the instance being constructed.onSwipeDown
(EventHandler<? super SwipeEvent> value) A builder method that invokes thesetOnSwipeDown
method on the instance being constructed.onSwipeDownPropertyApply
(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op) Applies a function to theonSwipeDownProperty
of the instance being constructed.onSwipeLeft
(EventHandler<? super SwipeEvent> value) A builder method that invokes thesetOnSwipeLeft
method on the instance being constructed.onSwipeLeftPropertyApply
(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op) Applies a function to theonSwipeLeftProperty
of the instance being constructed.onSwipeRight
(EventHandler<? super SwipeEvent> value) A builder method that invokes thesetOnSwipeRight
method on the instance being constructed.onSwipeRightPropertyApply
(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op) Applies a function to theonSwipeRightProperty
of the instance being constructed.onSwipeUp
(EventHandler<? super SwipeEvent> value) A builder method that invokes thesetOnSwipeUp
method on the instance being constructed.onSwipeUpPropertyApply
(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op) Applies a function to theonSwipeUpProperty
of the instance being constructed.onTouchMoved
(EventHandler<? super TouchEvent> value) A builder method that invokes thesetOnTouchMoved
method on the instance being constructed.onTouchMovedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op) Applies a function to theonTouchMovedProperty
of the instance being constructed.onTouchPressed
(EventHandler<? super TouchEvent> value) A builder method that invokes thesetOnTouchPressed
method on the instance being constructed.onTouchPressedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op) Applies a function to theonTouchPressedProperty
of the instance being constructed.onTouchReleased
(EventHandler<? super TouchEvent> value) A builder method that invokes thesetOnTouchReleased
method on the instance being constructed.onTouchReleasedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op) Applies a function to theonTouchReleasedProperty
of the instance being constructed.onTouchStationary
(EventHandler<? super TouchEvent> value) A builder method that invokes thesetOnTouchStationary
method on the instance being constructed.onTouchStationaryPropertyApply
(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op) Applies a function to theonTouchStationaryProperty
of the instance being constructed.onZoom
(EventHandler<? super ZoomEvent> value) A builder method that invokes thesetOnZoom
method on the instance being constructed.onZoomFinished
(EventHandler<? super ZoomEvent> value) A builder method that invokes thesetOnZoomFinished
method on the instance being constructed.onZoomFinishedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super ZoomEvent>>> op) Applies a function to theonZoomFinishedProperty
of the instance being constructed.onZoomPropertyApply
(Consumer<ObjectProperty<EventHandler<? super ZoomEvent>>> op) Applies a function to theonZoomProperty
of the instance being constructed.onZoomStarted
(EventHandler<? super ZoomEvent> value) A builder method that invokes thesetOnZoomStarted
method on the instance being constructed.onZoomStartedPropertyApply
(Consumer<ObjectProperty<EventHandler<? super ZoomEvent>>> op) Applies a function to theonZoomStartedProperty
of the instance being constructed.A builder method that invokes thesetRoot
method on the instance being constructed.Applies a function to therootProperty
of the instance being constructed.A builder method that invokes thesetUserAgentStylesheet
method on the instance being constructed.Applies a function to theuserAgentStylesheetProperty
of the instance being constructed.A builder method that invokes thesetUserData
method on the instance being constructed.width
(double width) Sets the width of the scene.Applies a function to thewidthProperty
of the instance being constructed.Applies a function to thewindowProperty
of the instance being constructed.static SceneBuilder
Performs the same processing as thecreate(javafx.scene.Parent)
method.Applies a function to thexProperty
of the instance being constructed.Applies a function to theyProperty
of the instance being constructed.
-
Field Details
-
DEFAULT_WIDTH
public static final double DEFAULT_WIDTH-1- See Also:
-
DEFAULT_HEIGHT
public static final double DEFAULT_HEIGHT-1- See Also:
-
DEFAULT_DEPTH_BUFFER
public static final boolean DEFAULT_DEPTH_BUFFERfalse- See Also:
-
DEFAULT_ANTI_ALIASING
-
-
Method Details
-
withRoot
Performs the same processing as thecreate(javafx.scene.Parent)
method. This alias ensures consistency with other methods, such as thewithChildren
method found in container classes.- Returns:
- an instance of the SceneBuilder.
-
width
Sets the width of the scene. The default value isDEFAULT_WIDTH
.- Returns:
- builder instance
-
height
Sets the height of the scene. The default value isDEFAULT_HEIGHT
.- Returns:
- builder instance
-
depthBuffer
Sets the depthBuffer of the scene. The default value isDEFAULT_DEPTH_BUFFER
.- Returns:
- builder instance
-
antiAliasing
Sets the antiAliasing of the scene. The default value isDEFAULT_ANTI_ALIASING
.- Returns:
- builder instance
-
create
Accepts the constructor arguments ofScene(Parent)
and returns an instance of the SceneBuilder.- Returns:
- an instance of the SceneBuilder.
-
create
Accepts the constructor arguments ofScene(Parent, Paint)
and returns an instance of the SceneBuilder.- Returns:
- an instance of the SceneBuilder.
-
create
Accepts the constructor arguments ofScene(Parent, double, double)
and returns an instance of the SceneBuilder.- Returns:
- an instance of the SceneBuilder.
-
create
Accepts the constructor arguments ofScene(Parent, double, double Paint)
and returns an instance of the SceneBuilder.- Returns:
- an instance of the SceneBuilder.
-
create
Accepts the constructor arguments ofScene(Parent, double, double, boolean)
and returns an instance of the SceneBuilder.- Returns:
- an instance of the SceneBuilder.
-
create
public static SceneBuilder create(Parent root, double width, double height, boolean depthBuffer, SceneAntialiasing antiAliasing) Accepts the constructor arguments ofScene(Parent, double, double, boolean, SceneAntialiasing)
and returns an instance of the SceneBuilder.- Returns:
- an instance of the SceneBuilder.
-
build
Builds and returns an instance of theScene
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
Scene
class
-
addStylesheetsText
Utility setter to add CSS string for this scene's contents. For example:SceneBuilder builder = SceneBuilder.create() .addStylesheetsText(".my-label { -fx-text-fill: white; }") .build();
- Parameters:
css
- CSS string
-
apply
Applies a function to the Scene instance being constructed. Most operations on the instance can be performed using this method.- Returns:
- builder instance
-
camera
A builder method that invokes thesetCamera
method on the instance being constructed.- Returns:
- builder instance
-
cursor
A builder method that invokes thesetCursor
method on the instance being constructed.- Returns:
- builder instance
-
eventDispatcher
A builder method that invokes thesetEventDispatcher
method on the instance being constructed.- Returns:
- builder instance
-
fill
A builder method that invokes thesetFill
method on the instance being constructed.- Returns:
- builder instance
-
nodeOrientation
A builder method that invokes thesetNodeOrientation
method on the instance being constructed.- Returns:
- builder instance
-
onContextMenuRequested
A builder method that invokes thesetOnContextMenuRequested
method on the instance being constructed.- Returns:
- builder instance
-
onDragDetected
A builder method that invokes thesetOnDragDetected
method on the instance being constructed.- Returns:
- builder instance
-
onDragDone
A builder method that invokes thesetOnDragDone
method on the instance being constructed.- Returns:
- builder instance
-
onDragDropped
A builder method that invokes thesetOnDragDropped
method on the instance being constructed.- Returns:
- builder instance
-
onDragEntered
A builder method that invokes thesetOnDragEntered
method on the instance being constructed.- Returns:
- builder instance
-
onDragExited
A builder method that invokes thesetOnDragExited
method on the instance being constructed.- Returns:
- builder instance
-
onDragOver
A builder method that invokes thesetOnDragOver
method on the instance being constructed.- Returns:
- builder instance
-
onInputMethodTextChanged
A builder method that invokes thesetOnInputMethodTextChanged
method on the instance being constructed.- Returns:
- builder instance
-
onKeyPressed
A builder method that invokes thesetOnKeyPressed
method on the instance being constructed.- Returns:
- builder instance
-
onKeyReleased
A builder method that invokes thesetOnKeyReleased
method on the instance being constructed.- Returns:
- builder instance
-
onKeyTyped
A builder method that invokes thesetOnKeyTyped
method on the instance being constructed.- Returns:
- builder instance
-
onMouseClicked
A builder method that invokes thesetOnMouseClicked
method on the instance being constructed.- Returns:
- builder instance
-
onMouseDragEntered
A builder method that invokes thesetOnMouseDragEntered
method on the instance being constructed.- Returns:
- builder instance
-
onMouseDragExited
A builder method that invokes thesetOnMouseDragExited
method on the instance being constructed.- Returns:
- builder instance
-
onMouseDragOver
A builder method that invokes thesetOnMouseDragOver
method on the instance being constructed.- Returns:
- builder instance
-
onMouseDragReleased
A builder method that invokes thesetOnMouseDragReleased
method on the instance being constructed.- Returns:
- builder instance
-
onMouseDragged
A builder method that invokes thesetOnMouseDragged
method on the instance being constructed.- Returns:
- builder instance
-
onMouseEntered
A builder method that invokes thesetOnMouseEntered
method on the instance being constructed.- Returns:
- builder instance
-
onMouseExited
A builder method that invokes thesetOnMouseExited
method on the instance being constructed.- Returns:
- builder instance
-
onMouseMoved
A builder method that invokes thesetOnMouseMoved
method on the instance being constructed.- Returns:
- builder instance
-
onMousePressed
A builder method that invokes thesetOnMousePressed
method on the instance being constructed.- Returns:
- builder instance
-
onMouseReleased
A builder method that invokes thesetOnMouseReleased
method on the instance being constructed.- Returns:
- builder instance
-
onRotate
A builder method that invokes thesetOnRotate
method on the instance being constructed.- Returns:
- builder instance
-
onRotationFinished
A builder method that invokes thesetOnRotationFinished
method on the instance being constructed.- Returns:
- builder instance
-
onRotationStarted
A builder method that invokes thesetOnRotationStarted
method on the instance being constructed.- Returns:
- builder instance
-
onScroll
A builder method that invokes thesetOnScroll
method on the instance being constructed.- Returns:
- builder instance
-
onScrollFinished
A builder method that invokes thesetOnScrollFinished
method on the instance being constructed.- Returns:
- builder instance
-
onScrollStarted
A builder method that invokes thesetOnScrollStarted
method on the instance being constructed.- Returns:
- builder instance
-
onSwipeDown
A builder method that invokes thesetOnSwipeDown
method on the instance being constructed.- Returns:
- builder instance
-
onSwipeLeft
A builder method that invokes thesetOnSwipeLeft
method on the instance being constructed.- Returns:
- builder instance
-
onSwipeRight
A builder method that invokes thesetOnSwipeRight
method on the instance being constructed.- Returns:
- builder instance
-
onSwipeUp
A builder method that invokes thesetOnSwipeUp
method on the instance being constructed.- Returns:
- builder instance
-
onTouchMoved
A builder method that invokes thesetOnTouchMoved
method on the instance being constructed.- Returns:
- builder instance
-
onTouchPressed
A builder method that invokes thesetOnTouchPressed
method on the instance being constructed.- Returns:
- builder instance
-
onTouchReleased
A builder method that invokes thesetOnTouchReleased
method on the instance being constructed.- Returns:
- builder instance
-
onTouchStationary
A builder method that invokes thesetOnTouchStationary
method on the instance being constructed.- Returns:
- builder instance
-
onZoom
A builder method that invokes thesetOnZoom
method on the instance being constructed.- Returns:
- builder instance
-
onZoomFinished
A builder method that invokes thesetOnZoomFinished
method on the instance being constructed.- Returns:
- builder instance
-
onZoomStarted
A builder method that invokes thesetOnZoomStarted
method on the instance being constructed.- Returns:
- builder instance
-
root
A builder method that invokes thesetRoot
method on the instance being constructed.- Returns:
- builder instance
-
userAgentStylesheet
A builder method that invokes thesetUserAgentStylesheet
method on the instance being constructed.- Returns:
- builder instance
-
userData
A builder method that invokes thesetUserData
method on the instance being constructed.- Returns:
- builder instance
-
addStylesheets
Calls theaddAll
method on the ObservableList returned by theScene#getStylesheets()
method.- Returns:
- builder instance
-
addStylesheets
Calls theaddAll
method on the ObservableList returned by theScene#getStylesheets()
method.- Returns:
- builder instance
-
cameraPropertyApply
Applies a function to thecameraProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.cameraProperty().bind(anotherProperty)) // Use shorthand form .cameraPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
cursorPropertyApply
Applies a function to thecursorProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.cursorProperty().bind(anotherProperty)) // Use shorthand form .cursorPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
effectiveNodeOrientationPropertyApply
public SceneBuilder effectiveNodeOrientationPropertyApply(Consumer<ReadOnlyObjectProperty<NodeOrientation>> op) Applies a function to theeffectiveNodeOrientationProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.effectiveNodeOrientationProperty().bind(anotherProperty)) // Use shorthand form .effectiveNodeOrientationPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
eventDispatcherPropertyApply
Applies a function to theeventDispatcherProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.eventDispatcherProperty().bind(anotherProperty)) // Use shorthand form .eventDispatcherPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
fillPropertyApply
Applies a function to thefillProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.fillProperty().bind(anotherProperty)) // Use shorthand form .fillPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
focusOwnerPropertyApply
Applies a function to thefocusOwnerProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.focusOwnerProperty().bind(anotherProperty)) // Use shorthand form .focusOwnerPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
heightPropertyApply
Applies a function to theheightProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.heightProperty().bind(anotherProperty)) // Use shorthand form .heightPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
nodeOrientationPropertyApply
Applies a function to thenodeOrientationProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.nodeOrientationProperty().bind(anotherProperty)) // Use shorthand form .nodeOrientationPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onContextMenuRequestedPropertyApply
public SceneBuilder onContextMenuRequestedPropertyApply(Consumer<ObjectProperty<EventHandler<? super ContextMenuEvent>>> op) Applies a function to theonContextMenuRequestedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onContextMenuRequestedProperty().bind(anotherProperty)) // Use shorthand form .onContextMenuRequestedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onDragDetectedPropertyApply
public SceneBuilder onDragDetectedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonDragDetectedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onDragDetectedProperty().bind(anotherProperty)) // Use shorthand form .onDragDetectedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onDragDonePropertyApply
public SceneBuilder onDragDonePropertyApply(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op) Applies a function to theonDragDoneProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onDragDoneProperty().bind(anotherProperty)) // Use shorthand form .onDragDonePropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onDragDroppedPropertyApply
public SceneBuilder onDragDroppedPropertyApply(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op) Applies a function to theonDragDroppedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onDragDroppedProperty().bind(anotherProperty)) // Use shorthand form .onDragDroppedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onDragEnteredPropertyApply
public SceneBuilder onDragEnteredPropertyApply(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op) Applies a function to theonDragEnteredProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onDragEnteredProperty().bind(anotherProperty)) // Use shorthand form .onDragEnteredPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onDragExitedPropertyApply
public SceneBuilder onDragExitedPropertyApply(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op) Applies a function to theonDragExitedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onDragExitedProperty().bind(anotherProperty)) // Use shorthand form .onDragExitedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onDragOverPropertyApply
public SceneBuilder onDragOverPropertyApply(Consumer<ObjectProperty<EventHandler<? super DragEvent>>> op) Applies a function to theonDragOverProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onDragOverProperty().bind(anotherProperty)) // Use shorthand form .onDragOverPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onInputMethodTextChangedPropertyApply
public SceneBuilder onInputMethodTextChangedPropertyApply(Consumer<ObjectProperty<EventHandler<? super InputMethodEvent>>> op) Applies a function to theonInputMethodTextChangedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onInputMethodTextChangedProperty().bind(anotherProperty)) // Use shorthand form .onInputMethodTextChangedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onKeyPressedPropertyApply
public SceneBuilder onKeyPressedPropertyApply(Consumer<ObjectProperty<EventHandler<? super KeyEvent>>> op) Applies a function to theonKeyPressedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onKeyPressedProperty().bind(anotherProperty)) // Use shorthand form .onKeyPressedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onKeyReleasedPropertyApply
public SceneBuilder onKeyReleasedPropertyApply(Consumer<ObjectProperty<EventHandler<? super KeyEvent>>> op) Applies a function to theonKeyReleasedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onKeyReleasedProperty().bind(anotherProperty)) // Use shorthand form .onKeyReleasedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onKeyTypedPropertyApply
public SceneBuilder onKeyTypedPropertyApply(Consumer<ObjectProperty<EventHandler<? super KeyEvent>>> op) Applies a function to theonKeyTypedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onKeyTypedProperty().bind(anotherProperty)) // Use shorthand form .onKeyTypedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMouseClickedPropertyApply
public SceneBuilder onMouseClickedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseClickedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMouseClickedProperty().bind(anotherProperty)) // Use shorthand form .onMouseClickedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMouseDragEnteredPropertyApply
public SceneBuilder onMouseDragEnteredPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseDragEvent>>> op) Applies a function to theonMouseDragEnteredProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMouseDragEnteredProperty().bind(anotherProperty)) // Use shorthand form .onMouseDragEnteredPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMouseDragExitedPropertyApply
public SceneBuilder onMouseDragExitedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseDragEvent>>> op) Applies a function to theonMouseDragExitedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMouseDragExitedProperty().bind(anotherProperty)) // Use shorthand form .onMouseDragExitedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMouseDragOverPropertyApply
public SceneBuilder onMouseDragOverPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseDragEvent>>> op) Applies a function to theonMouseDragOverProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMouseDragOverProperty().bind(anotherProperty)) // Use shorthand form .onMouseDragOverPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMouseDragReleasedPropertyApply
public SceneBuilder onMouseDragReleasedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseDragEvent>>> op) Applies a function to theonMouseDragReleasedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMouseDragReleasedProperty().bind(anotherProperty)) // Use shorthand form .onMouseDragReleasedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMouseDraggedPropertyApply
public SceneBuilder onMouseDraggedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseDraggedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMouseDraggedProperty().bind(anotherProperty)) // Use shorthand form .onMouseDraggedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMouseEnteredPropertyApply
public SceneBuilder onMouseEnteredPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseEnteredProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMouseEnteredProperty().bind(anotherProperty)) // Use shorthand form .onMouseEnteredPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMouseExitedPropertyApply
public SceneBuilder onMouseExitedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseExitedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMouseExitedProperty().bind(anotherProperty)) // Use shorthand form .onMouseExitedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMouseMovedPropertyApply
public SceneBuilder onMouseMovedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseMovedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMouseMovedProperty().bind(anotherProperty)) // Use shorthand form .onMouseMovedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMousePressedPropertyApply
public SceneBuilder onMousePressedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMousePressedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMousePressedProperty().bind(anotherProperty)) // Use shorthand form .onMousePressedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onMouseReleasedPropertyApply
public SceneBuilder onMouseReleasedPropertyApply(Consumer<ObjectProperty<EventHandler<? super MouseEvent>>> op) Applies a function to theonMouseReleasedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onMouseReleasedProperty().bind(anotherProperty)) // Use shorthand form .onMouseReleasedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onRotatePropertyApply
public SceneBuilder onRotatePropertyApply(Consumer<ObjectProperty<EventHandler<? super RotateEvent>>> op) Applies a function to theonRotateProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onRotateProperty().bind(anotherProperty)) // Use shorthand form .onRotatePropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onRotationFinishedPropertyApply
public SceneBuilder onRotationFinishedPropertyApply(Consumer<ObjectProperty<EventHandler<? super RotateEvent>>> op) Applies a function to theonRotationFinishedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onRotationFinishedProperty().bind(anotherProperty)) // Use shorthand form .onRotationFinishedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onRotationStartedPropertyApply
public SceneBuilder onRotationStartedPropertyApply(Consumer<ObjectProperty<EventHandler<? super RotateEvent>>> op) Applies a function to theonRotationStartedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onRotationStartedProperty().bind(anotherProperty)) // Use shorthand form .onRotationStartedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onScrollFinishedPropertyApply
public SceneBuilder onScrollFinishedPropertyApply(Consumer<ObjectProperty<EventHandler<? super ScrollEvent>>> op) Applies a function to theonScrollFinishedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onScrollFinishedProperty().bind(anotherProperty)) // Use shorthand form .onScrollFinishedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onScrollPropertyApply
public SceneBuilder onScrollPropertyApply(Consumer<ObjectProperty<EventHandler<? super ScrollEvent>>> op) Applies a function to theonScrollProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onScrollProperty().bind(anotherProperty)) // Use shorthand form .onScrollPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onScrollStartedPropertyApply
public SceneBuilder onScrollStartedPropertyApply(Consumer<ObjectProperty<EventHandler<? super ScrollEvent>>> op) Applies a function to theonScrollStartedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onScrollStartedProperty().bind(anotherProperty)) // Use shorthand form .onScrollStartedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onSwipeDownPropertyApply
public SceneBuilder onSwipeDownPropertyApply(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op) Applies a function to theonSwipeDownProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onSwipeDownProperty().bind(anotherProperty)) // Use shorthand form .onSwipeDownPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onSwipeLeftPropertyApply
public SceneBuilder onSwipeLeftPropertyApply(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op) Applies a function to theonSwipeLeftProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onSwipeLeftProperty().bind(anotherProperty)) // Use shorthand form .onSwipeLeftPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onSwipeRightPropertyApply
public SceneBuilder onSwipeRightPropertyApply(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op) Applies a function to theonSwipeRightProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onSwipeRightProperty().bind(anotherProperty)) // Use shorthand form .onSwipeRightPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onSwipeUpPropertyApply
public SceneBuilder onSwipeUpPropertyApply(Consumer<ObjectProperty<EventHandler<? super SwipeEvent>>> op) Applies a function to theonSwipeUpProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onSwipeUpProperty().bind(anotherProperty)) // Use shorthand form .onSwipeUpPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onTouchMovedPropertyApply
public SceneBuilder onTouchMovedPropertyApply(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op) Applies a function to theonTouchMovedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onTouchMovedProperty().bind(anotherProperty)) // Use shorthand form .onTouchMovedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onTouchPressedPropertyApply
public SceneBuilder onTouchPressedPropertyApply(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op) Applies a function to theonTouchPressedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onTouchPressedProperty().bind(anotherProperty)) // Use shorthand form .onTouchPressedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onTouchReleasedPropertyApply
public SceneBuilder onTouchReleasedPropertyApply(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op) Applies a function to theonTouchReleasedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onTouchReleasedProperty().bind(anotherProperty)) // Use shorthand form .onTouchReleasedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onTouchStationaryPropertyApply
public SceneBuilder onTouchStationaryPropertyApply(Consumer<ObjectProperty<EventHandler<? super TouchEvent>>> op) Applies a function to theonTouchStationaryProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onTouchStationaryProperty().bind(anotherProperty)) // Use shorthand form .onTouchStationaryPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onZoomFinishedPropertyApply
public SceneBuilder onZoomFinishedPropertyApply(Consumer<ObjectProperty<EventHandler<? super ZoomEvent>>> op) Applies a function to theonZoomFinishedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onZoomFinishedProperty().bind(anotherProperty)) // Use shorthand form .onZoomFinishedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onZoomPropertyApply
public SceneBuilder onZoomPropertyApply(Consumer<ObjectProperty<EventHandler<? super ZoomEvent>>> op) Applies a function to theonZoomProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onZoomProperty().bind(anotherProperty)) // Use shorthand form .onZoomPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
onZoomStartedPropertyApply
public SceneBuilder onZoomStartedPropertyApply(Consumer<ObjectProperty<EventHandler<? super ZoomEvent>>> op) Applies a function to theonZoomStartedProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.onZoomStartedProperty().bind(anotherProperty)) // Use shorthand form .onZoomStartedPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
rootPropertyApply
Applies a function to therootProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.rootProperty().bind(anotherProperty)) // Use shorthand form .rootPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
userAgentStylesheetPropertyApply
Applies a function to theuserAgentStylesheetProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.userAgentStylesheetProperty().bind(anotherProperty)) // Use shorthand form .userAgentStylesheetPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
widthPropertyApply
Applies a function to thewidthProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.widthProperty().bind(anotherProperty)) // Use shorthand form .widthPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
windowPropertyApply
Applies a function to thewindowProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.windowProperty().bind(anotherProperty)) // Use shorthand form .windowPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
xPropertyApply
Applies a function to thexProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.xProperty().bind(anotherProperty)) // Use shorthand form .xPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-
yPropertyApply
Applies a function to theyProperty
of the instance being constructed. This serves as a shorthand form of theapply
method.Example:
// Use apply .apply(obj -> obj.yProperty().bind(anotherProperty)) // Use shorthand form .yPropertyApply(prop -> prop.bind(anotherProperty))
- Returns:
- builder instance
-