Package jexer.help
Class Topic
- java.lang.Object
-
- jexer.help.Topic
-
-
Constructor Summary
Constructors Constructor Description Topic(java.lang.String title, java.lang.String text)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Topic that)
Comparison operator.java.util.Set<java.lang.String>
getIndexKeys()
Get the index keys.java.util.List<Link>
getLinks()
Get the links.java.lang.String
getText()
Get the topic text.java.lang.String
getTitle()
Get the topic title.java.lang.String
toString()
Generate a human-readable string for this widget.
-
-
-
Method Detail
-
getTitle
public java.lang.String getTitle()
Get the topic title.- Returns:
- the title
-
getText
public java.lang.String getText()
Get the topic text.- Returns:
- the text
-
getIndexKeys
public java.util.Set<java.lang.String> getIndexKeys()
Get the index keys.- Returns:
- the keys
-
getLinks
public java.util.List<Link> getLinks()
Get the links.- Returns:
- the links
-
compareTo
public int compareTo(Topic that)
Comparison operator.- Specified by:
compareTo
in interfacejava.lang.Comparable<Topic>
- Parameters:
that
- another Topic instance- Returns:
- comparison by topic title
-
toString
public java.lang.String toString()
Generate a human-readable string for this widget.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a human-readable string
-
-