Main Page | Packages | Class Tree | Index | Help

mx.controls.gridclasses

class DataGridRow

Object
  |
  +--MovieClip
        |
        +--mx.core.UIObject
              |
              +--mx.core.UIComponent
                    |
                    +--mx.controls.listclasses.SelectableRow
                          |
                          +--mx.controls.gridclasses.DataGridRow


class DataGridRow
extends SelectableRow



Field Summary


cells: Array
::: Declarations


colBG: MovieClip



columnIndex: Number
here just to make the compiler quiet


listOwner: Object



owner: Object



text: String



textHeight: Number



wasPressed: Boolean


Fields inherited from class mx.controls.listclasses.SelectableRow

backGround, bGCol, bGTween, cell, clr, disabledColor, grandOwner, highlight, highlightColor, icon_mc, isChangedToSelected, item, listOwner, LOWEST_DEPTH, normalColor, owner, rowIndex, state

Fields inherited from class mx.core.UIComponent

clipParameters, drawFocus, enabled, focusEnabled, focusManager, focusTextField, groupName, kStretch, mergedClipParameters, origBorderStyles, origBorderValues, popUp, symbolName, symbolOwner, tabEnabled, tabIndex, version

Fields inherited from class mx.core.UIObject

__height, __width, _color, _topmost, addEventListener, buildDepthTable, changeColorStyleInChildren, changeTextStyleInChildren, childrenCreated, className, clipParameters, color, createAccessibilityImplementation, createChildAtDepth, createEvent, ction, dispatchEvent, embedFonts, findNextAvailableDepth, fontFamily, fontSize, fontStyle, fontWeight, handleEvent, idNames, ignoreClassStyleDeclaration, initProperties, marginLeft, marginRight, methodTable, notifyStyleChangeInChildren, removeEventListener, setStyle, stylecache, styleName, symbolName, symbolOwner, textAlign, textColorList, textDecoration, textIndent, validateNow, version

Fields inherited from class MovieClip

_alpha, _currentframe, _droptarget, _focusrect, _framesloaded, _height, _lockroot, _name, _parent, _quality, _rotation, _soundbuftime, _target, _totalframes, _url, _visible, _width, _x, _xmouse, _xscale, _y, _ymouse, _yscale, enabled, focusEnabled, hitArea, tabChildren, tabEnabled, tabIndex, tooltipText, trackAsMenu, useHandCursor

Fields inherited from class Object

__proto__, constructor, prototype

Properties inherited from class mx.core.UIComponent

height, width

Properties inherited from class mx.core.UIObject

bottom, height, left, minHeight, minWidth, right, scaleX, scaleY, top, visible, width, x, y

Constructor


DataGridRow ( )


Method Summary


bGOnPress ( Void ): Void
::: METHODS SCOPED TO THE backGround.


cellGetPreferredHeight ( )



clearCells ( )
remove all cells


createCells ( Void ): Void
to be used when the columns change (add/remove)...


createChildren ( Void ): Void
don't call super - just make the background and the column color clip


