public interface GridLayout extends Component.Container, Component.Spacing, Component.Margin, Component.BelongToFrame, Component.HasIcon, Component.HasCaption, Component.LayoutClickNotifier, Component.ShortcutNotifier
Modifier and Type | Interface and Description |
---|---|
static class |
GridLayout.Area
Defines a rectangular area of cells in a GridLayout.
|
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
void |
add(Component component,
int col,
int row) |
void |
add(Component component,
int col,
int row,
int col2,
int row2) |
float |
getColumnExpandRatio(int col) |
int |
getColumns() |
Component |
getComponent(int columnIndex,
int rowIndex)
Gets the Component at given row and column.
|
GridLayout.Area |
getComponentArea(Component component)
Returns information about the area where given component is laid in the
GridLayout.
|
default Component |
getComponentNN(int columnIndex,
int rowIndex)
Gets the Component at given row and column.
|
float |
getRowExpandRatio(int row) |
int |
getRows() |
void |
setColumnExpandRatio(int col,
float ratio) |
void |
setColumns(int columns) |
void |
setRowExpandRatio(int row,
float ratio) |
void |
setRows(int rows) |
add, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, remove, removeAll
getSpacing, setSpacing
getMargin, setMargin, setMargin, setMargin
getFrame, setFrame
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
getIcon, setIcon, setIconFromSet
getCaption, getDescription, setCaption, setDescription
addLayoutClickListener, removeLayoutClickListener
addShortcutAction, removeShortcutAction
static final java.lang.String NAME
float getColumnExpandRatio(int col)
void setColumnExpandRatio(int col, float ratio)
float getRowExpandRatio(int row)
void setRowExpandRatio(int row, float ratio)
void add(Component component, int col, int row)
void add(Component component, int col, int row, int col2, int row2)
int getRows()
void setRows(int rows)
int getColumns()
void setColumns(int columns)
@Nullable Component getComponent(int columnIndex, int rowIndex)
columnIndex
- the column index, starting from 0 for the leftmost column.rowIndex
- the row index, starting from 0 for the topmost row.@Nonnull default Component getComponentNN(int columnIndex, int rowIndex)
columnIndex
- the column index, starting from 0 for the leftmost column.rowIndex
- the row index, starting from 0 for the topmost row.@Nullable GridLayout.Area getComponentArea(Component component)
component
- the component whose area information is requested.