Package com.storedobject.vaadin
Class FormLayout
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.formlayout.FormLayout
com.storedobject.vaadin.FormLayout
- 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,Serializable
public class FormLayout
extends com.vaadin.flow.component.formlayout.FormLayout
Enhanced version of Vaadin's
FormLayout.- Author:
- Syam
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.formlayout.FormLayout
com.vaadin.flow.component.formlayout.FormLayout.FormItem, com.vaadin.flow.component.formlayout.FormLayout.FormRow, com.vaadin.flow.component.formlayout.FormLayout.ResponsiveStep -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.FormLayout(com.vaadin.flow.component.Component... components) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal intGet number of responsive columns for the form.intgetColumnSpan(com.vaadin.flow.component.Component component) Get the column span of a component.voidnewLine()Add a new line to the form.voidsetColumns(int columns) Set number of responsive columns for the form.voidsetColumnSpan(com.vaadin.flow.component.Component component, int columnSpan) Set number of columns to span for a particular component.Methods inherited from class com.vaadin.flow.component.formlayout.FormLayout
add, addFormItem, addFormItem, addFormRow, getColspan, getColumnSpacing, getColumnWidth, getLabelSpacing, getLabelWidth, getMaxColumns, getMinColumns, getResponsiveSteps, getRowSpacing, isAutoRows, isExpandColumns, isExpandFields, isLabelsAside, setAutoResponsive, setAutoRows, setColspan, setColumnSpacing, setColumnSpacing, setColumnWidth, setColumnWidth, setExpandColumns, setExpandFields, setLabelsAside, setLabelSpacing, setLabelSpacing, setLabelWidth, setLabelWidth, setMaxColumns, setMinColumns, setResponsiveSteps, setResponsiveSteps, setRowSpacing, setRowSpacingMethods 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, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods 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, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
FormLayout
public FormLayout()Constructor. -
FormLayout
public FormLayout(com.vaadin.flow.component.Component... components) Constructor.- Parameters:
components- Components to add
-
-
Method Details
-
setColumns
public void setColumns(int columns) Set number of responsive columns for the form.- Parameters:
columns- Number of responsive columns required
-
getColumns
public final int getColumns()Get number of responsive columns for the form.- Returns:
- Number of responsive columns of the form.
-
newLine
public void newLine()Add a new line to the form. -
setColumnSpan
public void setColumnSpan(com.vaadin.flow.component.Component component, int columnSpan) Set number of columns to span for a particular component.- Parameters:
component- Component for which column span to be setcolumnSpan- Number of columns to span
-
getColumnSpan
public int getColumnSpan(com.vaadin.flow.component.Component component) Get the column span of a component.- Parameters:
component- omponent for which column span to be retrieved- Returns:
- Column span for the component.
-