com.extjs.gxt.ui.client.widget.grid
Class HeaderGroupConfig

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.grid.HeaderGroupConfig

public class HeaderGroupConfig
extends java.lang.Object

Defines the configuration for a header group. Header groups support rowspan and colspan and horizontal alignment. Groups support both HTML and widget for their content.


Field Summary
protected  ColumnHeader.Group group
           
 
Constructor Summary
HeaderGroupConfig(java.lang.String html)
          Creates a new header group without rowspan and colspan.
HeaderGroupConfig(java.lang.String text, int rowspan, int colspan)
          Creates a header group.
HeaderGroupConfig(com.google.gwt.user.client.ui.Widget widget, int rowspan, int colspan)
          Creates a header group.
 
Method Summary
 int getColspan()
          Returns the colspan.
 int getColumn()
          Returns the column.
 Style.HorizontalAlignment getHorizontalAlignment()
          Returns the horizontal alignment.
 java.lang.String getHtml()
          Returns the html.
 int getRow()
          Returns the row.
 int getRowspan()
          Returns the rowspan.
 com.google.gwt.user.client.ui.Widget getWidget()
          Returns the widget.
 void setColspan(int colspan)
          Sets the colspan (defaults to 1).
 void setColumn(int column)
          Sets the 0-indexed column
 void setHorizontalAlignment(Style.HorizontalAlignment horizontalAlignment)
          Sets the horizontal alignment
 void setHtml(java.lang.String html)
          Sets the group's html.
 void setRow(int row)
          Sets the 0-indexed row.
 void setRowspan(int rowspan)
          Sets the rowspan (defaults to 1).
 void setWidget(com.google.gwt.user.client.ui.Widget widget)
          Sets the group's widget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

group

protected ColumnHeader.Group group
Constructor Detail

HeaderGroupConfig

public HeaderGroupConfig(java.lang.String html)
Creates a new header group without rowspan and colspan.

Parameters:
html - the group text

HeaderGroupConfig

public HeaderGroupConfig(java.lang.String text,
                         int rowspan,
                         int colspan)
Creates a header group.

Parameters:
text - the group text
rowspan - the rowspan
colspan - the colspan

HeaderGroupConfig

public HeaderGroupConfig(com.google.gwt.user.client.ui.Widget widget,
                         int rowspan,
                         int colspan)
Creates a header group.

Parameters:
widget - the group's widget
rowspan - the rowspan
colspan - the colspan
Method Detail

getColspan

public int getColspan()
Returns the colspan.

Returns:
the colspan

getColumn

public int getColumn()
Returns the column.

Returns:
the column

getHorizontalAlignment

public Style.HorizontalAlignment getHorizontalAlignment()
Returns the horizontal alignment.

Returns:
the alignment

getRow

public int getRow()
Returns the row.

Returns:
the row

getRowspan

public int getRowspan()
Returns the rowspan.

Returns:
the rowspan

getHtml

public java.lang.String getHtml()
Returns the html.

Returns:
the html

getWidget

public com.google.gwt.user.client.ui.Widget getWidget()
Returns the widget.

Returns:
the widget

setColspan

public void setColspan(int colspan)
Sets the colspan (defaults to 1).

Parameters:
colspan - the colspan

setColumn

public void setColumn(int column)
Sets the 0-indexed column

Parameters:
column - the column

setHorizontalAlignment

public void setHorizontalAlignment(Style.HorizontalAlignment horizontalAlignment)
Sets the horizontal alignment

Parameters:
horizontalAlignment - the alignment

setRow

public void setRow(int row)
Sets the 0-indexed row.

Parameters:
row - the row

setRowspan

public void setRowspan(int rowspan)
Sets the rowspan (defaults to 1).

Parameters:
rowspan - the rowspan

setHtml

public void setHtml(java.lang.String html)
Sets the group's html.

Parameters:
html - the html text

setWidget

public void setWidget(com.google.gwt.user.client.ui.Widget widget)
Sets the group's widget.

Parameters:
widget - the widget