Class MetisHelpEntry
java.lang.Object
io.github.tonywasher.joceanus.metis.help.MetisHelpEntry
Help Entry class. This class provides structure to the help system, providing parent child
relationships to implement chapters and also providing maps between the name of a help page and
the file that holds the HTML for the page
-
Constructor Summary
ConstructorsConstructorDescriptionMetisHelpEntry(String pName, String pTitle) Constructor for a table of contents element.MetisHelpEntry(String pName, String pTitle, K pHelpId) Constructor for an HTML element. -
Method Summary
Modifier and TypeMethodDescriptionaddChildEntry(MetisHelpEntry pChild) Add child entry.Obtain the children.Obtain the helpId.getHtml()Obtain the HTML.getName()Obtain the name.getTitle()Obtain the title.protected voidSet the HTML.toString()
-
Constructor Details
-
MetisHelpEntry
Constructor for an HTML element.- Type Parameters:
K- the key type- Parameters:
pName- the name by which this entry is referencedpTitle- the title for this page in the table of contentspHelpId- the helpId representing the HTML for this entry
-
MetisHelpEntry
Constructor for a table of contents element.- Parameters:
pName- the name by which this entry is referencedpTitle- the title for this page in the table of contents
-
-
Method Details
-
addChildEntry
Add child entry.- Parameters:
pChild- the child- Returns:
- the HelpEntry
-
getTitle
Obtain the title.- Returns:
- the title
-
getName
Obtain the name.- Returns:
- the name
-
getHelpId
Obtain the helpId.- Returns:
- the id
-
getChildren
Obtain the children.- Returns:
- the children
-
getHtml
Obtain the HTML.- Returns:
- the HTML
-
setHtml
Set the HTML.- Parameters:
pHtml- the HTML
-
toString
-