Class AbstractStyleRegistry

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PROTOCOL
      URL protocol.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javafx.beans.property.ReadOnlyProperty<java.lang.String> getStylesheetContent​(java.lang.String url)
      Obtains the style sheet content.
      protected java.net.URL getUrl​(java.lang.String configurationPath, int version)
      Obtains the URL for the configuration path.
      static java.net.URLConnection openConnection​(java.net.URL url)
      Creates the URLStreamHandler.
      javafx.beans.property.ReadOnlyProperty<java.net.URL> registerStyle​(java.lang.String configurationPath, javafx.beans.property.ReadOnlyProperty<java.lang.String> stylesheetContent)
      =============== StyleRegistry =====================
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • AbstractStyleRegistry

        public AbstractStyleRegistry()
        Instantiate.
    • Method Detail

      • openConnection

        public static java.net.URLConnection openConnection​(java.net.URL url)
                                                     throws java.io.IOException
        Creates the URLStreamHandler.
        Parameters:
        url - URL to open.
        Returns:
        URLStreamHandler.
        Throws:
        java.io.IOException - If fails to open the URLConnection.
      • getStylesheetContent

        public javafx.beans.property.ReadOnlyProperty<java.lang.String> getStylesheetContent​(java.lang.String url)
        Obtains the style sheet content.
        Parameters:
        url - URL.
        Returns:
        ReadOnlyProperty to the content of the style sheet for the URL. May be null if editor no longer active.
      • getUrl

        protected java.net.URL getUrl​(java.lang.String configurationPath,
                                      int version)
        Obtains the URL for the configuration path.
        Parameters:
        configurationPath - Configuration path.
        version - Version of the content for the URL.
        Returns:
        URL for the configuration path.
      • registerStyle

        public javafx.beans.property.ReadOnlyProperty<java.net.URL> registerStyle​(java.lang.String configurationPath,
                                                                                  javafx.beans.property.ReadOnlyProperty<java.lang.String> stylesheetContent)
        =============== StyleRegistry =====================
        Specified by:
        registerStyle in interface StyleRegistry
        Parameters:
        configurationPath - Configuration path to the style.
        stylesheetContent - Style sheet content for the IVisualPart of the configuration item.
        Returns:
        ReadOnlyProperty to the URL String of the style.