Package io.jmix.ui.component
Interface HtmlBoxLayout
- All Superinterfaces:
Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon,ComponentContainer,HasComponents,HasContextHelp,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer,HasRequiredIndicator
- All Known Implementing Classes:
HtmlBoxLayoutImpl
@StudioComponent(caption="HtmlBox",
category="Containers",
xmlElement="htmlBox",
icon="io/jmix/ui/icon/container/htmlBox.svg",
canvasBehaviour=CONTAINER,
containerType=VERTICAL,
documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/containers/html-box-layout.html")
public interface HtmlBoxLayout
extends ComponentContainer, Component.BelongToFrame, Component.HasIcon, Component.HasCaption, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasRequiredIndicator, HasHtmlSanitizer
A container component with freely designed layout and style. The layout consists of items with textually represented
locations. Each item contains one sub-component, which can be any component, such as a layout. The adapter and theme
are responsible for rendering the layout with a given style by placing the items in the defined locations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent -
Field Summary
FieldsFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptionReturns filename of the related HTML template.voidsetTemplateContents(String templateContents) Sets the contents of the template used to draw the custom layout.voidsetTemplateName(String templateName) Sets filename of the related HTML template inside theme/layouts directory.Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.ComponentContainer
add, add, remove, remove, removeAllMethods inherited from interface io.jmix.ui.component.HasComponents
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStreamMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasHtmlCaption
isCaptionAsHtml, setCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasRequiredIndicator
isRequiredIndicatorVisible, setRequiredIndicatorVisible
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getTemplateName
Returns filename of the related HTML template. -
setTemplateName
@StudioProperty(name="template", type=FILE_REF, options={"html","themes/${themeName}/layouts/"}) void setTemplateName(@Nullable String templateName) Sets filename of the related HTML template inside theme/layouts directory. -
getTemplateContents
- Returns:
- the contents of the template
-
setTemplateContents
Sets the contents of the template used to draw the custom layout.
-