Class ReflectionSidecar<T>

java.lang.Object
org.fulib.fx.controller.internal.ReflectionSidecar<T>
All Implemented Interfaces:
FxSidecar<T>

public class ReflectionSidecar<T> extends Object implements FxSidecar<T>
  • Constructor Details

  • Method Details

    • init

      public void init(T instance, Map<String,Object> params)
      Specified by:
      init in interface FxSidecar<T>
    • render

      public javafx.scene.Node render(T instance, Map<String,Object> params)
      Specified by:
      render in interface FxSidecar<T>
    • destroy

      public void destroy(T instance)
      Specified by:
      destroy in interface FxSidecar<T>
    • getResources

      @Nullable public @Nullable ResourceBundle getResources(T instance)
      Description copied from interface: FxSidecar
      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.
      Specified by:
      getResources in interface FxSidecar<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

      @Nullable public @Nullable String getTitle(T instance)
      Description copied from interface: FxSidecar
      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.
      Specified by:
      getTitle in interface FxSidecar<T>
      Parameters:
      instance - The controller instance
      Returns:
      The title of the controller