Package com.vaadin.flow.component.board
Class Board
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.board.Board
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasComponents,HasElement,HasEnabled,HasOrderedComponents,HasSize,HasStyle,Serializable
@Tag("vaadin-board")
@NpmPackage(value="@vaadin/board",
version="25.0.0-beta4")
@JsModule("@vaadin/board/src/vaadin-board.js")
@Deprecated(since="25.0",
forRemoval=true)
public class Board
extends Component
implements HasSize, HasStyle, HasOrderedComponents
Deprecated, for removal: This API element is subject to removal in a future version.
Board is deprecated and will be removed in Vaadin 26. Consider
using Dashboard as an alternative.
Vaadin Board allows creating responsive layouts in an easy way.
A Board consists of Rows where you can add any Vaadin component. 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
ConstructorsConstructorDescriptionBoard()Deprecated, for removal: This API element is subject to removal in a future version.Creates an empty board. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a new row and adds the given components to the row.voidredraw()Deprecated, for removal: This API element is subject to removal in a future version.Forces the board to be redrawn.voidDeprecated, for removal: This API element is subject to removal in a future version.Removes the given row from the board.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, 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
-
Board
public Board()Deprecated, for removal: This API element is subject to removal in a future version.Creates an empty board.Use
addRow(Component...)to add content to the board.
-
-
Method Details
-
addRow
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new row and adds the given components to the row.All the added components have cols set to 1, i.e. use one slot in the row. The number of slots in the row is the number of added components.
- Parameters:
components- components to add, no more than 4- Returns:
- a row instance which can be used for further configuration
- Throws:
IllegalArgumentException- if there are more than 4 components
-
removeRow
Deprecated, for removal: This API element is subject to removal in a future version.Removes the given row from the board.- Parameters:
row- the row to be removed
-
redraw
public void redraw()Deprecated, for removal: This API element is subject to removal in a future version.Forces the board to be redrawn.This method typically only needs to be called if you change CSS (through a variable or otherwise) which affects the size of the board or the breakpoints used. Otherwise, the component will be redrawn automatically when needed.
-