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
- extends CSSStyleDeclaration
Summary
Constructor
- DataGridColumn (colName:String)
Instance properties
- editable : Boolean
- sortable : Boolean
- resizable : Boolean
- sortOnHeaderRelease : Boolean
- __width : Number
- columnName : String
- parentGrid : mx.controls.DataGrid
- colNum : Number
- headerCell : Object
- __header : String
- __headerRenderer
- __cellRenderer
- __labelFunction : Function
- styleName
- headerStyle : CSSStyleDeclaration
- width : Number
- headerText (h:String)
- headerText
- cellRenderer (cR)
- cellRenderer : String
- headerRenderer (hS)
- headerRenderer : String
- labelFunction (f:Function)
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
headerText
headerText
(write)
headerText
headerText
(read)
labelFunction
labelFunction
(read,write)
parentGrid
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.
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
its lookup of a style to allow nested styleNames (a column can have a styleName CSSStyleDec).
As well, reroute lookup through the grid itself