Class HSLFHyperlink

    • Method Detail

      • getAddress

        public java.lang.String getAddress()
        Description copied from interface: Hyperlink
        Hyperlink address. Depending on the hyperlink type it can be URL, e-mail, path to a file, etc.
        Specified by:
        getAddress in interface Hyperlink
        Returns:
        the address of this hyperlink
      • setAddress

        public void setAddress​(java.lang.String str)
        Description copied from interface: Hyperlink
        Hyperlink address. Depending on the hyperlink type it can be URL, e-mail, path to a file, etc.
        Specified by:
        setAddress in interface Hyperlink
        Parameters:
        str - the address of this hyperlink
      • getId

        public int getId()
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: Hyperlink
        Return text label for this hyperlink
        Specified by:
        getLabel in interface Hyperlink
        Returns:
        text to display
      • setLabel

        public void setLabel​(java.lang.String label)
        Description copied from interface: Hyperlink
        Sets text label for this hyperlink
        Specified by:
        setLabel in interface Hyperlink
        Parameters:
        label - text label for this hyperlink
      • getStartIndex

        public int getStartIndex()
        Gets the beginning character position
        Returns:
        the beginning character position
      • setStartIndex

        public void setStartIndex​(int startIndex)
        Sets the beginning character position
        Parameters:
        startIndex - the beginning character position
      • getEndIndex

        public int getEndIndex()
        Gets the ending character position
        Returns:
        the ending character position
      • setEndIndex

        public void setEndIndex​(int endIndex)
        Sets the ending character position
        Parameters:
        endIndex - the ending character position
      • find

        public static java.util.List<HSLFHyperlink> find​(HSLFTextShape shape)
        Find hyperlinks in a text shape
        Parameters:
        shape - TextRun to lookup hyperlinks in
        Returns:
        found hyperlinks or null if not found