Interface HelpTheme<S extends Source,C>
- Type Parameters:
S- the type of command source/consoleC- the type of the entries in the help component (can be String, Component, etc.)
- All Known Implementing Classes:
BaseHelpTheme,TextHelpTheme
public interface HelpTheme<S extends Source,C>
A theme for help documentation generation and presentation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic enumAvailable presentation styles for help display. -
Method Summary
Modifier and TypeMethodDescription@NotNull HelpComponent<S,C> @NotNull HelpComponent<S,C> @NotNull HelpComponent<S,C> getFooter(ExecutionContext<S> context) @NotNull HelpComponent<S,C> getHeader(ExecutionContext<S> context) @NotNull HelpComponent<S,C> int@NotNull HelpComponent<S,C> <T> TgetOptionValue(@NotNull HelpTheme.Option<T> option) @NotNull HelpTheme.PresentationStyleGets the preferred presentation style for this theme.default @NotNull HelpComponent<S,C> getTreeBranch(boolean isLast) default @NotNull HelpComponent<S,C> getTreeIndent(boolean hasMore) @NotNull UsageFormatter<S,C> <T> voidsetOptionValue(@NotNull HelpTheme.Option<T> option, T value)
-
Method Details
-
createEmptyComponent
HelpComponent<S,C> createEmptyComponent() -
getPreferredStyle
Gets the preferred presentation style for this theme.- Returns:
- the presentation style to use
-
getIndentMultiplier
int getIndentMultiplier() -
getBranch
-
getLastBranch
-
getIndent
-
getEmptyIndent
-
setOptionValue
-
getTreeBranch
-
getTreeIndent
-
getHeader
-
getOptionValue
-
getUsageFormatter
-