com.extjs.gxt.ui.client.widget.layout
クラス TableLayout

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.widget.Layout
          extended by com.extjs.gxt.ui.client.widget.layout.TableLayout
すべての実装インタフェース:
Observable
Direct Known Subclasses:
CenterLayout, TableRowLayout

public class TableLayout
extends Layout

TableLayout allows you to easily render content into an HTML table. The total number of columns can be specified.

Rather than explicitly creating and nesting rows and columns as you would in HTML, you simply specify the total column count and start adding widgets in their natural order from left to right, top to bottom. The layout will automatically figure out, based on the column count how to position each panel within the table.


コンストラクタ 概要
TableLayout()
          Creates a new table layout.
TableLayout(int columns)
          Creates a new table layout.
 
メソッド 概要
 int getBorder()
          Returns the border width.
 Style.HorizontalAlignment getCellHorizontalAlign()
          Returns the cell horizontal alignment.
 int getCellPadding()
          Returns the table cell's padding.
 Style.VerticalAlignment getCellVerticalAlign()
          Returns the cell's vertical alignment.
 int getColumns()
          Returns the number of columns.
 java.lang.String getHeight()
          Returns the table's height.
 boolean getInsertSpacer()
          Returns true if spacers are being inserted.
 java.lang.String getTableStyle()
          Returns the table style.
 java.lang.String getWidth()
          Returns the table's width.
 void setBorder(int border)
          Sets the table's border property (defaults to 0).
 void setCellHorizontalAlign(Style.HorizontalAlignment cellHorizontalAlign)
          Sets the cell's horizontal alignment.
 void setCellPadding(int padding)
          Sets the amount that will be applied to each table cell.
 void setCellSpacing(int spacing)
          Sets the table's cell spacing.
 void setCellVerticalAlign(Style.VerticalAlignment cellVerticalAlign)
          Sets the cell's vertical alignment.
 void setColumns(int columns)
          Sets the number of columns (defaults to 1).
 void setHeight(java.lang.String height)
          Sets the table's height.
 void setInsertSpacer(boolean insertSpacer)
          True to insert a spacer cell into each row with 100% width so that all other cells are right aligned (defaults to false).
 void setTableStyle(java.lang.String tableStyle)
          Custom CSS styles to be applied to the table in the format expected by El.applyStyles(java.lang.String).
 void setWidth(java.lang.String width)
          Sets the table's width.
 
クラス com.extjs.gxt.ui.client.widget.Layout から継承されたメソッド
getExtraStyle, getResizeDelay, isRenderHidden, layout, setContainer, setExtraStyle, setRenderHidden, setResizeDelay
 
クラス com.extjs.gxt.ui.client.event.BaseObservable から継承されたメソッド
addListener, fireEvent, fireEvent, getFiresEvents, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタ 詳細

TableLayout

public TableLayout()
Creates a new table layout.


TableLayout

public TableLayout(int columns)
Creates a new table layout.

パラメータ:
columns - the number of columns
メソッド 詳細

getBorder

public int getBorder()
Returns the border width.

戻り値:
the border width

getCellHorizontalAlign

public Style.HorizontalAlignment getCellHorizontalAlign()
Returns the cell horizontal alignment.

戻り値:
the cell horizontal alignment

getCellPadding

public int getCellPadding()
Returns the table cell's padding.

戻り値:
the cell padding

getCellVerticalAlign

public Style.VerticalAlignment getCellVerticalAlign()
Returns the cell's vertical alignment.

戻り値:
the vertical alignment

getColumns

public int getColumns()
Returns the number of columns.

戻り値:
the column count

getHeight

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

戻り値:
the table height

getInsertSpacer

public boolean getInsertSpacer()
Returns true if spacers are being inserted.

戻り値:
the insert spacer state

getTableStyle

public java.lang.String getTableStyle()
Returns the table style.

戻り値:
the table style

getWidth

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

戻り値:
the table width

setBorder

public void setBorder(int border)
Sets the table's border property (defaults to 0).

パラメータ:
border - the border

setCellHorizontalAlign

public void setCellHorizontalAlign(Style.HorizontalAlignment cellHorizontalAlign)
Sets the cell's horizontal alignment. If specifed, the value will be applied to all cell's without a horizontal alignment specified.

パラメータ:
cellHorizontalAlign - the horizontal alignment

setCellPadding

public void setCellPadding(int padding)
Sets the amount that will be applied to each table cell. This method does not change the table's cellpadding attribute.

パラメータ:
padding - the cell padding

setCellSpacing

public void setCellSpacing(int spacing)
Sets the table's cell spacing.

パラメータ:
spacing - the cell spacing

setCellVerticalAlign

public void setCellVerticalAlign(Style.VerticalAlignment cellVerticalAlign)
Sets the cell's vertical alignment. If specifed, the value will be applied to all cell's without a horizontal alignment specified.

パラメータ:
cellVerticalAlign - the vertical alignment

setColumns

public void setColumns(int columns)
Sets the number of columns (defaults to 1).

パラメータ:
columns - the number of columns

setHeight

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

パラメータ:
height - the table height

setInsertSpacer

public void setInsertSpacer(boolean insertSpacer)
True to insert a spacer cell into each row with 100% width so that all other cells are right aligned (defaults to false).

パラメータ:
insertSpacer - true to add a spacer

setTableStyle

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

パラメータ:
tableStyle - the table style

setWidth

public void setWidth(java.lang.String width)
Sets the table's width.

パラメータ:
width - the table width