Class VFormLayout
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.formlayout.FormLayout
org.vaadin.firitin.components.formlayout.VFormLayout
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.formlayout.FormLayout>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.orderedlayout.ThemableLayout,Serializable,FluentAttachNotifier<VFormLayout>,FluentComponent<VFormLayout>,FluentDetachNotifier<VFormLayout>,FluentHasComponents<VFormLayout>,FluentHasSize<VFormLayout>,FluentHasStyle<VFormLayout>,FluentThemableLayout<VFormLayout>,HasPadding<VFormLayout>
public class VFormLayout
extends com.vaadin.flow.component.formlayout.FormLayout
implements FluentComponent<VFormLayout>, FluentThemableLayout<VFormLayout>, FluentHasStyle<VFormLayout>, FluentHasSize<VFormLayout>, FluentHasComponents<VFormLayout>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.formlayout.FormLayout
com.vaadin.flow.component.formlayout.FormLayout.FormItem, com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.formlayout.FormLayout.FormItemaddFormItem(com.vaadin.flow.component.Component component, String label, int colspan) Adds component with given label and colspan value.withFormItem(com.vaadin.flow.component.Component component, String label, int colspan) withResponsiveSteps(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep... steps) withResponsiveSteps(List<com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep> steps) withResponsiveStepsFourCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol, String minWidthThreeCol, String minWidthFourthCol) shorthand for three col configurationwithResponsiveStepsOneCol(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position) shorthand for one col configurationwithResponsiveStepsThreeCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol, String minWidthThreeCol) shorthand for three col configurationwithResponsiveStepsTwoCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol) shorthand for two col configurationMethods inherited from class com.vaadin.flow.component.formlayout.FormLayout
add, addFormItem, addFormItem, getColspan, getLabelWidth, getResponsiveSteps, setColspan, setLabelWidth, setResponsiveSteps, setResponsiveStepsMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentAttachNotifier
withAttachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentComponent
navigate, setId, setVisible, withId, withVisibleMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentDetachNotifier
withDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasComponents
withComponentAsFirst, withComponentAtIndex, withComponentsMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasSize
addResizeListener, withFullHeight, withFullWidth, withHeight, withMaxHeight, withMaxSize, withMaxWidth, withMinHeight, withMinSize, withMinWidth, withSize, withSizeFull, withSizeUndefined, withWidthMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasStyle
withAddedClassName, withClassName, withStyleMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentThemableLayout
withBoxSizing, withMargin, withPadding, withSpacingMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface org.vaadin.firitin.util.style.HasPadding
setPadding, setPadding, setPadding, withPadding, withPadding, withPaddingMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.orderedlayout.ThemableLayout
getBoxSizing, getThemeList, isMargin, isPadding, isSpacing, isWrap, setBoxSizing, setMargin, setPadding, setSpacing, setWrap
-
Constructor Details
-
VFormLayout
public VFormLayout() -
VFormLayout
public VFormLayout(com.vaadin.flow.component.Component... children)
-
-
Method Details
-
addFormItem
public com.vaadin.flow.component.formlayout.FormLayout.FormItem addFormItem(com.vaadin.flow.component.Component component, String label, int colspan) Adds component with given label and colspan value. By default FormLayout has two columns, so if you want full width component, give 2 as a last parameter.- Parameters:
component- the componentlabel- the label for componentcolspan- the amount of columns this component should consume- Returns:
- added FormItem
-
withFormItem
public VFormLayout withFormItem(com.vaadin.flow.component.Component component, String label, int colspan) -
withResponsiveSteps
public VFormLayout withResponsiveSteps(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep... steps) -
withResponsiveSteps
public VFormLayout withResponsiveSteps(List<com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep> steps) -
withResponsiveStepsOneCol
public VFormLayout withResponsiveStepsOneCol(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position) shorthand for one col configuration- Parameters:
position- TOP or ASIDE- Returns:
- itself for fluent writing
-
withResponsiveStepsTwoCols
public VFormLayout withResponsiveStepsTwoCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol) shorthand for two col configuration- Parameters:
position- TOP or ASIDEminWidthTwoCol- good value 21em- Returns:
- itself for fluent writing
-
withResponsiveStepsThreeCols
public VFormLayout withResponsiveStepsThreeCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol, String minWidthThreeCol) shorthand for three col configuration- Parameters:
position- TOP or ASIDEminWidthTwoCol- good value 21emminWidthThreeCol- good value 14em- Returns:
- itself for fluent writing
-
withResponsiveStepsFourCols
public VFormLayout withResponsiveStepsFourCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol, String minWidthThreeCol, String minWidthFourthCol) shorthand for three col configuration- Parameters:
position- TOP or ASIDEminWidthTwoCol- good value 21emminWidthThreeCol- good value 14emminWidthFourthCol- the minimum width of the fourth column- Returns:
- itself for fluent writing
-