Package io.jmix.ui.component
Interface GridLayout
- All Superinterfaces:
- Component,- Component.BelongToFrame,- Component.HasCaption,- Component.HasDescription,- Component.HasIcon,- ComponentContainer,- HasComponents,- HasContextHelp,- HasHtmlCaption,- HasHtmlDescription,- HasHtmlSanitizer,- HasMargin,- HasRequiredIndicator,- HasSpacing,- LayoutClickNotifier,- ShortcutNotifier
- All Known Implementing Classes:
- GridLayoutImpl
@StudioComponent(caption="GridLayout",
                 category="Containers",
                 xmlElement="gridLayout",
                 icon="io/jmix/ui/icon/container/gridLayout.svg",
                 canvasBehaviour=CONTAINER,
                 containerType=GRID,
                 documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/containers/grid-layout.html")
public interface GridLayout
extends ComponentContainer, HasSpacing, HasMargin, Component.BelongToFrame, Component.HasIcon, Component.HasCaption, HasContextHelp, LayoutClickNotifier, ShortcutNotifier, HasHtmlCaption, HasHtmlDescription, HasRequiredIndicator, HasHtmlSanitizer
A layout where the components are laid out on a grid using cell coordinates.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classDefines a rectangular area of cells in a GridLayout.Nested classes/interfaces inherited from interface io.jmix.ui.component.ComponentComponent.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.HasContextHelpHasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.LayoutClickNotifierLayoutClickNotifier.LayoutClickEvent
- 
Field SummaryFieldsFields inherited from interface io.jmix.ui.component.ComponentAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidfloatgetColumnExpandRatio(int col) intgetComponent(int columnIndex, int rowIndex) Gets the Component at given row and column.getComponentArea(Component component) Returns information about the area where given component is laid in the GridLayout.default ComponentgetComponentNN(int columnIndex, int rowIndex) Gets the Component at given row and column.floatgetRowExpandRatio(int row) intgetRows()voidsetColumnExpandRatio(int col, float ratio) voidsetColumns(int columns) voidsetRowExpandRatio(int row, float ratio) voidsetRows(int rows) Methods inherited from interface io.jmix.ui.component.ComponentaddStyleName, 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.BelongToFramegetFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.HasCaptiongetCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescriptiongetDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcongetIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.ComponentContaineradd, add, remove, remove, removeAllMethods inherited from interface io.jmix.ui.component.HasComponentsfocusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStreamMethods inherited from interface io.jmix.ui.component.HasContextHelpgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasHtmlCaptionisCaptionAsHtml, setCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlDescriptionisDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizerisHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasMargingetMargin, setMargin, setMargin, setMarginMethods inherited from interface io.jmix.ui.component.HasRequiredIndicatorisRequiredIndicatorVisible, setRequiredIndicatorVisibleMethods inherited from interface io.jmix.ui.component.HasSpacinggetSpacing, setSpacingMethods inherited from interface io.jmix.ui.component.LayoutClickNotifieraddLayoutClickListenerMethods inherited from interface io.jmix.ui.component.ShortcutNotifieraddShortcutAction, removeShortcutAction
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Method Details- 
getColumnExpandRatiofloat getColumnExpandRatio(int col) 
- 
setColumnExpandRatiovoid setColumnExpandRatio(int col, float ratio) 
- 
getRowExpandRatiofloat getRowExpandRatio(int row) 
- 
setRowExpandRatiovoid setRowExpandRatio(int row, float ratio) 
- 
add
- 
add
- 
getRowsint getRows()
- 
setRowsvoid setRows(int rows) 
- 
getColumnsint getColumns()
- 
setColumnsvoid setColumns(int columns) 
- 
getComponentGets the Component at given row and column.- Parameters:
- columnIndex- the column index, starting from 0 for the leftmost column.
- rowIndex- the row index, starting from 0 for the topmost row.
- Returns:
- Component in given cell or null if empty
 
- 
getComponentNNGets the Component at given row and column.- Parameters:
- columnIndex- the column index, starting from 0 for the leftmost column.
- rowIndex- the row index, starting from 0 for the topmost row.
- Returns:
- component. Throws exception if not found.
 
- 
getComponentAreaReturns information about the area where given component is laid in the GridLayout.- Parameters:
- component- the component whose area information is requested.
- Returns:
- an Area object that contains information how component is laid in the grid
 
 
-