public interface FooterCell extends Serializable
Modifier and Type | Method and Description |
---|---|
GridStaticCellType |
getCellType()
Returns the type of content stored in this cell.
|
String |
getColumnId()
Gets the column id where this cell is.
|
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.
|
String |
getStyleName()
Returns the custom style name for this cell.
|
String |
getText()
Returns the textual caption of this cell.
|
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.
|
String getText()
void setText(String text)
text
- the footer caption to set, not nullString getHtml()
void setHtml(String html)
html
- the html to setComponent getComponent()
void setComponent(Component component)
component
- the component to setGridStaticCellType getCellType()
String getColumnId()
String getStyleName()
void setStyleName(String styleName)
styleName
- the style name to set or null to not use any style nameString getDescription()
The tooltip is shown in the mode returned by
getDescriptionContentMode()
.
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 cellvoid 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)ContentMode
ContentMode getDescriptionContentMode()
ContentMode
void setDescriptionContentMode(ContentMode descriptionContentMode)
descriptionContentMode
- the content mode for the tooltipContentMode
Copyright © 2018 Vaadin Ltd. All rights reserved.