com.vaadin.flow.component.formlayout.
Class FormLayout.FormItem
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.formlayout.GeneratedVaadinFormItem<FormLayout.FormItem>
-
- com.vaadin.flow.component.formlayout.FormLayout.FormItem
-
All Implemented Interfaces:
AttachNotifier
,ClickNotifier<FormLayout.FormItem>
,DetachNotifier
,HasComponents
,HasElement
,HasEnabled
,HasStyle
,Serializable
Enclosing class:
public static class FormLayout.FormItem extends GeneratedVaadinFormItem<FormLayout.FormItem> implements HasComponents
Server-side component for the
<vaadin-form-item>
element. Used to wrap components for display in aFormLayout
.Author:
Vaadin Ltd
See Also:
-
-
Method Summary
All Methods Modifier and Type Method Description void
remove(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.formlayout.GeneratedVaadinFormItem
addToLabel
-
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, 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
-
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex
-
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:
-
FormItem
public FormItem(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:
-
-
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 interfaceHasComponents
Overrides:
removeAll
in classGeneratedVaadinFormItem<FormLayout.FormItem>
-
remove
public void remove(Component... components)
Description copied from class:
GeneratedVaadinFormItem
Removes the given child components from this component.
Specified by:
remove
in interfaceHasComponents
Overrides:
remove
in classGeneratedVaadinFormItem<FormLayout.FormItem>
Parameters:
components
- The components to remove.
-
-