Class NativeTableCell

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.HtmlComponent
com.vaadin.flow.component.HtmlContainer
com.vaadin.flow.component.html.NativeTableCell
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<NativeTableCell>, 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.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasText, Serializable

@Deprecated(since="25.3", forRemoval=true) @Tag("td") public class NativeTableCell extends com.vaadin.flow.component.HtmlContainer implements com.vaadin.flow.component.ClickNotifier<NativeTableCell>
Deprecated, for removal: This API element is subject to removal in a future version.
since 25.3, scheduled for removal in Vaadin 26. Use TableDataCell instead, the equivalent in the Table component family.
Component representing a <td> 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 cell component.
    NativeTableCell(com.vaadin.flow.component.Component... components)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new table cell with the given children components.
    NativeTableCell(com.vaadin.flow.signals.Signal<String> textSignal)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new table cell with its text content bound to the given signal.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new table cell with the given text.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the colspan value of this cell.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the rowspan value of this cell.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Reset colspan to its default value of 1.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Resets the rowspan to its default value of 1.
    void
    setColspan(int colspan)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set the colspan of this cell.
    void
    setRowspan(int rowspan)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the rowspan for this cell.

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

    getTitle, setTitle

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

    • NativeTableCell

      public NativeTableCell()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new empty table cell component.
    • NativeTableCell

      public NativeTableCell(com.vaadin.flow.component.Component... components)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new table cell with the given children components.
      Parameters:
      components - the children components.
    • NativeTableCell

      public NativeTableCell(String text)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new table cell with the given text.
      Parameters:
      text - the text.
    • NativeTableCell

      public NativeTableCell(com.vaadin.flow.signals.Signal<String> textSignal)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new table cell with its text content bound to the given signal.

      While a binding for the text content is active, any attempt to set the text manually throws BindingActiveException. The same happens when trying to bind a new Signal while one is already bound.

      Bindings are lifecycle-aware and only active while this component is in the attached state; they are deactivated while the component is in the detached state.

      Parameters:
      textSignal - the signal to bind, not null
      Since:
      25.1
      See Also:
      • HasText.bindText(Signal)
  • Method Details

    • setColspan

      public void setColspan(int colspan)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the colspan of this cell.
      Parameters:
      colspan - a non-negative integer value that indicates how many columns the data cell spans or extends.
    • getColspan

      public int getColspan()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the colspan value of this cell.
      Returns:
      the current value of the colspan attribute. Default is 1.
    • resetColspan

      public void resetColspan()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Reset colspan to its default value of 1.
    • setRowspan

      public void setRowspan(int rowspan)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the rowspan for this cell.
      Parameters:
      rowspan - a non-negative integer value that indicates for how many rows the data cell spans or extends. If its value is set to 0, it extends until the end of the table grouping section (<thead>, <tbody>, <tfoot>, even if implicitly defined), that the cell belongs to.
    • getRowspan

      public int getRowspan()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the rowspan value of this cell.
      Returns:
      the current value of the rowspan attribute. Default is 1.
    • resetRowspan

      public void resetRowspan()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Resets the rowspan to its default value of 1.