Class BaseHelpTheme<S extends Source,C>
java.lang.Object
studio.mevera.imperat.command.tree.help.theme.BaseHelpTheme<S,C>
- All Implemented Interfaces:
HelpTheme<S,C>
- Direct Known Subclasses:
TextHelpTheme
-
Nested Class Summary
Nested classes/interfaces inherited from interface studio.mevera.imperat.command.tree.help.theme.HelpTheme
HelpTheme.Option<T>, HelpTheme.PresentationStyle -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseHelpTheme(@NotNull HelpTheme.PresentationStyle style, int indentMultiplier, Function<C, HelpComponent<S, C>> componentFactory) protectedBaseHelpTheme(HelpTheme.PresentationStyle style, Function<C, HelpComponent<S, C>> componentFactory) -
Method Summary
Modifier and TypeMethodDescriptionfinal HelpComponent<S,C> abstract Cfinal @NotNull HelpComponent<S,C> abstract Cfinal @NotNull HelpComponent<S,C> abstract Cfinal @NotNull HelpComponent<S,C> getFooter(ExecutionContext<S> context) abstract CgetFooterContent(ExecutionContext<S> context) final @NotNull HelpComponent<S,C> getHeader(ExecutionContext<S> context) abstract CgetHeaderContent(ExecutionContext<S> context) final @NotNull HelpComponent<S,C> abstract Cintfinal @NotNull HelpComponent<S,C> abstract C<T> TgetOptionValue(@NotNull HelpTheme.Option<T> option) @NotNull HelpTheme.PresentationStyleGets the preferred presentation style for this theme.<T> voidsetOptionValue(@NotNull HelpTheme.Option<T> option, T value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface studio.mevera.imperat.command.tree.help.theme.HelpTheme
getTreeBranch, getTreeIndent, getUsageFormatter
-
Constructor Details
-
BaseHelpTheme
protected BaseHelpTheme(@NotNull @NotNull HelpTheme.PresentationStyle style, int indentMultiplier, Function<C, HelpComponent<S, C>> componentFactory) -
BaseHelpTheme
protected BaseHelpTheme(HelpTheme.PresentationStyle style, Function<C, HelpComponent<S, C>> componentFactory)
-
-
Method Details
-
getPreferredStyle
Description copied from interface:HelpThemeGets the preferred presentation style for this theme.- Specified by:
getPreferredStylein interfaceHelpTheme<S extends Source,C> - Returns:
- the presentation style to use
-
getIndentMultiplier
public int getIndentMultiplier()- Specified by:
getIndentMultiplierin interfaceHelpTheme<S extends Source,C>
-
createEmptyContent
-
getBranchContent
-
getLastBranchContent
-
getIndentContent
-
getEmptyIndentContent
-
getHeaderContent
-
createEmptyComponent
- Specified by:
createEmptyComponentin interfaceHelpTheme<S extends Source,C>
-
getBranch
-
getLastBranch
- Specified by:
getLastBranchin interfaceHelpTheme<S extends Source,C>
-
getIndent
-
getEmptyIndent
- Specified by:
getEmptyIndentin interfaceHelpTheme<S extends Source,C>
-
getHeader
-
getOptionValue
- Specified by:
getOptionValuein interfaceHelpTheme<S extends Source,C>
-
setOptionValue
- Specified by:
setOptionValuein interfaceHelpTheme<S extends Source,C>
-