drawCell ( cellNum, xPos, w, bgCol )
draw a background for this cell (for use in coloring the background of columns, see grid.drawColumns for usage


getCellIndex ( Void ): Object
scoped to the cell - gives cellEditors a reference point (part of the cellRenderer API)


getDataLabel ( ): String
scoped to the cell - gives cellEditors a label for their field in a dataProvider item (part of the cellRenderer API)


init ( Void ): Void
start an array for our cells


notifyStyleChangeInChildren ( sheetName: String, styleProp: String, newValue ): Void
route style changes to our cells


setState ( newState : String, transition : Boolean ): Void
extended this method to color all cells' enabled/disabled/rollOver/selected color


setValue ( itmObj, state, transition )
handles putting the object field values in the cells.


size ( Void ): Void
This is for adjusting the size of the highlight, its associated hit area, and the other contents EXTEND this for more layout of other content types


startEditCell ( )
::: EDITABILITY scoped to the background - owner is the row find the cell that needs editing on release of the row

Methods inherited from class mx.controls.listclasses.SelectableRow

bGOnDragOut, bGOnDragOver, bGOnPress, bGOnRelease, bGOnRollOut, bGOnRollOver, createChildren, drawRow, drawRowFill, getCellIndex, getDataLabel, getNormalColor, init, invalidateStyle, itemToString, onTweenEnd, onTweenUpdate, setCellRenderer, setState, setupBG, setValue, size

Methods inherited from class mx.core.UIComponent

dispatchValueChangedEvent, enabledChanged, findFocusFromObject, findFocusInChildren, getFocus, getFocusManager, init, isParent, onKillFocus, onSetFocus, pressFocus, releaseFocus, setEnabled, setFocus, setVisible, size

Methods inherited from class mx.core.UIObject

__getTextFormat, _createChildren, _getTextFormat, cancelAllDoLaters, constructObject, createChildren, createClassObject, createEmptyObject, createLabel, createObject, createSkin, destroyObject, doLater, doLaterDispatcher, draw, drawRect, getClassStyleDeclaration, getMinHeight, getMinWidth, getSkinIDName, getStyle, getStyleName, init, initFromClipParameters, invalidate, invalidateStyle, mergeClipParameters, move, redraw, setColor, setMinHeight, setMinWidth, setSize, setSkin, setVisible, size

Methods inherited from class MovieClip

attachAudio, attachMovie, beginFill, beginGradientFill, clear, createEmptyMovieClip, createTextField, curveTo, duplicateMovieClip, endFill, getBounds, getBytesLoaded, getBytesTotal, getDepth, getInstanceAtDepth, getNextHighestDepth, getSWFVersion, getTextSnapshot, getURL, globalToLocal, gotoAndPlay, gotoAndStop, hitTest, lineStyle, lineTo, loadMovie, loadVariables, localToGlobal, moveTo, nextFrame, onData, onDragOut, onDragOver, onEnterFrame, onKeyDown, onKeyUp, onKillFocus, onLoad, onMouseDown, onMouseMove, onMouseUp, onPress, onRelease, onReleaseOutside, onRollOut, onRollOver, onSetFocus, onUnload, play, prevFrame, removeMovieClip, setMask, startDrag, stop, stopDrag, swapDepths, unloadMovie, valueOf

Methods inherited from class Object

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



Field Documentation

cells

var cells: Array
::: Declarations

colBG

var colBG: MovieClip

columnIndex

var columnIndex: Number
here just to make the compiler quiet

listOwner

var listOwner: Object

owner

var owner: Object

text

var text: String

textHeight

var textHeight: Number

wasPressed

var wasPressed: Boolean

Constructor Documentation

DataGridRow

function DataGridRow()

Method Documentation

bGOnPress

function bGOnPress(Void): Void
::: METHODS SCOPED TO THE backGround.

No touching!

Overrides:

cellGetPreferredHeight

function cellGetPreferredHeight()

clearCells

function clearCells()
remove all cells

createCells

function createCells(Void): Void
to be used when the columns change (add/remove)...

a future optimization would only do the delta of the work, but for fileSize concerns, brute force it.

createChildren

function createChildren(Void): Void
don't call super - just make the background and the column color clip

Overrides:

drawCell

function drawCell(cellNum,
 xPos,
 w,
 bgCol)
draw a background for this cell (for use in coloring the background of columns, see grid.drawColumns for usage

getCellIndex

function getCellIndex(Void): Object
scoped to the cell - gives cellEditors a reference point (part of the cellRenderer API)

Any cell in the row will receive these methods.

Overrides:

getDataLabel

function getDataLabel(): String
scoped to the cell - gives cellEditors a label for their field in a dataProvider item (part of the cellRenderer API)

Any cell in the row will receive these methods.

Overrides:

init

function init(Void): Void
start an array for our cells

Overrides:

notifyStyleChangeInChildren

function notifyStyleChangeInChildren(sheetName: String,
 styleProp: String,
 newValue): Void
route style changes to our cells

Overrides:

setState

function setState(newState : String,
 transition : Boolean): Void
extended this method to color all cells' enabled/disabled/rollOver/selected color

Overrides:

setValue

function setValue(itmObj,
 state,
 transition)
handles putting the object field values in the cells.

Overrides:

size

function size(Void): Void
This is for adjusting the size of the highlight, its associated hit area, and the other contents EXTEND this for more layout of other content types

Overrides:

startEditCell

function startEditCell()
::: EDITABILITY scoped to the background - owner is the row find the cell that needs editing on release of the row


The documentation was generated from the following file:


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