Class VFormLayout
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.formlayout.GeneratedVaadinFormLayout<com.vaadin.flow.component.formlayout.FormLayout>
-
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VFormLayout()VFormLayout(com.vaadin.flow.component.Component... children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.formlayout.FormLayout.FormItemaddFormItem(com.vaadin.flow.component.Component component, String label, int colspan)Adds component with given label and colspan value.VFormLayoutwithFormItem(com.vaadin.flow.component.Component component, String label, int colspan)VFormLayoutwithResponsiveSteps(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep... steps)VFormLayoutwithResponsiveSteps(List<com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep> steps)VFormLayoutwithResponsiveStepsFourCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol, String minWidthThreeCol, String minWidthFourthCol)shorthand for three col configurationVFormLayoutwithResponsiveStepsOneCol(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position)shorthand for one col configurationVFormLayoutwithResponsiveStepsThreeCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol, String minWidthThreeCol)shorthand for three col configurationVFormLayoutwithResponsiveStepsTwoCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol)shorthand for two col configuration-
Methods 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.formlayout.GeneratedVaadinFormLayout
getResponsiveStepsJsonObject, setResponsiveSteps, updateStyles
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, 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.ClickNotifier
addClickListener, addClickShortcut
-
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, addComponentAsFirst, addComponentAtIndex, remove, removeAll
-
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
-
-
-
-
Method Detail
-
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
-
-