Package io.jmix.ui.component
Interface CompositeWithContextHelp
- All Superinterfaces:
HasContextHelp
- All Known Subinterfaces:
GroupFilter
- All Known Implementing Classes:
FilterImpl
,GroupFilterImpl
CompositeComponent
having a context help.
Default implementations delegate their execution to CompositeComponent.getComposition()
.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
default boolean
default void
Sets a context help icon click handler.default void
setContextHelpText
(String contextHelpText) Sets context help text.default void
setContextHelpTextHtmlEnabled
(boolean enabled) Defines if context help text can be presented as HTML.
-
Method Details
-
getContextHelpText
- Specified by:
getContextHelpText
in interfaceHasContextHelp
- Returns:
- context help text
-
setContextHelpText
Description copied from interface:HasContextHelp
Sets context help text. If set, then a special icon will be added for a field.- Specified by:
setContextHelpText
in interfaceHasContextHelp
- Parameters:
contextHelpText
- context help text to be set
-
isContextHelpTextHtmlEnabled
default boolean isContextHelpTextHtmlEnabled()- Specified by:
isContextHelpTextHtmlEnabled
in interfaceHasContextHelp
- Returns:
- true if field accepts context help text in HTML format, false otherwise
-
setContextHelpTextHtmlEnabled
default void setContextHelpTextHtmlEnabled(boolean enabled) Description copied from interface:HasContextHelp
Defines if context help text can be presented as HTML.- Specified by:
setContextHelpTextHtmlEnabled
in interfaceHasContextHelp
- Parameters:
enabled
- true if field accepts context help text in HTML format, false otherwise
-
getContextHelpIconClickHandler
@Nullable default Consumer<HasContextHelp.ContextHelpIconClickEvent> getContextHelpIconClickHandler()- Specified by:
getContextHelpIconClickHandler
in interfaceHasContextHelp
- Returns:
- a context help icon click handler
-
setContextHelpIconClickHandler
default void setContextHelpIconClickHandler(@Nullable Consumer<HasContextHelp.ContextHelpIconClickEvent> handler) Description copied from interface:HasContextHelp
Sets a context help icon click handler. If set, then a special icon will be added for a field. Click handler has priority over context help text, i.e. no tooltip with context help text will be shown if click listener is set.- Specified by:
setContextHelpIconClickHandler
in interfaceHasContextHelp
- Parameters:
handler
- the handler to set
-