Interface DesignerRoot

  • All Known Implementing Classes:
    DesignerRootImpl

    public interface DesignerRoot
    Provides access to the globals of the app.
    Author:
    Clément Fournier
    • Method Detail

      • getService

        <T> T getService​(AppServiceDescriptor<T> descriptor)
        Gets the instance of a service shared by the app.
        Parameters:
        descriptor - Service descriptor
      • registerService

        <T> void registerService​(AppServiceDescriptor<T> descriptor,
                                 T component)
        Register a service for the given descriptor.
        Throws:
        java.lang.IllegalStateException - if the service was already registered to some other component
      • getMainStage

        javafx.stage.Stage getMainStage()
        Gets the main stage of the application.
        Returns:
        The main stage
      • isDeveloperMode

        boolean isDeveloperMode()
        If true, some more events are pushed to the event log, and console streams are open. This is enabled by the -v or --verbose option on command line for now.
      • isCtrlDownProperty

        org.reactfx.value.Val<java.lang.Boolean> isCtrlDownProperty()
        Returns true if the ctrl key is being pressed. Vetoed by any other key press.
      • shutdownServices

        void shutdownServices()
        Shutdown all registered service components that implement CloseableService. Called when the app exits.