Package org.minifx.fxmlloading.builders
Class AbstractFxmlNodeBuilder<F extends ControllerFactory>
- java.lang.Object
-
- org.minifx.fxmlloading.builders.AbstractFxmlNodeBuilder<F>
-
- All Implemented Interfaces:
FxmlNodeBuilder
- Direct Known Subclasses:
NestableFxmlNodeBuilder
,NonNestableFxmlNodeBuilder
public abstract class AbstractFxmlNodeBuilder<F extends ControllerFactory> extends java.lang.Object implements FxmlNodeBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.Parent
build()
Creates a new node, as described by preceding options given to the builder.boolean
canBuild()
Can be (optionally) called before the build method to check if the call toFxmlNodeBuilder.build()
will be successful.
-
-
-
Method Detail
-
canBuild
public final boolean canBuild()
Description copied from interface:FxmlNodeBuilder
Can be (optionally) called before the build method to check if the call toFxmlNodeBuilder.build()
will be successful. Even if this returnstrue
it is not guaranteed that theFxmlNodeBuilder.build()
method will for sure succeed (not throw an exception, but this method is more intended to check if with the options to the builder it makes sense at all to call the build method.- Specified by:
canBuild
in interfaceFxmlNodeBuilder
- Returns:
true
if a call toFxmlNodeBuilder.build()
is promising,false
otherwise
-
build
public final javafx.scene.Parent build()
Description copied from interface:FxmlNodeBuilder
Creates a new node, as described by preceding options given to the builder.- Specified by:
build
in interfaceFxmlNodeBuilder
- Returns:
- the new instance of the node
-
-