Package io.jmix.ui.component
Interface ScrollBoxLayout
- All Superinterfaces:
Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon,ComponentContainer,HasComponents,HasContextHelp,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer,HasMargin,HasOrientation,HasRequiredIndicator,HasSpacing,LayoutClickNotifier,OrderedContainer,ShortcutNotifier
- All Known Implementing Classes:
ScrollBoxLayoutImpl
@StudioComponent(caption="VerticalScrollBox",
category="Containers",
xmlElement="scrollBox",
icon="io/jmix/ui/icon/container/verticalScrollBox.svg",
canvasBehaviour=CONTAINER,
containerType=SCROLL_BOX,
unsupportedProperties="orientation",
documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/containers/scroll-box-layout.html")
public interface ScrollBoxLayout
extends OrderedContainer, Component.BelongToFrame, HasMargin, HasSpacing, HasOrientation, Component.HasIcon, Component.HasCaption, ShortcutNotifier, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasRequiredIndicator, LayoutClickNotifier, HasHtmlSanitizer
Component container that shows scrollbars if its content does not fit the viewport.
-
Nested Class Summary
Nested ClassesNested 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.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.HasOrientation
HasOrientation.OrientationNested classes/interfaces inherited from interface io.jmix.ui.component.LayoutClickNotifier
LayoutClickNotifier.LayoutClickEvent -
Field Summary
FieldsFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatintGets scroll left offset.intGets scroll top offset.voidsetContentHeight(String height) Sets content height.voidsetContentMaxHeight(String maxHeight) Sets maximum CSS height for content.voidsetContentMaxWidth(String maxWidth) Sets maximum CSS width for content.voidsetContentMinHeight(String minHeight) Sets minimum CSS height for content.voidsetContentMinWidth(String minWidth) Sets minimum CSS width for content.voidsetContentWidth(String width) Sets content width.voidsetScrollBarPolicy(ScrollBoxLayout.ScrollBarPolicy scrollBarPolicy) voidsetScrollLeft(int scrollLeft) Sets scroll left offset.voidsetScrollTop(int scrollTop) Sets scroll top offset.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.HasMargin
getMargin, setMargin, setMargin, setMarginMethods inherited from interface io.jmix.ui.component.HasOrientation
getOrientation, setOrientationMethods inherited from interface io.jmix.ui.component.HasRequiredIndicator
isRequiredIndicatorVisible, setRequiredIndicatorVisibleMethods inherited from interface io.jmix.ui.component.HasSpacing
getSpacing, setSpacingMethods inherited from interface io.jmix.ui.component.LayoutClickNotifier
addLayoutClickListenerMethods inherited from interface io.jmix.ui.component.OrderedContainer
add, getComponent, getComponentNN, indexOfMethods inherited from interface io.jmix.ui.component.ShortcutNotifier
addShortcutAction, removeShortcutAction
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getScrollBarPolicy
ScrollBoxLayout.ScrollBarPolicy getScrollBarPolicy() -
setScrollBarPolicy
-
setContentWidth
Sets content width.- Parameters:
width- width
-
getContentWidth
float getContentWidth()- Returns:
- content width value
-
getContentWidthSizeUnit
SizeUnit getContentWidthSizeUnit()- Returns:
- content width size unit
-
setContentHeight
Sets content height.- Parameters:
height- height
-
getContentHeight
float getContentHeight()- Returns:
- content height value
-
getContentHeightSizeUnit
SizeUnit getContentHeightSizeUnit()- Returns:
- content height size unit
-
setContentMinWidth
Sets minimum CSS width for content. Examples: "640px", "auto".- Parameters:
minWidth- minimum width
-
getContentMinWidth
- Returns:
- minimal content width
-
setContentMaxWidth
Sets maximum CSS width for content. Examples: "640px", "100%".- Parameters:
maxWidth- maximum width
-
getContentMaxWidth
- Returns:
- maximum content width
-
setContentMinHeight
Sets minimum CSS height for content. Examples: "640px", "auto".- Parameters:
minHeight- minimum height
-
getContentMinHeight
- Returns:
- minimum content width
-
setContentMaxHeight
Sets maximum CSS height for content. Examples: "640px", "100%".- Parameters:
maxHeight- maximum height
-
getContentMaxHeight
- Returns:
- maximum content width
-
getScrollLeft
int getScrollLeft()Gets scroll left offset.Scrolling offset is the number of pixels this scrollable has been scrolled right.
- Returns:
- horizontal scrolling position in pixels
-
setScrollLeft
void setScrollLeft(int scrollLeft) Sets scroll left offset.Scrolling offset is the number of pixels this scrollable has been scrolled right.
- Parameters:
scrollLeft- the xOffset
-
getScrollTop
int getScrollTop()Gets scroll top offset.Scrolling offset is the number of pixels this scrollable has been scrolled down.
- Returns:
- vertical scrolling position in pixels
-
setScrollTop
void setScrollTop(int scrollTop) Sets scroll top offset.Scrolling offset is the number of pixels this scrollable has been scrolled down.
- Parameters:
scrollTop- the yOffset
-