java.lang.Object
org.tentackle.fx.AbstractFxController
org.tentackle.fx.rdc.login.Backends
- All Implemented Interfaces:
FxController,org.tentackle.validate.ScopeConfigurator
Controller to add, edit and remove backends.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voideditBackends(String application, boolean system, Runnable updatedRunnable) Opens a dialog to edit the backend- and driver configurations.org.tentackle.session.BackendConfigurationGets the selected backend.Gets the runnable invoked when backends were updated.voidpersist()Persists currently edited backend and/or driver.
Invoked when dialog is closed.voidsetApplication(String application, boolean system) Sets the application name and loads the configured backends.voidsetUpdatedRunnable(Runnable updatedRunnable) Sets the runnable invoked when backends were updated.Methods inherited from class org.tentackle.fx.AbstractFxController
createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjections
-
Constructor Details
-
Backends
public Backends()
-
-
Method Details
-
editBackends
Opens a dialog to edit the backend- and driver configurations.- Parameters:
application- the application namesystem- true if user system preferences, else user preferencesupdatedRunnable- invoked whenever the backend were modified, null if none
-
configure
public void configure()- Specified by:
configurein interfaceFxController- Overrides:
configurein classAbstractFxController
-
setApplication
Sets the application name and loads the configured backends.- Parameters:
application- the application namesystem- true if use system preferences, else user preferences
-
getUpdatedRunnable
Gets the runnable invoked when backends were updated.- Returns:
- the runnable, null if none
-
setUpdatedRunnable
Sets the runnable invoked when backends were updated.- Parameters:
updatedRunnable- the runnable, null if none
-
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.
-