Class FormLayout.FormItem

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<FormLayout.FormItem>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle, Serializable
    Enclosing class:
    FormLayout

    public static class FormLayout.FormItem
    extends GeneratedVaadinFormItem<FormLayout.FormItem>
    implements com.vaadin.flow.component.HasComponents
    Server-side component for the <vaadin-form-item> element. Used to wrap components for display in a FormLayout.
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FormItem()
      Constructs an empty FormItem.
      FormItem​(com.vaadin.flow.component.Component... components)
      Constructs a FormItem with the given initial components to wrap.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void remove​(com.vaadin.flow.component.Component... components)
      Removes the given child components from this component.
      void removeAll()
      Removes all contents from this component, this includes child components, text content as well as child elements that have been added directly to this component using the Element API.
      • 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, scrollIntoView, set, setElement, setId, setVisible
      • 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 com.vaadin.flow.component.HasComponents

        add, add, add, addComponentAsFirst, addComponentAtIndex, remove
      • 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 com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
    • Constructor Detail

      • FormItem

        public FormItem()
        Constructs an empty FormItem. Components to wrap can be added after construction with HasComponents.add(Component...).
        See Also:
        HasComponents.add(Component...)
      • FormItem

        public FormItem​(com.vaadin.flow.component.Component... components)
        Constructs a FormItem with the given initial components to wrap. Additional components can be added after construction with HasComponents.add(Component...).
        Parameters:
        components - the initial components to wrap as a form item.
        See Also:
        HasComponents.add(Component...)
    • Method Detail

      • removeAll

        public void removeAll()
        Description copied from class: GeneratedVaadinFormItem
        Removes all contents from this component, this includes child components, text content as well as child elements that have been added directly to this component using the Element API.
        Specified by:
        removeAll in interface com.vaadin.flow.component.HasComponents
        Overrides:
        removeAll in class GeneratedVaadinFormItem<FormLayout.FormItem>
      • remove

        public void remove​(com.vaadin.flow.component.Component... components)
        Description copied from class: GeneratedVaadinFormItem
        Removes the given child components from this component.
        Specified by:
        remove in interface com.vaadin.flow.component.HasComponents
        Overrides:
        remove in class GeneratedVaadinFormItem<FormLayout.FormItem>
        Parameters:
        components - The components to remove.