Package org.minifx.fxmlloading.builders
Interface FxmlNodeBuilder
- 
- All Known Implementing Classes:
 AbstractFxmlNodeBuilder,NestableFxmlNodeBuilder,NonNestableFxmlNodeBuilder
public interface FxmlNodeBuilderAn interface for builders that allow to build nodes. Additionally to the common build method, they provide a method to query if the build will be possible, or not (canBuild()). 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javafx.scene.Parentbuild()Creates a new node, as described by preceding options given to the builder.booleancanBuild()Can be (optionally) called before the build method to check if the call tobuild()will be successful. 
 - 
 
- 
- 
Method Detail
- 
build
javafx.scene.Parent build()
Creates a new node, as described by preceding options given to the builder.- Returns:
 - the new instance of the node
 
 
- 
canBuild
boolean canBuild()
Can be (optionally) called before the build method to check if the call tobuild()will be successful. Even if this returnstrueit is not guaranteed that thebuild()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.- Returns:
 trueif a call tobuild()is promising,falseotherwise
 
 - 
 
 -