Package org.fulib.fx.controller.internal
Interface FxSidecar<T>
- All Known Implementing Classes:
ReflectionSidecar
public interface FxSidecar<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoid@Nullable ResourceBundlegetResources(T instance) Returns the resource bundle of the given instance if it has one.@Nullable StringReturns the title of the given controller instance if it has one.voidjavafx.scene.Node
-
Method Details
-
init
-
render
-
destroy
-
getResources
Returns the resource bundle of the given instance if it has one. If no resource bundle is set, the default resource bundle will be used. If no default resource bundle is set, null will be returned.- Parameters:
instance- The instance to get the resource bundle from- Returns:
- The resource bundle of the given instance if it has one or the default resource bundle
- Throws:
RuntimeException- If the instance has more than one field annotated withResource
-
getTitle
Returns the title of the given controller instance if it has one. If the title is a key, the title will be looked up in the resource bundle of the controller.- Parameters:
instance- The controller instance- Returns:
- The title of the controller
-