com.vaadin.flow.component.grid.

Class HeaderRow.HeaderCell

java.lang.Object
com.vaadin.flow.component.grid.AbstractRow.AbstractCell
com.vaadin.flow.component.grid.HeaderRow.HeaderCell

All Implemented Interfaces:

Serializable

Enclosing class:

HeaderRow

public static class HeaderRow.HeaderCell extends com.vaadin.flow.component.grid.AbstractRow.AbstractCell

A header cell in a Grid.

Author:

Vaadin Ltd.

See Also:

  • Method Details

    • getText

      public String getText()

      Description copied from class: com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Gets the text content of this cell.

      Specified by:

      getText in class com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Returns:

      text content of the cell

    • setText

      public void setText(String text)

      Description copied from class: com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Sets the text content of this cell.

      This will remove a component set with AbstractRow.AbstractCell.setComponent(Component).

      Specified by:

      setText in class com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Parameters:

      text - the text to be shown in this cell

    • getComponent

      public Component getComponent()

      Description copied from class: com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Gets the component content of this cell.

      Specified by:

      getComponent in class com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Returns:

      component content of the cell

    • setComponent

      public void setComponent(Component component)

      Description copied from class: com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Sets the component as the content of this cell.

      This will remove text set with AbstractRow.AbstractCell.setText(String).

      Specified by:

      setComponent in class com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Parameters:

      component - the component to set

    • setPartName

      public void setPartName(String partName)

      Description copied from class: com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Sets a custom part name for the cell.

      Specified by:

      setPartName in class com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Parameters:

      partName - the part name to set

    • getPartName

      public String getPartName()

      Description copied from class: com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Gets the custom part name of the cell.

      Specified by:

      getPartName in class com.vaadin.flow.component.grid.AbstractRow.AbstractCell

      Returns:

      the part name