public class Footer.Row.Cell extends Object implements FooterCell
| Modifier | Constructor and Description |
|---|---|
protected |
Cell()
Creates a new footer cell.
|
| Modifier and Type | Method and Description |
|---|---|
protected SectionState.CellState |
getCellState()
Returns the shared state of this cell.
|
GridStaticCellType |
getCellType()
Returns the type of content stored in this cell.
|
String |
getColumnId() |
Component |
getComponent()
Returns the component displayed in this cell.
|
String |
getDescription()
Gets the tooltip for the cell.
|
ContentMode |
getDescriptionContentMode()
Gets the content mode for the tooltip.
|
String |
getHtml()
Returns the HTML content displayed in this cell.
|
StaticSection.StaticRow<?> |
getRow()
Gets the row where this cell is.
|
String |
getStyleName()
Returns the custom style name for this cell.
|
String |
getText()
Returns the textual caption of this cell.
|
protected void |
readDesign(org.jsoup.nodes.Element cellElement,
DesignContext designContext)
Reads the declarative design from the given table cell element.
|
void |
setComponent(Component component)
Sets the component displayed in this cell.
|
void |
setDescription(String description)
Sets the tooltip for the cell.
|
void |
setDescription(String description,
ContentMode descriptionContentMode)
Sets the tooltip for the cell to be shown with the given content
mode.
|
void |
setDescriptionContentMode(ContentMode descriptionContentMode)
Sets the content mode for the tooltip.
|
void |
setHtml(String html)
Sets the HTML content displayed in this cell.
|
void |
setStyleName(String styleName)
Sets a custom style name for this cell.
|
void |
setText(String text)
Sets the textual caption of this cell.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCellType, getColumnId, getComponent, getDescription, getDescriptionContentMode, getHtml, getStyleName, getText, setComponent, setDescription, setDescription, setDescriptionContentMode, setHtml, setStyleName, setTextpublic String getColumnId()
public StaticSection.StaticRow<?> getRow()
protected SectionState.CellState getCellState()
public void setText(String text)
text - a plain text caption, not nullpublic String getText()
public String getHtml()
public void setHtml(String html)
html - the html to set, not nullpublic Component getComponent()
public void setComponent(Component component)
component - the component to set, not nullpublic GridStaticCellType getCellType()
public String getStyleName()
public void setStyleName(String styleName)
styleName - the style name to set or null to not use any style nameprotected void readDesign(org.jsoup.nodes.Element cellElement,
DesignContext designContext)
cellElement - Element to read design fromdesignContext - the design contextpublic String getDescription()
The tooltip is shown in the mode returned by
getDescriptionContentMode().
public void setDescription(String description)
By default, tooltips are shown as plain text. For HTML tooltips, see
setDescription(String, ContentMode) or
setDescriptionContentMode(ContentMode).
description - the tooltip to show when hovering the cellpublic void setDescription(String description, ContentMode descriptionContentMode)
description - the tooltip to show when hovering the celldescriptionContentMode - the content mode to use for the tooltip (HTML or plain
text)ContentModepublic ContentMode getDescriptionContentMode()
ContentModepublic void setDescriptionContentMode(ContentMode descriptionContentMode)
descriptionContentMode - the content mode for the tooltipContentModeCopyright © 2021 Vaadin Ltd. All rights reserved.