com.vaadin.client.widgets
Class Grid.HeaderRow

java.lang.Object
  extended by com.vaadin.client.widgets.Grid.HeaderRow
Enclosing class:
Grid<T>

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

A single row in a grid header section.


Constructor Summary
Grid.HeaderRow()
           
 
Method Summary
protected  void addCell(Grid.Column<?,?> column)
           
protected  Grid.HeaderCell createCell()
           
 CELLTYPE getCell(Grid.Column<?,?> column)
          Returns the cell on given GridColumn.
protected  Grid.StaticSection<?> getSection()
           
 java.lang.String getStyleName()
          Returns the custom style name for this row.
 boolean isDefault()
           
 CELLTYPE join(CELLTYPE... cells)
          Merges columns cells in a row
 CELLTYPE join(Grid.Column<?,?>... columns)
          Merges columns cells in a row
protected  void removeCell(Grid.Column<?,?> column)
           
protected  void setDefault(boolean isDefault)
           
protected  void setSection(Grid.StaticSection<?> section)
           
 void setStyleName(java.lang.String styleName)
          Sets a custom style name for this row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid.HeaderRow

public Grid.HeaderRow()
Method Detail

setDefault

protected void setDefault(boolean isDefault)

isDefault

public boolean isDefault()

createCell

protected Grid.HeaderCell createCell()

getCell

public CELLTYPE getCell(Grid.Column<?,?> column)
Returns the cell on given GridColumn. If the column is merged returned cell is the cell for the whole group.

Parameters:
column - the column in grid
Returns:
the cell on given column, merged cell for merged columns, null if not found

join

public CELLTYPE join(Grid.Column<?,?>... columns)
Merges columns cells in a row

Parameters:
columns - the columns which header should be merged
Returns:
the remaining visible cell after the merge, or the cell on first column if all are hidden

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, or the first cell if all columns are hidden

addCell

protected void addCell(Grid.Column<?,?> column)

removeCell

protected void removeCell(Grid.Column<?,?> column)

getSection

protected Grid.StaticSection<?> getSection()

setSection

protected void setSection(Grid.StaticSection<?> section)

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


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