Package jexer.help
Class Link
- java.lang.Object
-
- jexer.help.Link
-
public class Link extends java.lang.ObjectA 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 intgetIndex()Get the word index for this link.java.lang.StringgetText()Get the link text.java.lang.StringgetTopic()Get the topic.intgetWordCount()Get the number of words in this link.java.lang.StringtoString()Generate a human-readable string for this widget.
-
-
-
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:
toStringin classjava.lang.Object- Returns:
- a human-readable string
-
-