Class EmptyLink

  • All Implemented Interfaces:
    Link

    public class EmptyLink
    extends Object
    Represents a link with no link text.
    • Constructor Detail

      • EmptyLink

        public EmptyLink​(Link delegate)
    • Method Detail

      • getDelegate

        public Link getDelegate()
      • getBody

        public LinkBody<?> getBody()
        Specified by:
        getBody in interface Link
        Returns:
        the body of the link (this may be text or an image)
      • getTooltip

        public String getTooltip()
        Specified by:
        getTooltip in interface Link
        Returns:
        tooltip
      • updateDestination

        public Link updateDestination​(ResourceIdentifier destination)
        Description copied from interface: Link
        Returns a new instance of this link with an updated destination.
        Specified by:
        updateDestination in interface Link
        Parameters:
        destination - the updated destination
        Returns:
        a new instance with the updated destination.
      • getAnchor

        public String getAnchor()
        Specified by:
        getAnchor in interface Link
        Returns:
        link anchor
      • getTarget

        public Optional<String> getTarget()
        Description copied from interface: Link
        Returns the target attribute for the link. Only "_blank" is supported.
        Specified by:
        getTarget in interface Link
        Returns:
        target attribute
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object