Class MetisHelpModule
java.lang.Object
io.github.tonywasher.joceanus.metis.help.MetisHelpModule
The help module that is implemented by each Help System.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRootEntry(MetisHelpEntry pEntry) Add root entry.static MetisHelpEntrydefineContentsEntry(String pName) Define Contents Help entry.static <K extends Enum<K> & MetisHelpModule.MetisHelpId>
MetisHelpEntrydefineHelpEntry(String pName, K pHelpId) Define Standard Help entry.static MetisHelpEntrydefineTitledContentsEntry(String pName, String pTitle) Define Contents Help entry.static <K extends Enum<K> & MetisHelpModule.MetisHelpId>
MetisHelpEntrydefineTitledHelpEntry(String pName, String pTitle, K pHelpId) Define Titled Help entry.protected TethysUIHTMLManager.TethysUIStyleSheetIdgetCSS()Obtain the CSS.Obtain the help entries.protected StringObtain the initial name.protected StringgetTitle()Obtain the title.protected <K extends Enum<K> & TethysUIHTMLManager.TethysUIStyleSheetId>
voidloadCSS(K pKey) Load CSS.protected voidLoad Help entries from the file system.voidsetInitialName(String pInitial) Set the initial name.
-
Field Details
-
HASH_PRIME
protected static final int HASH_PRIMEThe Hash prime.- See Also:
-
DOC_NAME
Document name for Help Contents.- See Also:
-
ATTR_INITIAL
Attribute name for Initial page.- See Also:
-
-
Constructor Details
-
MetisHelpModule
Constructor.- Parameters:
pTitle- the title
-
-
Method Details
-
setInitialName
Set the initial name.- Parameters:
pInitial- the initial name
-
getInitialName
Obtain the initial name.- Returns:
- the initial name
-
getTitle
Obtain the title.- Returns:
- the title
-
getCSS
Obtain the CSS.- Returns:
- the CSS
-
getHelpEntries
Obtain the help entries.- Returns:
- the help entries
-
addRootEntry
Add root entry.- Parameters:
pEntry- the entry- Returns:
- the HelpEntry
-
defineHelpEntry
public static <K extends Enum<K> & MetisHelpModule.MetisHelpId> MetisHelpEntry defineHelpEntry(String pName, K pHelpId) Define Standard Help entry.- Type Parameters:
K- the type of the key- Parameters:
pName- the namepHelpId- the helpId- Returns:
- the HelpEntry
-
defineTitledHelpEntry
public static <K extends Enum<K> & MetisHelpModule.MetisHelpId> MetisHelpEntry defineTitledHelpEntry(String pName, String pTitle, K pHelpId) Define Titled Help entry.- Type Parameters:
K- the type of the key- Parameters:
pName- the namepTitle- the titlepHelpId- the helpId- Returns:
- the HelpEntry
-
defineContentsEntry
Define Contents Help entry.- Parameters:
pName- the name- Returns:
- the HelpEntry
-
defineTitledContentsEntry
Define Contents Help entry.- Parameters:
pName- the namepTitle- the title- Returns:
- the HelpEntry
-
loadHelpPages
Load Help entries from the file system.- Throws:
OceanusException- on error
-
loadCSS
protected <K extends Enum<K> & TethysUIHTMLManager.TethysUIStyleSheetId> void loadCSS(K pKey) throws OceanusException Load CSS.- Type Parameters:
K- the keyType- Parameters:
pKey- the styleSheetKey- Throws:
OceanusException- on error
-