Class BrowserEffigy

    • Field Detail

      • staticFactory

        public static BrowserEffigy.Factory staticFactory
        A reference to the most recently created factory for this effigy. This is provided for use by HTMLViewer and Configuration when following hyperlinks that specify that they should be opened by a browser.
    • Constructor Detail

      • BrowserEffigy

        public BrowserEffigy​(Workspace workspace)
        Create a new effigy in the specified workspace with an empty string for its name.
        Parameters:
        workspace - The workspace for this effigy.
    • Method Detail

      • newBrowserEffigy

        public static BrowserEffigy newBrowserEffigy​(CompositeEntity container,
                                                     java.net.URL base,
                                                     java.net.URL in)
                                              throws java.lang.Exception
        Create a new effigy in the given container by reading the specified URL. If the specified URL is null, then create a blank effigy. The extension of the URL is not checked, so this will open any file. The new effigy will have a new instance of DefaultStyledDocument associated with it.
        Parameters:
        container - The container for the effigy.
        base - The base for relative file references, or null if there are no relative file references. This is ignored in this class.
        in - The input URL.
        Returns:
        A new instance of BrowserEffigy.
        Throws:
        java.lang.Exception - If the URL cannot be read, or if the data is malformed in some way.