Class DefaultPlatformService

    • Constructor Detail

      • DefaultPlatformService

        public DefaultPlatformService()
    • Method Detail

      • open

        public void open​(URL url)
                  throws IOException
        Description copied from interface: PlatformService
        Opens a URL in a platform-dependent way. Typically the URL is opened in an external web browser instance, but the behavior is ultimately defined by the available platform handler implementations.
        Specified by:
        open in interface PlatformService
        Throws:
        IOException
      • registerAppMenus

        public boolean registerAppMenus​(Object menus)
        Description copied from interface: PlatformService
        Informs the active platform handlers of a UI's newly created application menu structure. Each active platform handler may choose to do something platform-specific with the menus.
        Specified by:
        registerAppMenus in interface PlatformService
        Parameters:
        menus - The UI's newly created menu structure
        Returns:
        true iff the menus should not be added to the UI as normal because a platform handler did something platform-specific with them instead.
      • initialize

        public void initialize()
        Description copied from interface: Service
        Performs any needed initialization when the service is first loaded.

        NB: This method is not intended to be called directly. It is called by the service framework itself (specifically by the ServiceHelper) when initializing the service. It should not be called a second time.

        Specified by:
        initialize in interface Initializable
        Specified by:
        initialize in interface Service
        Specified by:
        initialize in interface SingletonService<Platform>
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Performs any needed cleanup of the object's services, in preparation for the object being retired (e.g., to make garbage collection possible).
        Specified by:
        dispose in interface Disposable