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 Link icon

    Nested classes/interfaces inherited from class com.vaadin.flow.component.formlayout.FormLayout Link icon

    com.vaadin.flow.component.formlayout.FormLayout.FormItem, com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
    VFormLayout(com.vaadin.flow.component.Component... children)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    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.
    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 configuration
    withResponsiveStepsOneCol(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position)
    shorthand for one col configuration
    withResponsiveStepsThreeCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol, String minWidthThreeCol)
    shorthand for three col configuration
    withResponsiveStepsTwoCols(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 Link icon

    add, addFormItem, addFormItem, getColspan, getLabelWidth, getResponsiveSteps, setColspan, setLabelWidth, setResponsiveSteps, setResponsiveSteps

    Methods inherited from class com.vaadin.flow.component.Component Link icon

    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 Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier Link icon

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.ClickNotifier Link icon

    addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier Link icon

    addDetachListener

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentAttachNotifier Link icon

    withAttachListener

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentComponent Link icon

    setId, setVisible, withId, withVisible

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentDetachNotifier Link icon

    withDetachListener

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasComponents Link icon

    navigate, withComponentAsFirst, withComponentAtIndex, withComponents

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasStyle Link icon

    withAddedClassName, withClassName, withStyle

    Methods inherited from interface org.vaadin.firitin.fluency.ui.FluentThemableLayout Link icon

    withBoxSizing, withMargin, withPadding, withSpacing

    Methods inherited from interface com.vaadin.flow.component.HasComponents Link icon

    add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll

    Methods inherited from interface com.vaadin.flow.component.HasElement Link icon

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled Link icon

    isEnabled, setEnabled

    Methods inherited from interface org.vaadin.firitin.util.style.HasPadding Link icon

    setPadding, setPadding, setPadding, withPadding, withPadding, withPadding

    Methods inherited from interface com.vaadin.flow.component.HasSize Link icon

    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 Link icon

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.orderedlayout.ThemableLayout Link icon

    getBoxSizing, getThemeList, isMargin, isPadding, isSpacing, setBoxSizing, setMargin, setPadding, setSpacing
  • Constructor Details Link icon

    • VFormLayout Link icon

      public VFormLayout()
    • VFormLayout Link icon

      public VFormLayout(com.vaadin.flow.component.Component... children)
  • Method Details Link icon

    • addFormItem Link icon

      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 component
      label - the label for component
      colspan - the amount of columns this component should consume
      Returns:
      added FormItem
    • withFormItem Link icon

      public VFormLayout withFormItem(com.vaadin.flow.component.Component component, String label, int colspan)
    • withResponsiveSteps Link icon

      public VFormLayout withResponsiveSteps(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep... steps)
    • withResponsiveSteps Link icon

      public VFormLayout withResponsiveSteps(List<com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep> steps)
    • withResponsiveStepsOneCol Link icon

      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 Link icon

      public VFormLayout withResponsiveStepsTwoCols(com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep.LabelsPosition position, String minWidthTwoCol)
      shorthand for two col configuration
      Parameters:
      position - TOP or ASIDE
      minWidthTwoCol - good value 21em
      Returns:
      itself for fluent writing
    • withResponsiveStepsThreeCols Link icon

      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 ASIDE
      minWidthTwoCol - good value 21em
      minWidthThreeCol - good value 14em
      Returns:
      itself for fluent writing
    • withResponsiveStepsFourCols Link icon

      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 ASIDE
      minWidthTwoCol - good value 21em
      minWidthThreeCol - good value 14em
      minWidthFourthCol - the minimum width of the fourth column
      Returns:
      itself for fluent writing