com.vaadin.ui
Class Grid.FooterRow

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

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

Represents a footer row in Grid.

See Also:
Serialized Form

Field Summary
protected  com.vaadin.ui.Grid.StaticSection<?> section
           
 
Constructor Summary
protected Grid.FooterRow(com.vaadin.ui.Grid.StaticSection<?> section)
           
 
Method Summary
protected  void addCell(java.lang.Object propertyId)
           
protected  Grid.FooterCell createCell()
          Creates and returns a new instance of the cell type.
 CELLTYPE getCell(java.lang.Object propertyId)
          Returns the cell for the given property id on this row.
protected  java.lang.String getCellTagName()
           
protected  com.vaadin.shared.ui.grid.GridStaticSectionState.RowState getRowState()
           
 java.lang.String getStyleName()
          Returns the custom style name for this row.
 CELLTYPE join(CELLTYPE... cells)
          Merges columns cells in a row
 CELLTYPE join(java.lang.Object... propertyIds)
          Merges columns cells in a row
protected  CELLTYPE join(java.util.Set<CELLTYPE> cells)
           
protected  void readDesign(org.jsoup.nodes.Element trElement, DesignContext designContext)
          Reads the declarative design from the given table row element.
protected  void removeCell(java.lang.Object propertyId)
           
 void setStyleName(java.lang.String styleName)
          Sets a custom style name for this row.
protected  void writeDesign(org.jsoup.nodes.Element trElement, DesignContext designContext)
          Writes the declarative design to the given table row element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

section

protected com.vaadin.ui.Grid.StaticSection<?> section
Constructor Detail

Grid.FooterRow

protected Grid.FooterRow(com.vaadin.ui.Grid.StaticSection<?> section)
Method Detail

createCell

protected Grid.FooterCell createCell()
Creates and returns a new instance of the cell type.

Returns:
the created cell

getCellTagName

protected java.lang.String getCellTagName()

addCell

protected void addCell(java.lang.Object propertyId)

removeCell

protected void removeCell(java.lang.Object propertyId)

getRowState

protected com.vaadin.shared.ui.grid.GridStaticSectionState.RowState getRowState()

getCell

public CELLTYPE getCell(java.lang.Object propertyId)
Returns the cell for the given property id on this row. If the column is merged returned cell is the cell for the whole group.

Parameters:
propertyId - the property id of the column
Returns:
the cell for the given property, merged cell for merged properties, null if not found

join

public CELLTYPE join(java.lang.Object... propertyIds)
Merges columns cells in a row

Parameters:
propertyIds - The property ids of columns to merge
Returns:
The remaining visible cell after the merge

join

public CELLTYPE join(CELLTYPE... cells)
Merges columns cells in a row

Parameters:
cells - The cells to merge. Must be from the same row.
Returns:
The remaining visible cell after the merge

join

protected CELLTYPE join(java.util.Set<CELLTYPE> cells)

getStyleName

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

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 row.

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

writeDesign

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

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

readDesign

protected void readDesign(org.jsoup.nodes.Element trElement,
                          DesignContext designContext)
                   throws DesignException
Reads the declarative design from the given table row element.

Parameters:
trElement - Element to read design from
designContext - the design context
Throws:
DesignException - if the given table row contains unexpected children
Since:
7.5.0


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