Class DesignerRootImpl

  • All Implemented Interfaces:
    DesignerRoot

    public final class DesignerRootImpl
    extends java.lang.Object
    implements DesignerRoot
    Interface for the singleton of the app.
    Since:
    6.0.0
    Author:
    Clément Fournier
    • Constructor Detail

      • DesignerRootImpl

        public DesignerRootImpl​(javafx.stage.Stage mainStage,
                                DesignerParams params,
                                javafx.application.HostServices hostServices)
    • Method Detail

      • getMainStage

        public javafx.stage.Stage getMainStage()
        Description copied from interface: DesignerRoot
        Gets the main stage of the application.
        Specified by:
        getMainStage in interface DesignerRoot
        Returns:
        The main stage
      • isDeveloperMode

        public boolean isDeveloperMode()
        Description copied from interface: DesignerRoot
        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.
        Specified by:
        isDeveloperMode in interface DesignerRoot
      • getService

        public <T> T getService​(AppServiceDescriptor<T> descriptor)
        Description copied from interface: DesignerRoot
        Gets the instance of a service shared by the app.
        Specified by:
        getService in interface DesignerRoot
        Parameters:
        descriptor - Service descriptor
      • isCtrlDownProperty

        public org.reactfx.value.Val<java.lang.Boolean> isCtrlDownProperty()
        Description copied from interface: DesignerRoot
        Returns true if the ctrl key is being pressed. Vetoed by any other key press.
        Specified by:
        isCtrlDownProperty in interface DesignerRoot