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
-
Method Summary
Modifier and TypeMethodDescriptioncom.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.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, getResponsiveSteps, setColspan, setResponsiveSteps, setResponsiveSteps
Methods 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentAttachNotifier
withAttachListener
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentComponent
setId, setVisible, withId, withVisible
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentDetachNotifier
withDetachListener
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasComponents
withComponentAsFirst, withComponentAtIndex, withComponents
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasSize
withFullHeight, withFullWidth, withHeight, withMaxHeight, withMaxSize, withMaxWidth, withMinHeight, withMinSize, withMinWidth, withSize, withSizeFull, withSizeUndefined, withWidth
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasStyle
withAddedClassName, withClassName, withStyle
Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentThemableLayout
withBoxSizing, withMargin, withPadding, withSpacing
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods inherited from interface org.vaadin.firitin.util.style.HasPadding
setPadding, setPadding, setPadding, withPadding, withPadding, withPadding
Methods 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, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface com.vaadin.flow.component.orderedlayout.ThemableLayout
getBoxSizing, getThemeList, isMargin, isPadding, isSpacing, setBoxSizing, setMargin, setPadding, setSpacing
-
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
-