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:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<NativeTableRow>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasComponentsOfType<com.vaadin.flow.component.Component>, 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, com.vaadin.flow.component.HasText, Serializable

@Deprecated(since="25.3", forRemoval=true) @Tag("tr") public class NativeTableRow extends com.vaadin.flow.component.HtmlContainer implements com.vaadin.flow.component.HasOrderedComponents, com.vaadin.flow.component.ClickNotifier<NativeTableRow>
Deprecated, for removal: This API element is subject to removal in a future version.
since 25.3, scheduled for removal in Vaadin 26. Use TableRow instead, which cannot be given children the HTML specification does not allow inside this element.
Component representing a <tr> element.
Since:
24.5
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasText

    com.vaadin.flow.component.HasText.WhiteSpace
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new empty table row component.
    NativeTableRow(com.vaadin.flow.component.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 Type
    Method
    Description
    Deprecated, 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.
    List<com.vaadin.flow.component.Component>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a list of all cells in this row.
    Optional<com.vaadin.flow.component.Component>
    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.
    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.
    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.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Removes a data cell.
    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.
    void
    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, setTitle

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, bindVisible, findAncestor, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, getUIOrThrow, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible, whenAttached

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.ClickNotifier

    addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasComponents

    add

    Methods inherited from interface com.vaadin.flow.component.HasComponentsOfType

    add, add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, getComponentCount, indexOf, remove, remove, removeAll, replace

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    bindEnabled, isEnabled, setEnabled

    Methods 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, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods 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

      public NativeTableRow(com.vaadin.flow.component.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.
      Parameters:
      components - the children components.
  • Method Details

    • addHeaderCell

      public NativeTableHeaderCell 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

      public NativeTableHeaderCell 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.
      Parameters:
      position - the position into which the header cell must be added.
      Returns:
      the new header cell.
    • addDataCell

      public NativeTableCell 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

      public NativeTableCell 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.
      Parameters:
      position - the position into which the data cell must be added.
      Returns:
      the new data cell.
    • getHeaderCells

      public List<NativeTableHeaderCell> 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

      public List<NativeTableCell> 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

      public List<com.vaadin.flow.component.Component> 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

      public Optional<NativeTableHeaderCell> 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.
      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

      public Optional<NativeTableCell> 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.
      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

      public Optional<com.vaadin.flow.component.Component> getCell(int index)
      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

      public void removeHeaderCell(NativeTableHeaderCell headerCell)
      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

      public void removeDataCell(NativeTableCell dataCell)
      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.