public static class FormLayout.FormItem extends GeneratedVaadinFormItem<FormLayout.FormItem> implements HasComponents
<vaadin-form-item>
element. Used to
wrap components for display in a FormLayout
.Constructor and Description |
---|
FormItem()
Constructs an empty FormItem.
|
FormItem(Component... components)
Constructs a FormItem with the given initial components to wrap.
|
Modifier and Type | Method and 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. |
addToLabel
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, addComponentAsFirst, addComponentAtIndex
isEnabled, setEnabled
getElement
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
addClickListener
addAttachListener
addDetachListener
public FormItem()
HasComponents.add(Component...)
.HasComponents.add(Component...)
public FormItem(Component... components)
HasComponents.add(Component...)
.components
- the initial components to wrap as a form item.HasComponents.add(Component...)
public void removeAll()
GeneratedVaadinFormItem
Element
API.removeAll
in interface HasComponents
removeAll
in class GeneratedVaadinFormItem<FormLayout.FormItem>
public void remove(Component... components)
GeneratedVaadinFormItem
remove
in interface HasComponents
remove
in class GeneratedVaadinFormItem<FormLayout.FormItem>
components
- The components to remove.Copyright © 2018. All rights reserved.