Class Hyperlink

java.lang.Object
com.independentsoft.office.odf.Hyperlink
All Implemented Interfaces:
IContentElement, IParagraphContent

public class Hyperlink extends Object implements IParagraphContent
Represents a hyperlink.
  • Constructor Details

    • Hyperlink

      public Hyperlink()
      Initializes a new instance of the Hyperlink class.
  • Method Details

    • addSpace

      public void addSpace()
      Adds a single space to the content.
    • addSpace

      public void addSpace(int spaceCount)
      Adds a single space to the content.
      Parameters:
      spaceCount - the space count
    • addTab

      public void addTab()
      Adds a single tab to the content.
    • addLineBreak

      public void addLineBreak()
      Adds a single line break to the content.
    • add

      public void add(String text)
      Adds a String object to the content.
      Parameters:
      text - the text
    • add

      public void add(Text text)
      Adds a Text object to the content.
      Parameters:
      text - the text
    • add

      public void add(Annotation annotation)
      Adds an Annotation object to the content.
      Parameters:
      annotation - the annotation
    • add

      public void add(AttributedText attributedText)
      Adds an AttributedText object to the content.
      Parameters:
      attributedText - the attributed text
    • add

      public void add(Hyperlink hyperlink)
      Adds a Hyperlink object to the content.
      Parameters:
      hyperlink - the hyperlink
    • add

      public void add(Field field)
      Adds a Field object to the content.
      Parameters:
      field - the field
    • add

      public void add(Bookmark bookmark)
      Adds a Bookmark object to the content.
      Parameters:
      bookmark - the bookmark
    • add

      public void add(BookmarkStart bookmarkStart)
      Adds a BookmarkStart object to the content.
      Parameters:
      bookmarkStart - the bookmark start
    • add

      public void add(BookmarkEnd bookmarkEnd)
      Adds a BookmarkEnd object to the content.
      Parameters:
      bookmarkEnd - the bookmark end
    • add

      public void add(Change change)
      Adds a Change object to the content.
      Parameters:
      change - the change
    • add

      public void add(ChangeEnd changeEnd)
      Adds a ChangeEnd object to the content.
      Parameters:
      changeEnd - the change end
    • add

      public void add(ChangeStart changeStart)
      Adds a ChangeStart object to the content.
      Parameters:
      changeStart - the change start
    • add

      public void add(Shape shape)
      Adds a Shape object to the content.
      Parameters:
      shape - the shape
    • add

      public void add(Note note)
      Adds a Note object to the content.
      Parameters:
      note - the note
    • add

      public void add(Ruby ruby)
      Adds a Ruby object to the content.
      Parameters:
      ruby - the ruby
    • add

      public void add(PointReference pointReference)
      Adds a PointReference object to the content.
      Parameters:
      pointReference - the point reference
    • add

      public void add(RangeReference rangeReference)
      Adds a RangeReference object to the content.
      Parameters:
      rangeReference - the range reference
    • add

      public void add(IParagraphContent paragraphContent)
      Adds an IParagraphContent object to the content.
      Parameters:
      paragraphContent - the paragraph content
    • getContentElements

      public List<IContentElement> getContentElements()
      Returns all content elements.
      Specified by:
      getContentElements in interface IContentElement
      Returns:
      A collection of content elements.
    • getParent

      public IContentElement getParent()
      Returns the parent content element.
      Specified by:
      getParent in interface IContentElement
      Returns:
      the parent
    • setParent

      public void setParent(IContentElement parent)
      Sets the parent content element.
      Specified by:
      setParent in interface IContentElement
      Parameters:
      parent - the new parent
    • clone

      public Hyperlink clone()
      Creates a new object that is a deep copy of the current instance.
      Specified by:
      clone in interface IContentElement
      Specified by:
      clone in interface IParagraphContent
      Overrides:
      clone in class Object
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current Hyperlink object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getContent

      public List<IParagraphContent> getContent()
      Contains the hyperlink content.
      Returns:
      the content
    • getEventListeners

      public List<IEventListener> getEventListeners()
      Contains the attachment of an event listener to a drawing shape.
      Returns:
      the event listeners
    • getName

      public String getName()
      Gets the name. The name can serve as a target for other hyperlinks. The name does not have to be unique.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the name. The name can serve as a target for other hyperlinks. The name does not have to be unique.
      Parameters:
      name - the new name
    • getTitle

      public String getTitle()
      Gets a short accessible description.
      Returns:
      the title
    • setTitle

      public void setTitle(String title)
      Sets a short accessible description.
      Parameters:
      title - the new title
    • getActuate

      public String getActuate()
      Gets the value onRequest or onLoad for the objects.
      Returns:
      the actuate
    • setActuate

      public void setActuate(String actuate)
      Sets the value onRequest or onLoad for the objects.
      Parameters:
      actuate - the new actuate
    • getLocation

      public String getLocation()
      Gets an URI of a document containing a source table.
      Returns:
      the location
    • setLocation

      public void setLocation(String location)
      Sets an URI of a document containing a source table.
      Parameters:
      location - the new location
    • getShow

      public String getShow()
      Gets the text style for an unvisited hyperlink.
      Returns:
      the show
    • setShow

      public void setShow(String show)
      Sets the text style for an unvisited hyperlink.
      Parameters:
      show - the new show
    • getTargetFrame

      public String getTargetFrame()
      Gets the name of a target frame.
      Returns:
      the target frame
    • setTargetFrame

      public void setTargetFrame(String targetFrame)
      Sets the name of a target frame.
      Parameters:
      targetFrame - the new target frame
    • getStyle

      public String getStyle()
      Gets the text style for an unvisited hyperlink.
      Returns:
      the style
    • setStyle

      public void setStyle(String style)
      Sets the text style for an unvisited hyperlink.
      Parameters:
      style - the new style
    • getVisitedStyle

      public String getVisitedStyle()
      Gets the style for a hyperlink that has been visited.
      Returns:
      the visited style
    • setVisitedStyle

      public void setVisitedStyle(String visitedStyle)
      Sets the style for a hyperlink that has been visited.
      Parameters:
      visitedStyle - the new visited style