Package jexer.help

Class Link


  • public class Link
    extends java.lang.Object
    A Link is a section of text with a reference to a Topic.
    • Constructor Summary

      Constructors 
      Constructor Description
      Link​(java.lang.String topic, java.lang.String text, int index)
      Public constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIndex()
      Get the word index for this link.
      java.lang.String getText()
      Get the link text.
      java.lang.String getTopic()
      Get the topic.
      int getWordCount()
      Get the number of words in this link.
      java.lang.String toString()
      Generate a human-readable string for this widget.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Link

        public Link​(java.lang.String topic,
                    java.lang.String text,
                    int index)
        Public constructor.
        Parameters:
        topic - the topic to point to
        text - the text inside the link tag
        index - the word count index
    • Method Detail

      • getTopic

        public java.lang.String getTopic()
        Get the topic.
        Returns:
        the topic
      • getText

        public java.lang.String getText()
        Get the link text.
        Returns:
        the text inside the link tag
      • getIndex

        public int getIndex()
        Get the word index for this link.
        Returns:
        the word number (from the beginning of topic text) that corresponds to the first word of this link
      • getWordCount

        public int getWordCount()
        Get the number of words in this link.
        Returns:
        the number of words in this link
      • toString

        public java.lang.String toString()
        Generate a human-readable string for this widget.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a human-readable string