@Tag(value="div") public class FlexLayout extends Component implements FlexComponent, ClickNotifier<FlexLayout>
This component can be used as a base class for more advanced layouts.
| Modifier and Type | Class and Description |
|---|---|
static class |
FlexLayout.WrapMode
Possible values for the
flex-wrap CSS property, which determines how the elements inside the layout
should behave when they don't fit inside the layout. |
FlexComponent.Alignment, FlexComponent.JustifyContentMode| Constructor and Description |
|---|
FlexLayout()
Default constructor.
|
FlexLayout(Component... children)
Convenience constructor to create a layout with the children already
inside it.
|
| Modifier and Type | Method and Description |
|---|---|
FlexLayout.WrapMode |
getWrapMode()
Gets the current flex wrap mode of the layout.
|
void |
setWrapMode(FlexLayout.WrapMode wrapMode)
Gets the
FlexLayout.WrapMode used by this layout. |
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexpand, getAlignItems, getAlignSelf, getFlexGrow, getJustifyContentMode, replace, setAlignItems, setAlignSelf, setFlexGrow, setJustifyContentModegetChildren, getComponentAt, getComponentCount, indexOfadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllisEnabled, setEnabledgetElementaddClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNamegetHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFulladdClickListener, addClickShortcutaddAttachListeneraddDetachListenerpublic FlexLayout()
public FlexLayout(Component... children)
children - the items to add to this layoutHasComponents.add(Component...)public void setWrapMode(FlexLayout.WrapMode wrapMode)
FlexLayout.WrapMode used by this layout.
The default flex wrap mode is FlexLayout.WrapMode.NOWRAP.
wrapMode - the flex wrap mode of the layout, never
nullpublic FlexLayout.WrapMode getWrapMode()
The default flex wrap mode is FlexLayout.WrapMode.NOWRAP.
nullCopyright © 2020. All rights reserved.