Object | +--YAHOO.ext.grid.AbstractColumnModel
This abstract class defines the ColumnModel interface and provides default implementations of the events required by the Grid.
Defined in AbstractColumnModel.js
| Field Summary | |
YAHOO.util.CustomEvent |
onHeaderChange
Fires when a header has changed - fireDirect sig: (this, columnIndex, newHeader) |
YAHOO.util.CustomEvent |
onHiddenChange
Fires when a column is hidden or unhidden - fireDirect sig: (this, columnIndex, hidden) |
YAHOO.util.CustomEvent |
onWidthChange
Fires when a column width is changed - fireDirect sig: (this, columnIndex, newWidth) |
| Constructor Summary | |
YAHOO.ext.grid.AbstractColumnModel
()
|
|
| Method Summary * Parameter types in italic indicate optional parameters | |
void
|
fireHeaderChange(colIndex, newHeader)
|
void
|
fireHiddenChange(colIndex, hidden)
|
void
|
fireWidthChange(colIndex, newWidth)
|
Number
|
getColumnCount()
Interface method - Returns the number of columns. |
String
|
getColumnHeader(<Number> col)
Interface method - Returns the header for the specified column. |
Number
|
getColumnWidth(<Number> col)
Interface method - Returns the width for the specified column. |
Function
|
getRenderer(<Number> col)
Interface method - Returns the rendering (formatting) function defined for the column. |
Function
|
getSortType(<Number> col)
Interface method - Returns the sorting comparison function defined for the column (defaults to sortTypes.none). |
Number
|
getTotalWidth()
Interface method - Returns the total width of all columns. |
Boolean
|
isHidden(<Number> col)
Interface method - Returns true if the specified column is hidden. |
Boolean
|
isSortable(<Number> col)
Interface method - Returns true if the specified column is sortable. |
| Field Detail |
YAHOO.util.CustomEvent onHeaderChange
YAHOO.util.CustomEvent onHiddenChange
YAHOO.util.CustomEvent onWidthChange
| Constructor Detail |
YAHOO.ext.grid.AbstractColumnModel()
| Method Detail |
void fireHeaderChange(colIndex, newHeader)
void fireHiddenChange(colIndex, hidden)
void fireWidthChange(colIndex, newWidth)
Number getColumnCount()
String getColumnHeader(<Number> col)
col - The column index
Number getColumnWidth(<Number> col)
col - The column index
Function getRenderer(<Number> col)
col - The column index
Function getSortType(<Number> col)
col - The column index
Number getTotalWidth()
Boolean isHidden(<Number> col)
col - The column index
Boolean isSortable(<Number> col)
col - The column index