Main Page | Packages | Class Tree | Index | Help

mx.controls.gridclasses

class DataGridColumn

Object
  |
  +--mx.styles.CSSStyleDeclaration
        |
        +--mx.controls.gridclasses.DataGridColumn


class DataGridColumn
extends CSSStyleDeclaration

DataGridColumn class - extends CSSStyleDeclaration



Field Summary


__cellRenderer



__header: String



__headerRenderer



__labelFunction: Function



__width: Number



colNum: Number



columnName: String



editable: Boolean



headerCell: Object



headerStyle: CSSStyleDeclaration



parentGrid: mx.controls.DataGrid



resizable: Boolean



sortable: Boolean



sortOnHeaderRelease: Boolean



styleName


Fields inherited from class mx.styles.CSSStyleDeclaration

_tf, classConstructed, color, CSSTextStylesDependency, embedFonts, fontFamily, fontSize, fontStyle, fontWeight, marginLeft, marginRight, styleName, textAlign, textDecoration, textIndent

Fields inherited from class Object

__proto__, constructor, prototype

Property Summary


cellRenderer: (write)



cellRenderer: String (read)



headerRenderer: (write)



headerRenderer: String (read)



headerText: String (write)



headerText (read)



labelFunction: Function (read, write)



width: Number (read, write)


Constructor


DataGridColumn ( colName : String)


Method Summary


__getTextFormat ( tf: TextFormat, bAll: Boolean, fieldInst ): Boolean
Tricky business.


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).

Methods inherited from class mx.styles.CSSStyleDeclaration

__getTextFormat, classConstruct, getStyle

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Field Documentation

__cellRenderer

var __cellRenderer

__header

var __header: String

__headerRenderer

var __headerRenderer

__labelFunction

var __labelFunction: Function

__width

var __width: Number

colNum

var colNum: Number

columnName

var columnName: String

editable

var editable: Boolean

headerCell

var headerCell: Object

headerStyle

var headerStyle: CSSStyleDeclaration

parentGrid

var parentGrid: mx.controls.DataGrid

resizable

var resizable: Boolean

sortable

var sortable: Boolean

sortOnHeaderRelease

var sortOnHeaderRelease: Boolean

styleName

var styleName

Property Documentation

cellRenderer

cellRenderer: (write)

cellRenderer

cellRenderer: String (read)

headerRenderer

headerRenderer: (write)

headerRenderer

headerRenderer: String (read)

headerText

headerText: String (write)

headerText

headerText (read)

labelFunction

labelFunction: Function (read, write)

width

width: Number (read, write)

Constructor Documentation

DataGridColumn

function DataGridColumn(colName : String)

Method Documentation

__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.

Overrides:

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

Overrides:

Parameters:
prop
String prop name of style property

The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc