Class Backends

  • All Implemented Interfaces:
    org.tentackle.fx.FxController, org.tentackle.validate.ScopeConfigurator

    @FxControllerService(binding=BINDABLE_INHERITED)
    public class Backends
    extends org.tentackle.fx.AbstractFxController
    Controller to add, edit and remove backends.
    • Constructor Summary

      Constructors 
      Constructor Description
      Backends()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure()  
      static void editBackends​(java.lang.String application, boolean system)
      Opens a dialog to edit the backend- and driver configurations.
      org.tentackle.session.BackendConfiguration getBackend()
      Gets the selected backend.
      void persist()
      Persists currently edited backend and/or driver.
      Invoked when dialog is closed.
      void setApplication​(java.lang.String application, boolean system)
      Sets the application name and loads the configured backends.
      • Methods inherited from class org.tentackle.fx.AbstractFxController

        createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjections
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Backends

        public Backends()
    • Method Detail

      • editBackends

        public static void editBackends​(java.lang.String application,
                                        boolean system)
        Opens a dialog to edit the backend- and driver configurations.
        Parameters:
        application - the application name
        system - true if user system preferences, else user preferences
      • configure

        public void configure()
        Specified by:
        configure in interface org.tentackle.fx.FxController
        Overrides:
        configure in class org.tentackle.fx.AbstractFxController
      • setApplication

        public void setApplication​(java.lang.String application,
                                   boolean system)
        Sets the application name and loads the configured backends.
        Parameters:
        application - the application name
        system - true if use system preferences, else user preferences
      • getBackend

        public org.tentackle.session.BackendConfiguration getBackend()
        Gets the selected backend.
        Returns:
        the backend, null if none selected
      • persist

        public void persist()
        Persists currently edited backend and/or driver.
        Invoked when dialog is closed.