Package org.fulib.fx.controller.internal
Class ReflectionSidecar<T>
java.lang.Object
org.fulib.fx.controller.internal.ReflectionSidecar<T>
- All Implemented Interfaces:
FxSidecar<T>
-
Constructor Summary
ConstructorsConstructorDescriptionReflectionSidecar(ControllerManager controllerManager, Class<T> componentClass) -
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
-
Constructor Details
-
ReflectionSidecar
-
-
Method Details
-
init
-
render
-
destroy
-
getResources
Description copied from interface:FxSidecarReturns 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.- Specified by:
getResourcesin interfaceFxSidecar<T>- 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
-
getTitle
Description copied from interface:FxSidecarReturns 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.
-