Package com.vaadin.flow.component.html
Class NativeTableRow
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.HtmlContainer
com.vaadin.flow.component.html.NativeTableRow
- All Implemented Interfaces:
AttachNotifier,ClickNotifier<NativeTableRow>,DetachNotifier,HasComponents,HasComponentsOfType<Component>,HasElement,HasEnabled,HasOrderedComponents,HasSize,HasStyle,HasText,Serializable
@Deprecated(since="25.3",
forRemoval=true)
@Tag("tr")
public class NativeTableRow
extends HtmlContainer
implements HasOrderedComponents, ClickNotifier<NativeTableRow>
Deprecated, for removal: This API element is subject to removal in a future version.
Component representing a
<tr> element.- Since:
- 24.5
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasText
HasText.WhiteSpace -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a new empty table row component.NativeTableRow(Component... components) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new table row with the given children components. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Add a data cell to this row.Deprecated, for removal: This API element is subject to removal in a future version.Add a header cell to this row.Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all cells in this row.getCell(int index) Deprecated, for removal: This API element is subject to removal in a future version.Returns the cell at a given position.getDataCell(int index) Deprecated, for removal: This API element is subject to removal in a future version.Returns the data cell at a given position relative to other data cells.Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all data cells in this row.getHeaderCell(int index) Deprecated, for removal: This API element is subject to removal in a future version.Returns the header cell at a given position relative to other header cells.Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all header cells in this row.insertDataCell(int position) Deprecated, for removal: This API element is subject to removal in a future version.Insert a new data cell into a given position.insertHeaderCell(int position) Deprecated, for removal: This API element is subject to removal in a future version.Insert a new header cell into a given position.voidremoveCell(int index) Deprecated, for removal: This API element is subject to removal in a future version.Removes the cell at a given position.voidremoveDataCell(int index) Deprecated, for removal: This API element is subject to removal in a future version.Removes the data cell at a given position relative to other data cells.voidremoveDataCell(NativeTableCell dataCell) Deprecated, for removal: This API element is subject to removal in a future version.Removes a data cell.voidremoveHeaderCell(int index) Deprecated, for removal: This API element is subject to removal in a future version.Removes the header cell at a position relative to other header cells.voidremoveHeaderCell(NativeTableHeaderCell headerCell) Deprecated, for removal: This API element is subject to removal in a future version.Removes a header cell.Methods inherited from class com.vaadin.flow.component.HtmlComponent
getTitle, setTitleMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible, whenAttachedMethods 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
addMethods inherited from interface com.vaadin.flow.component.HasComponentsOfType
add, add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, getComponentCount, indexOf, remove, remove, removeAll, replaceMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
bindEnabled, isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
bindHeight, bindWidth, 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, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasText
bindText, getText, getWhiteSpace, setText, setWhiteSpace
-
Constructor Details
-
NativeTableRow
public NativeTableRow()Deprecated, for removal: This API element is subject to removal in a future version.Creates a new empty table row component. -
NativeTableRow
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new table row with the given children components.- Parameters:
components- the children components.
-
-
Method Details
-
addHeaderCell
Deprecated, for removal: This API element is subject to removal in a future version.Add a header cell to this row.- Returns:
- the new
<th>element.
-
insertHeaderCell
Deprecated, for removal: This API element is subject to removal in a future version.Insert a new header cell into a given position.- Parameters:
position- the position into which the header cell must be added.- Returns:
- the new header cell.
-
addDataCell
Deprecated, for removal: This API element is subject to removal in a future version.Add a data cell to this row.- Returns:
- the new
<td>element.
-
insertDataCell
Deprecated, for removal: This API element is subject to removal in a future version.Insert a new data cell into a given position.- Parameters:
position- the position into which the data cell must be added.- Returns:
- the new data cell.
-
getHeaderCells
Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all header cells in this row.- Returns:
- A list of all header cells in this row.
-
getDataCells
Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all data cells in this row.- Returns:
- A list of all data cells in this row.
-
getAllCells
Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of all cells in this row.- Returns:
- a list of all cells in this row.
-
getHeaderCell
Deprecated, for removal: This API element is subject to removal in a future version.Returns the header cell at a given position relative to other header cells.- Parameters:
index- the position of the header cell relative to other header cells.- Returns:
- the header cell at the given position (relative to other header cells).
-
getDataCell
Deprecated, for removal: This API element is subject to removal in a future version.Returns the data cell at a given position relative to other data cells.- Parameters:
index- the position of the data cell relative to other data cells.- Returns:
- the data cell at the given position (relative to other data cells).
-
getCell
Deprecated, for removal: This API element is subject to removal in a future version.Returns the cell at a given position.- Parameters:
index- the position of the cell.- Returns:
- the cell at the given position
- Throws:
IndexOutOfBoundsException- if index is negative or greater than (or equal to) the number of cells in the row
-
removeCell
public void removeCell(int index) Deprecated, for removal: This API element is subject to removal in a future version.Removes the cell at a given position.- Parameters:
index- the position of the cell to remove
-
removeHeaderCell
public void removeHeaderCell(int index) Deprecated, for removal: This API element is subject to removal in a future version.Removes the header cell at a position relative to other header cells.- Parameters:
index- the position of the header cell relative to other header cells.
-
removeHeaderCell
Deprecated, for removal: This API element is subject to removal in a future version.Removes a header cell.- Parameters:
headerCell- the header cell to remove.
-
removeDataCell
public void removeDataCell(int index) Deprecated, for removal: This API element is subject to removal in a future version.Removes the data cell at a given position relative to other data cells.- Parameters:
index- the position of the data cell to remove relative to other data cells.
-
removeDataCell
Deprecated, for removal: This API element is subject to removal in a future version.Removes a data cell.- Parameters:
dataCell- the data cell to remove.
-
TableRowinstead, which cannot be given children the HTML specification does not allow inside this element.