DataGridColumn

Kind of class:class
Inherits from:CSSStyleDeclaration
Classpath:mx.controls.gridclasses.DataGridColumn
File last modified:Tuesday, 18 December 2007, 15:44:37
DataGridColumn class
- extends CSSStyleDeclaration

Summary


Constructor
Instance methods
  • getStyle (prop:String)
    • Since DataGridColumn is a subclass of CSSStyleDeclaration, we extend getStyle to redirect
  • __getTextFormat (tf:TextFormat, bAll:Boolean, fieldInst) : Boolean
    • Tricky business.

Constructor

DataGridColumn

function DataGridColumn (
colName:String)

Instance properties

__cellRenderer

__cellRenderer
(read)

__header

__header:String
(read)

__headerRenderer

__headerRenderer
(read)

__labelFunction

__labelFunction:Function
(read)

__width

__width:Number = 50
(read)

cellRenderer

cellRenderer
(write)

cellRenderer

cellRenderer:String
(read)

colNum

colNum:Number
(read)

columnName

columnName:String
(read)

editable

editable:Boolean = true
(read)

headerCell

headerCell:Object
(read)

headerRenderer

headerRenderer
(write)

headerRenderer

headerRenderer:String
(read)

headerStyle

headerStyle:CSSStyleDeclaration
(read)

headerText

headerText
(write)

headerText

headerText
(read)

labelFunction

labelFunction
(read,write)

parentGrid

(read)

resizable

resizable:Boolean = true
(read)

sortable

sortable:Boolean = true
(read)

sortOnHeaderRelease

sortOnHeaderRelease:Boolean = true
(read)

styleName

styleName
(read)

width

width:Number
(read,write)

Instance methods

__getTextFormat

function __getTextFormat (
tf:TextFormat, bAll:Boolean, fieldInst) : Boolean

Tricky business. Change the way textFields in this column lookup their text properties to make sure
they check the column, the column and grid's headerStyle (if necessary), and then the grid.

getStyle

function getStyle (
prop:String)

Since DataGridColumn is a subclass of CSSStyleDeclaration, we extend getStyle to redirect
its lookup of a style to allow nested styleNames (a column can have a styleName CSSStyleDec).
As well, reroute lookup through the grid itself