Class InlineHyperlink

    • Constructor Detail

      • InlineHyperlink

        public InlineHyperlink()
        Creates an empty hyperlink.
      • InlineHyperlink

        public InlineHyperlink​(SafeHtml html,
                               java.lang.String targetHistoryToken)
        Creates a hyperlink with its html and target history token specified.
        Parameters:
        html - the hyperlink's html
        targetHistoryToken - the history token to which it will link
        See Also:
        Hyperlink.setTargetHistoryToken(java.lang.String)
      • InlineHyperlink

        public InlineHyperlink​(java.lang.String text,
                               java.lang.String targetHistoryToken)
        Creates a hyperlink with its text and target history token specified.
        Parameters:
        text - the hyperlink's text
        targetHistoryToken - the history token to which it will link
      • InlineHyperlink

        public InlineHyperlink​(java.lang.String text,
                               HasDirection.Direction dir,
                               java.lang.String targetHistoryToken)
        Creates a hyperlink with its text and target history token specified.
        Parameters:
        text - the hyperlink's text
        dir - the text's direction
        targetHistoryToken - the history token to which it will link
      • InlineHyperlink

        public InlineHyperlink​(java.lang.String text,
                               DirectionEstimator directionEstimator,
                               java.lang.String targetHistoryToken)
        Creates a hyperlink with its text and target history token specified.
        Parameters:
        text - the hyperlink's text
        directionEstimator - A DirectionEstimator object used for automatic direction adjustment. For convenience, Hyperlink.DEFAULT_DIRECTION_ESTIMATOR can be used.
        targetHistoryToken - the history token to which it will link
      • InlineHyperlink

        public InlineHyperlink​(java.lang.String text,
                               boolean asHTML,
                               java.lang.String targetHistoryToken)
        Creates a hyperlink with its text and target history token specified.
        Parameters:
        text - the hyperlink's text
        asHTML - true to treat the specified text as html
        targetHistoryToken - the history token to which it will link
        See Also:
        Hyperlink.setTargetHistoryToken(java.lang.String)