com.vaadin.ui
Class Grid.FooterCell

java.lang.Object
  extended by com.vaadin.ui.Grid.FooterCell
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Grid

public static class Grid.FooterCell
extends java.lang.Object

Represents a footer cell in Grid.

See Also:
Serialized Form

Constructor Summary
protected Grid.FooterCell(Grid.FooterRow row)
           
 
Method Summary
protected  com.vaadin.shared.ui.grid.GridStaticSectionState.CellState getCellState()
           
 com.vaadin.shared.ui.grid.GridStaticCellType getCellType()
          Returns the type of content stored in this cell.
 Component getComponent()
          Returns the component displayed in this cell.
 java.lang.String getHtml()
          Returns the HTML content displayed in this cell.
 com.vaadin.ui.Grid.StaticSection.StaticRow<?> getRow()
          Gets the row where this cell is.
 java.lang.String getStyleName()
          Returns the custom style name for this cell.
 java.lang.String getText()
          Returns the text displayed in 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 setHtml(java.lang.String html)
          Sets the HTML content displayed in this cell.
 void setStyleName(java.lang.String styleName)
          Sets a custom style name for this cell.
 void setText(java.lang.String text)
          Sets the text displayed in this cell.
protected  void writeDesign(org.jsoup.nodes.Element cellElement, DesignContext designContext)
          Writes the declarative design to the given table cell element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid.FooterCell

protected Grid.FooterCell(Grid.FooterRow row)
Method Detail

getRow

public com.vaadin.ui.Grid.StaticSection.StaticRow<?> getRow()
Gets the row where this cell is.

Returns:
row for this cell

getCellState

protected com.vaadin.shared.ui.grid.GridStaticSectionState.CellState getCellState()

setText

public void setText(java.lang.String text)
Sets the text displayed in this cell.

Parameters:
text - a plain text caption

getText

public java.lang.String getText()
Returns the text displayed in this cell.

Returns:
the plain text caption

getHtml

public java.lang.String getHtml()
Returns the HTML content displayed in this cell.

Returns:
the html

setHtml

public void setHtml(java.lang.String html)
Sets the HTML content displayed in this cell.

Parameters:
html - the html to set

getComponent

public Component getComponent()
Returns the component displayed in this cell.

Returns:
the component

setComponent

public void setComponent(Component component)
Sets the component displayed in this cell.

Parameters:
component - the component to set

getCellType

public com.vaadin.shared.ui.grid.GridStaticCellType getCellType()
Returns the type of content stored in this cell.

Returns:
cell content type

getStyleName

public java.lang.String getStyleName()
Returns the custom style name for this cell.

Returns:
the style name or null if no style name has been set

setStyleName

public void setStyleName(java.lang.String styleName)
Sets a custom style name for this cell.

Parameters:
styleName - the style name to set or null to not use any style name

writeDesign

protected void writeDesign(org.jsoup.nodes.Element cellElement,
                           DesignContext designContext)
Writes the declarative design to the given table cell element.

Parameters:
cellElement - Element to write design to
designContext - the design context
Since:
7.5.0

readDesign

protected void readDesign(org.jsoup.nodes.Element cellElement,
                          DesignContext designContext)
Reads the declarative design from the given table cell element.

Parameters:
cellElement - Element to read design from
designContext - the design context
Since:
7.5.0


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.