|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.table.TableColumnModel
Grid
public class TableColumnModel
This is the default implementation of a ColumnModel used by the Table.
| 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 |
|---|
protected Component table
protected java.util.List<? extends TableColumn> columns
| Constructor Detail |
|---|
public TableColumnModel(java.util.List<? extends TableColumn> columns)
public TableColumnModel(TableColumn... columns)
| Method Detail |
|---|
public TableColumn getColumn(int index)
null
if the index is out of range.
index - the index of the column to return
public TableColumn getColumn(java.lang.String name)
name - the column name
null if no matchpublic int getColumnCount()
public java.util.List<TableColumn> getColumns()
public Component getTable()
public int getTotalWidth()
public int getVisibleColumnCount()
public int indexOf(TableColumn column)
column - the column
public void setColumnWidth(int index,
float width)
index - the column indexwidth - the new widthpublic void setTable(Component table)
protected int getVariableColumnCount()
protected int getVariableWidth()
protected int getWidthInPixels(int index)
protected void setWidthAsPercent(int index,
float width)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||