| java.lang.Object net.mygwt.ui.client.util.Observable net.mygwt.ui.client.widget.table.TableColumnModel
All known Subclasses: net.mygwt.ui.client.widget.treetable.TreeTableColumnModel,
TableColumnModel | public class TableColumnModel extends Observable (Code) | | This is the default implementation of a ColumnModel used by the Table.
- Events:
- Resize : (this,widget,index)
Fires after a column is resized.
- source : this
- widget : table
- index : column index
|
TableColumnModel | public TableColumnModel(TableColumn[] columns)(Code) | | Constructs a new instance.
|
getColumn | public TableColumn getColumn(int index)(Code) | | 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 the column at the given index |
getColumn | public TableColumn getColumn(String name)(Code) | | Returns the column with the given name.
Parameters: name - the column name the column or null if no match |
getColumnCount | public int getColumnCount()(Code) | | Returns the number of columns contained in the table.
the number of columns |
getFixedWidth | int getFixedWidth()(Code) | | |
getTotalWidth | public int getTotalWidth()(Code) | | Returns the total column model width.
the width in pixels |
getVariableColumnCount | protected int getVariableColumnCount()(Code) | | |
getVariableWidth | protected int getVariableWidth()(Code) | | |
getVisibleColumnCount | public int getVisibleColumnCount()(Code) | | Returns the number of visible columns.
the visible column count |
getWidthInPixels | protected int getWidthInPixels(int index)(Code) | | |
indexOf | public int indexOf(TableColumn column)(Code) | | Returns the index of the column.
Parameters: column - the column the column index |
setColumnWidth | public void setColumnWidth(int index, float width)(Code) | | Sets the column's width.
Parameters: index - the column index Parameters: width - the new width |
setWidthAsPercent | protected void setWidthAsPercent(int index, float width)(Code) | | |
|
|