Class InlineHyperlink

All Implemented Interfaces:
HasClickHandlers, HasAttachHandlers, HasHandlers, HasDirectionEstimator, HasSafeHtml, EventListener, HasDirectionalSafeHtml, HasDirectionalText, HasHTML, HasText, HasVisibility, IsWidget, SourcesClickEvents

public class InlineHyperlink extends Hyperlink
A widget that serves as an "internal" hyperlink. That is, it is a link to another state of the running application. It should behave exactly like Hyperlink, save that it lays out as an inline element, not block.

Built-in Bidi Text Support

This widget is capable of automatically adjusting its direction according to its content. This feature is controlled by Hyperlink.setDirectionEstimator(boolean) or passing a DirectionEstimator parameter to the constructor, and is off by default.

CSS Style Rules

  • .gwt-InlineHyperlink { }
  • Constructor Details

    • InlineHyperlink

      public InlineHyperlink()
      Creates an empty hyperlink.
    • InlineHyperlink

      public InlineHyperlink(SafeHtml html, 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:
    • InlineHyperlink

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

      public InlineHyperlink(SafeHtml html, DirectionEstimator directionEstimator, String targetHistoryToken)
      Creates a hyperlink with its html and target history token specified.
      Parameters:
      html - the hyperlink's html
      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
      See Also:
    • InlineHyperlink

      public InlineHyperlink(String text, 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(String text, HasDirection.Direction dir, 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(String text, DirectionEstimator directionEstimator, 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(String text, boolean asHTML, 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: