Package com.vaadin.featurepack.ui
Class FGrid.HeaderCell
java.lang.Object
com.vaadin.featurepack.ui.FGrid.HeaderCell
- All Implemented Interfaces:
Serializable
- Enclosing class:
FGrid
Represents a header cell in Grid. Can be a merged cell for multiple
columns.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.flow.component.grid.HeaderRow.HeaderCell -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of content stored in this cell.com.vaadin.flow.component.ComponentReturns the component displayed in this cell.getHtml()Returns the HTML content displayed in this cell.getRow()Gets the row where this cell is.Returns the custom style name for this cell.getText()Returns the text displayed in this cell.voidsetComponent(com.vaadin.flow.component.Component component) Sets the component displayed in this cell.voidSets the HTML content displayed in this cell.voidsetStyleName(String styleName) Sets a custom style name for this cell.voidSets the text displayed in this cell.
-
Field Details
-
flowHeaderCell
protected com.vaadin.flow.component.grid.HeaderRow.HeaderCell flowHeaderCell
-
-
Constructor Details
-
HeaderCell
-
-
Method Details
-
getRow
Gets the row where this cell is.- Returns:
- row for this cell
-
setText
Sets the text displayed in this cell.- Parameters:
text- a plain text caption
-
setHtml
Sets the HTML content displayed in this cell.- Parameters:
html- the html to set
-
getComponent
public com.vaadin.flow.component.Component getComponent()Returns the component displayed in this cell.- Returns:
- the component
-
setComponent
public void setComponent(com.vaadin.flow.component.Component component) Sets the component displayed in this cell.- Parameters:
component- the component to set
-
setStyleName
Sets a custom style name for this cell.- Parameters:
styleName- the style name to set or null to not use any style name
-
getText
Returns the text displayed in this cell.- Returns:
- the plain text caption
-
getHtml
Returns the HTML content displayed in this cell.- Returns:
- the html
-
getCellType
Returns the type of content stored in this cell.- Returns:
- cell content type
-
getStyleName
Returns the custom style name for this cell.- Returns:
- the style name or null if no style name has been set
-