Class YAHOO.ext.grid.AbstractColumnModel

Object
   |
   +--YAHOO.ext.grid.AbstractColumnModel
Direct Known Subclasses:
YAHOO.ext.grid.DefaultColumnModel

class 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

onHeaderChange

YAHOO.util.CustomEvent onHeaderChange

onHiddenChange

YAHOO.util.CustomEvent onHiddenChange

onWidthChange

YAHOO.util.CustomEvent onWidthChange

Constructor Detail

YAHOO.ext.grid.AbstractColumnModel

YAHOO.ext.grid.AbstractColumnModel()

Method Detail

fireHeaderChange

void fireHeaderChange(colIndex, newHeader)

fireHiddenChange

void fireHiddenChange(colIndex, hidden)

fireWidthChange

void fireWidthChange(colIndex, newWidth)

getColumnCount

Number getColumnCount()

getColumnHeader

String getColumnHeader(<Number> col)

getColumnWidth

Number getColumnWidth(<Number> col)

getRenderer

Function getRenderer(<Number> col)

getSortType

Function getSortType(<Number> col)

getTotalWidth

Number getTotalWidth()

isHidden

Boolean isHidden(<Number> col)

isSortable

Boolean isSortable(<Number> col)


Documentation generated by JSDoc on Sat Oct 14 06:07:10 2006