Package com.vaadin.flow.component.board
Class Row
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.board.Row
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasOrderedComponents,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,Serializable
@Tag("vaadin-board-row")
@NpmPackage(value="@vaadin/board",
version="25.0.0-alpha16")
@JsModule("@vaadin/board/src/vaadin-board-row.js")
@Deprecated(since="25.0",
forRemoval=true)
public class Row
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasOrderedComponents
Deprecated, for removal: This API element is subject to removal in a future version.
Board Row is deprecated and will be removed in Vaadin 26.
Consider using Dashboard as an alternative.
Row class to define rows used in a
Board instance.
Each Row consists of four columns, and can contain up to four components taking one column each, or fewer components with multiple columns each as long as sum of columns stays less than or equal to four.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRow()Deprecated, for removal: This API element is subject to removal in a future version.Creates an empty row.Row(com.vaadin.flow.component.Component... components) Deprecated, for removal: This API element is subject to removal in a future version.Creates an new row with the given components. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(com.vaadin.flow.component.Component... components) Deprecated, for removal: This API element is subject to removal in a future version.Adds the given component(s) to the row.voidadd(com.vaadin.flow.component.Component component, int cols) Deprecated, for removal: This API element is subject to removal in a future version.Adds the given component to the row using the given number of columns.voidaddNestedRow(Row row) Deprecated, for removal: This API element is subject to removal in a future version.Adds the given row as a nested row to the current row.intgetComponentSpan(com.vaadin.flow.component.Component component) Deprecated, for removal: This API element is subject to removal in a future version.Gets the number of columns the given component spans.voidsetComponentSpan(com.vaadin.flow.component.Component component, int columns) Deprecated, for removal: This API element is subject to removal in a future version.Sets the number of columns the given component spans.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, 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.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
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.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf, replaceMethods 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
-
Row
public Row()Deprecated, for removal: This API element is subject to removal in a future version.Creates an empty row.Use
add(Component...)oradd(Component, int)to add content to the row. -
Row
public Row(com.vaadin.flow.component.Component... components) Deprecated, for removal: This API element is subject to removal in a future version.Creates an new row with the given components.- Parameters:
components- initial content of the row
-
-
Method Details
-
add
public void add(com.vaadin.flow.component.Component... components) Deprecated, for removal: This API element is subject to removal in a future version.Adds the given component(s) to the row.All added components are set to use 1 column. Use
setComponentSpan(Component, int)to make a component span multiple columns.- Specified by:
addin interfacecom.vaadin.flow.component.HasComponents- Parameters:
components- the components to add
-
add
public void add(com.vaadin.flow.component.Component component, int cols) Deprecated, for removal: This API element is subject to removal in a future version.Adds the given component to the row using the given number of columns.- Parameters:
component- the component to addcols- the number of columns the component should use
-
addNestedRow
Deprecated, for removal: This API element is subject to removal in a future version.Adds the given row as a nested row to the current row.- Parameters:
row- the row to add as a nested row
-
getComponentSpan
public int getComponentSpan(com.vaadin.flow.component.Component component) Deprecated, for removal: This API element is subject to removal in a future version.Gets the number of columns the given component spans.- Parameters:
component- the child component to get columns for- Returns:
- the number of columns the component spans, by default 1.
-
setComponentSpan
public void setComponentSpan(com.vaadin.flow.component.Component component, int columns) Deprecated, for removal: This API element is subject to removal in a future version.Sets the number of columns the given component spans.- Parameters:
component- the child component to set columns forcolumns- the number of columns the component spans
-