|
|||||||||
| 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
public class TableColumnModel
This is the default implementation of a ColumnModel used by the Table.
| Constructor Summary | |
|---|---|
TableColumnModel(java.util.List<? extends TableColumn> columns)
Constructs a new instance. |
|
TableColumnModel(TableColumn... columns)
Constructs a new instance. |
|
| Method Summary | |
|---|---|
TableColumn |
getColumn(int index)
Returns the column at the given, zero-relative index or null
if the index is out of range. |
TableColumn |
getColumn(java.lang.String name)
Returns the column with the given name. |
int |
getColumnCount()
Returns the number of columns contained in the table. |
java.util.List<TableColumn> |
getColumns()
Returns the colum model's column. |
Component |
getTable()
|
int |
getTotalWidth()
Returns the total column model width. |
int |
getVisibleColumnCount()
Returns the number of visible columns. |
int |
indexOf(TableColumn column)
Returns the index of the column. |
void |
setColumnWidth(int index,
float width)
Sets the column's width. |
void |
setTable(Component table)
|
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, fireEvent, fireEvent, getFiresEvents, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||