@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, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
expand, getAlignItems, getAlignSelf, getFlexGrow, getJustifyContentMode, replace, setAlignItems, setAlignSelf, setFlexGrow, setJustifyContentMode
getChildren, getComponentAt, getComponentCount, indexOf
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
isEnabled, setEnabled
getElement
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
addClickListener, addClickShortcut
addAttachListener
addDetachListener
public 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
null
public FlexLayout.WrapMode getWrapMode()
The default flex wrap mode is FlexLayout.WrapMode.NOWRAP
.
null
Copyright © 2020. All rights reserved.