com.extjs.gxt.ui.client.widget.table
Class TableColumnModel

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseObservable
      extended by com.extjs.gxt.ui.client.widget.table.TableColumnModel
All Implemented Interfaces:
Observable
Direct Known Subclasses:
TreeTableColumnModel

Deprecated. see Grid

public class TableColumnModel
extends BaseObservable

This is the default implementation of a ColumnModel used by the Table.

Events:
Resize : TableEvent(table, columnIndex, width)
Fires after a column is resized.
HeaderChange : TableEvent(table, columnIndex)
Fires when the text of a header changes.
WidthChange : TableEvent(table, columnIndex)
Fires when the width of a column changes.


Field Summary
protected  java.util.List<? extends TableColumn> columns
          Deprecated.  
protected  Component table
          Deprecated.  
 
Constructor Summary
TableColumnModel(java.util.List<? extends TableColumn> columns)
          Deprecated. Constructs a new instance.
TableColumnModel(TableColumn... columns)
          Deprecated. Constructs a new instance.
 
Method Summary
 TableColumn getColumn(int index)
          Deprecated. Returns the column at the given, zero-relative index or null if the index is out of range.
 TableColumn getColumn(java.lang.String name)
          Deprecated. Returns the column with the given name.
 int getColumnCount()
          Deprecated. Returns the number of columns contained in the table.
 java.util.List<TableColumn> getColumns()
          Deprecated. Returns the colum model's column.
 Component getTable()
          Deprecated.  
 int getTotalWidth()
          Deprecated. Returns the total column model width.
protected  int getVariableColumnCount()
          Deprecated.  
protected  int getVariableWidth()
          Deprecated.  
 int getVisibleColumnCount()
          Deprecated. Returns the number of visible columns.
protected  int getWidthInPixels(int index)
          Deprecated.  
 int indexOf(TableColumn column)
          Deprecated. Returns the index of the column.
 void setColumnWidth(int index, float width)
          Deprecated. Sets the column's width.
 void setTable(Component table)
          Deprecated.  
protected  void setWidthAsPercent(int index, float width)
          Deprecated.  
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected Component table
Deprecated. 

columns

protected java.util.List<? extends TableColumn> columns
Deprecated. 
Constructor Detail

TableColumnModel

public TableColumnModel(java.util.List<? extends TableColumn> columns)
Deprecated. 
Constructs a new instance.


TableColumnModel

public TableColumnModel(TableColumn... columns)
Deprecated. 
Constructs a new instance.

Method Detail

getColumn

public TableColumn getColumn(int index)
Deprecated. 
Returns the column at the given, zero-relative index or null if the index is out of range.

Parameters:
index - the index of the column to return
Returns:
the column at the given index

getColumn

public TableColumn getColumn(java.lang.String name)
Deprecated. 
Returns the column with the given name.

Parameters:
name - the column name
Returns:
the column or null if no match

getColumnCount

public int getColumnCount()
Deprecated. 
Returns the number of columns contained in the table.

Returns:
the number of columns

getColumns

public java.util.List<TableColumn> getColumns()
Deprecated. 
Returns the colum model's column.

Returns:
the columns

getTable

public Component getTable()
Deprecated. 

getTotalWidth

public int getTotalWidth()
Deprecated. 
Returns the total column model width.

Returns:
the width in pixels

getVisibleColumnCount

public int getVisibleColumnCount()
Deprecated. 
Returns the number of visible columns.

Returns:
the visible column count

indexOf

public int indexOf(TableColumn column)
Deprecated. 
Returns the index of the column.

Parameters:
column - the column
Returns:
the column index

setColumnWidth

public void setColumnWidth(int index,
                           float width)
Deprecated. 
Sets the column's width.

Parameters:
index - the column index
width - the new width

setTable

public void setTable(Component table)
Deprecated. 

getVariableColumnCount

protected int getVariableColumnCount()
Deprecated. 

getVariableWidth

protected int getVariableWidth()
Deprecated. 

getWidthInPixels

protected int getWidthInPixels(int index)
Deprecated. 

setWidthAsPercent

protected void setWidthAsPercent(int index,
                                 float width)
Deprecated.