com.vaadin.flow.component.grid.
Class HeaderRow.HeaderCell
All Implemented Interfaces:
Enclosing class:
A header cell in a Grid.
Author:
Vaadin Ltd.
See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the component content of this cell.
Gets the custom part name of the cell.
getText()
Gets the text content of this cell.
void
setComponent
(Component component) Sets the component as the content of this cell.
void
setPartName
(String partName) Sets a custom part name for the cell.
void
Sets the text content of this cell.
Methods inherited from class com.vaadin.flow.component.grid.AbstractRow.AbstractCell
getColumn, setColumn
-
Method Details
-
getText
Description copied from class:
com.vaadin.flow.component.grid.AbstractRow.AbstractCell
Gets the text content of this cell.
Specified by:
getText
in classcom.vaadin.flow.component.grid.AbstractRow.AbstractCell
Returns:
text content of the cell
-
setText
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 classcom.vaadin.flow.component.grid.AbstractRow.AbstractCell
Parameters:
text
- the text to be shown in this cell -
getComponent
Description copied from class:
com.vaadin.flow.component.grid.AbstractRow.AbstractCell
Gets the component content of this cell.
Specified by:
getComponent
in classcom.vaadin.flow.component.grid.AbstractRow.AbstractCell
Returns:
component content of the cell
-
setComponent
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 classcom.vaadin.flow.component.grid.AbstractRow.AbstractCell
Parameters:
component
- the component to set -
setPartName
Description copied from class:
com.vaadin.flow.component.grid.AbstractRow.AbstractCell
Sets a custom part name for the cell.
Specified by:
setPartName
in classcom.vaadin.flow.component.grid.AbstractRow.AbstractCell
Parameters:
partName
- the part name to set -
getPartName
Description copied from class:
com.vaadin.flow.component.grid.AbstractRow.AbstractCell
Gets the custom part name of the cell.
Specified by:
getPartName
in classcom.vaadin.flow.component.grid.AbstractRow.AbstractCell
Returns:
the part name
-