Package 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.AbstractCellA header cell in a Grid.- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.component.ComponentgetComponent()Gets the component content of this cell.StringgetText()Gets the text content of this cell.voidsetComponent(com.vaadin.flow.component.Component component)Sets the component as the content of this cell.voidsetText(String text)Sets the text content of this cell.
-
-
-
Method Detail
-
getText
public String getText()
Description copied from class:com.vaadin.flow.component.grid.AbstractRow.AbstractCellGets the text content of this cell.- Specified by:
getTextin classcom.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.AbstractCellSets the text content of this cell.This will remove a component set with
AbstractRow.AbstractCell.setComponent(Component).- Specified by:
setTextin classcom.vaadin.flow.component.grid.AbstractRow.AbstractCell- Parameters:
text- the text to be shown in this cell
-
getComponent
public com.vaadin.flow.component.Component getComponent()
Description copied from class:com.vaadin.flow.component.grid.AbstractRow.AbstractCellGets the component content of this cell.- Specified by:
getComponentin classcom.vaadin.flow.component.grid.AbstractRow.AbstractCell- Returns:
- component content of the cell
-
setComponent
public void setComponent(com.vaadin.flow.component.Component component)
Description copied from class:com.vaadin.flow.component.grid.AbstractRow.AbstractCellSets the component as the content of this cell.This will remove text set with
AbstractRow.AbstractCell.setText(String).- Specified by:
setComponentin classcom.vaadin.flow.component.grid.AbstractRow.AbstractCell- Parameters:
component- the component to set
-
-