Class HyperlinkHandler

    • Method Detail

      • scrollToElementWithId

        protected boolean scrollToElementWithId​(String id)
        Scrolls the help browser to the element with id id
        Parameters:
        id - the id
        Returns:
        true, if an element with this id was found and scrolling was successful; false, otherwise
      • getUrlFragment

        protected String getUrlFragment​(HyperlinkEvent e)
        Checks whether the hyperlink event originated on a <a ...> element with a relative href consisting of a URL fragment only, i.e. <a href="#thisIsALocalFragment">. If so, replies the fragment, i.e. "thisIsALocalFragment". Otherwise, replies null
        Parameters:
        e - the hyperlink event
        Returns:
        the local fragment or null