com.vaadin.ui.components.grid
Class GridHeader.HeaderRow

java.lang.Object
  extended by com.vaadin.ui.components.grid.GridHeader.HeaderRow
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
GridHeader

public class GridHeader.HeaderRow
extends java.lang.Object

See Also:
Serialized Form

Field Summary
protected  com.vaadin.ui.components.grid.GridStaticSection<?> section
           
 
Constructor Summary
protected GridHeader.HeaderRow(com.vaadin.ui.components.grid.GridStaticSection<?> section)
           
 
Method Summary
protected  void addCell(java.lang.Object propertyId)
           
protected  GridHeader.HeaderCell createCell()
          Creates and returns a new instance of the cell type.
 CELLTYPE getCell(java.lang.Object propertyId)
          Returns the cell at the given position in this row.
protected  com.vaadin.shared.ui.grid.GridStaticSectionState.RowState getRowState()
           
 CELLTYPE join(CELLTYPE... cells)
          Merges columns cells in a row
protected  CELLTYPE join(java.util.List<CELLTYPE> cells)
          Merges cells in a row
 CELLTYPE join(java.lang.Object... properties)
          Merges columns cells in a row
 
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.components.grid.GridStaticSection<?> section
Constructor Detail

GridHeader.HeaderRow

protected GridHeader.HeaderRow(com.vaadin.ui.components.grid.GridStaticSection<?> section)
Method Detail

createCell

protected GridHeader.HeaderCell createCell()
Creates and returns a new instance of the cell type.

Returns:
the created cell

addCell

protected void addCell(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 at the given position in this row.

Parameters:
propertyId - the itemId of column
Returns:
the cell on given column
Throws:
java.lang.IndexOutOfBoundsException - if the index is out of bounds

join

protected CELLTYPE join(java.util.List<CELLTYPE> cells)
Merges cells in a row

Parameters:
cells - The cells to be merged
Returns:
The first cell of the merged cells

join

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

Parameters:
properties - The column properties which header should be merged
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


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