com.extjs.gxt.ui.client.widget.layout
Class TableData

java.lang.Object
  extended by com.extjs.gxt.ui.client.widget.layout.LayoutData
      extended by com.extjs.gxt.ui.client.widget.layout.TableData

public class TableData
extends LayoutData

Layout data for TableLayout.


Constructor Summary
TableData()
          Creates a new table data instance.
TableData(java.lang.String width, java.lang.String height)
          Creates a new table data instance.
TableData(Style.HorizontalAlignment horizontalAlign, Style.VerticalAlignment verticalAlign)
          Creates a new table data instance.
 
Method Summary
 int getColspan()
          Returns the column span.
 java.lang.String getHeight()
          Returns the cell's height.
 Style.HorizontalAlignment getHorizontalAlign()
           
 int getMargin()
          Returns the cell's margin.
 int getPadding()
          Returns the cell's padding.
 int getRowspan()
           
 java.lang.String getStyle()
          Returns the cell style.
 java.lang.String getStyleName()
          Returns the cell's style.
 Style.VerticalAlignment getVerticalAlign()
          Returns the cell's vertical alignment (defaults to TOP).
 java.lang.String getWidth()
          Returns the cell's width.
 void setColspan(int colspan)
          Sets the number of columns to span (defaults to 1).
 void setHeight(java.lang.String height)
          Sets the cell's height.
 void setHorizontalAlign(Style.HorizontalAlignment horizontalAlign)
          Sets the cell's horizontal alignment (defaults to LEFT).
 void setMargin(int margin)
          Sets the cell's margins.
 void setPadding(int padding)
          Sets the cell's padding (default to 0).
 void setRowspan(int rowspan)
           
 void setStyle(java.lang.String style)
          Custom CSS styles to be applied to the table cell in the format expected by El.applyStyles(java.lang.String).
 void setStyleName(java.lang.String style)
          Sets the CSS style name applied to the component's cell.
 void setVerticalAlign(Style.VerticalAlignment verticalAlign)
          Sets the cell's vertical alignment.
 void setWidth(java.lang.String width)
          Specifies the cell's width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableData

public TableData()
Creates a new table data instance.


TableData

public TableData(Style.HorizontalAlignment horizontalAlign,
                 Style.VerticalAlignment verticalAlign)
Creates a new table data instance.

Parameters:
horizontalAlign - the horiztonal alignment
verticalAlign - the vertical aligment

TableData

public TableData(java.lang.String width,
                 java.lang.String height)
Creates a new table data instance.

Parameters:
width - the cell width
height - the cell height
Method Detail

getColspan

public int getColspan()
Returns the column span.

Returns:
the column span

getHeight

public java.lang.String getHeight()
Returns the cell's height.

Returns:
the cell height

getHorizontalAlign

public Style.HorizontalAlignment getHorizontalAlign()

getMargin

public int getMargin()
Returns the cell's margin.

Returns:
the margin

getPadding

public int getPadding()
Returns the cell's padding.

Returns:
the padding

getStyle

public java.lang.String getStyle()
Returns the cell style.

Returns:
the style

getStyleName

public java.lang.String getStyleName()
Returns the cell's style.

Returns:
the style

getVerticalAlign

public Style.VerticalAlignment getVerticalAlign()
Returns the cell's vertical alignment (defaults to TOP).

Returns:
the vertical alignment

getWidth

public java.lang.String getWidth()
Returns the cell's width.

Returns:
the cell width

setColspan

public void setColspan(int colspan)
Sets the number of columns to span (defaults to 1).

Parameters:
colspan - the column span

setHeight

public void setHeight(java.lang.String height)
Sets the cell's height.

Parameters:
height - the cell height

setHorizontalAlign

public void setHorizontalAlign(Style.HorizontalAlignment horizontalAlign)
Sets the cell's horizontal alignment (defaults to LEFT).

Parameters:
horizontalAlign - the horizontal alignment

setMargin

public void setMargin(int margin)
Sets the cell's margins.

Parameters:
margin - the margin

setPadding

public void setPadding(int padding)
Sets the cell's padding (default to 0).

Parameters:
padding - the padding

setStyle

public void setStyle(java.lang.String style)
Custom CSS styles to be applied to the table cell in the format expected by El.applyStyles(java.lang.String).

Parameters:
style - the styles

setStyleName

public void setStyleName(java.lang.String style)
Sets the CSS style name applied to the component's cell.

Parameters:
style - the style name

setVerticalAlign

public void setVerticalAlign(Style.VerticalAlignment verticalAlign)
Sets the cell's vertical alignment.

Parameters:
verticalAlign - the vertical alignment

setWidth

public void setWidth(java.lang.String width)
Specifies the cell's width.

Parameters:
width - the cell width

setRowspan

public void setRowspan(int rowspan)

getRowspan

public int getRowspan()