Main Page | Packages | Class Tree | Index | Help

mx.controls.listclasses

class SelectableRow

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

All Known Subclasses: DataGridRow, MenuRow, TreeRow

class SelectableRow
extends UIComponent

base class of selectable rows for lists



Field Summary


backGround: MovieClip



bGCol: Object



bGTween: Object



cell: Object



clr: Number



disabledColor: Number



grandOwner: Object



highlight: MovieClip



highlightColor: Number



icon_mc: MovieClip



isChangedToSelected: Boolean



item: Object
::: Declarations


listOwner: Object


static
LOWEST_DEPTH: Number



normalColor: Number



owner: Object



rowIndex: Number



state: String


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


SelectableRow ( )


Method Summary


bGOnDragOut ( Void ): Void



bGOnDragOver ( Void ): Void



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


bGOnRelease ( Void ): Void



bGOnRollOut ( Void ): Void



bGOnRollOver ( Void ): Void



createChildren ( Void ): Void
EXTEND this for putting in new list content


drawRow ( itmObj : Object, state : String, transition : Boolean ): Void
::: PRIVATE METHODS the overall method the list communicates with the rows with -- doesn't need to be extended


drawRowFill ( mc : MovieClip, newClr : Number ): Void
draws selections and rollover highlights


getCellIndex ( Void ): Object
scoped to the cell.


getDataLabel ( ): String
scoped to the cell.


getNormalColor ( Void ): Number
Gets the color of normal backgrounds


init ( Void ): Void
EXTEND to add more new data structures to class construction


invalidateStyle ( propName: String ): Void
called if just styles are changing so subclasses don't have to redraw everything


itemToString ( itmObj : Object ): String
parses the item to return a display string


onTweenEnd ( val : Number ): Void



onTweenUpdate ( val : Number ): Void



setCellRenderer ( forceSizing: Boolean ): Void



setState ( newState : String, transition : Boolean ): Void
state comes in 3 flavors : "selected", "highlighted", "normal" this draws the highlight and shouldn't be EXTENDED


setupBG ( Void ): Void
Don't extend this.


setValue ( itmObj : Object, state : String ): Void
::: METHODS for EXTENDING EXTEND this method to change the rendering of the content in an item (multiple cells, icons, etc)


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

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

backGround

var backGround: MovieClip

bGCol

var bGCol: Object

bGTween

var bGTween: Object

cell

var cell: Object

clr

var clr: Number

disabledColor

var disabledColor: Number

grandOwner

var grandOwner: Object

highlight

var highlight: MovieClip

highlightColor

var highlightColor: Number

icon_mc

var icon_mc: MovieClip

isChangedToSelected

var isChangedToSelected: Boolean

item

var item: Object
::: Declarations

listOwner

var listOwner: Object

LOWEST_DEPTH

static var LOWEST_DEPTH: Number

normalColor

var normalColor: Number

owner

var owner: Object

rowIndex

var rowIndex: Number

state

var state: String

Constructor Documentation

SelectableRow

function SelectableRow()

Method Documentation

bGOnDragOut

function bGOnDragOut(Void): Void

bGOnDragOver

function bGOnDragOver(Void): Void

bGOnPress

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

No touching!

bGOnRelease

function bGOnRelease(Void): Void

bGOnRollOut

function bGOnRollOut(Void): Void

bGOnRollOver

function bGOnRollOver(Void): Void

createChildren

function createChildren(Void): Void
EXTEND this for putting in new list content

Overrides:

drawRow

function drawRow(itmObj : Object,
 state : String,
 transition : Boolean): Void
::: PRIVATE METHODS the overall method the list communicates with the rows with -- doesn't need to be extended

drawRowFill

function drawRowFill(mc : MovieClip,
 newClr : Number): Void
draws selections and rollover highlights

getCellIndex

function getCellIndex(Void): Object
scoped to the cell.

Any cell in the row will receive these methods.

getDataLabel

function getDataLabel(): String
scoped to the cell.

Any cell in the row will receive these methods.

getNormalColor

function getNormalColor(Void): Number
Gets the color of normal backgrounds

init

function init(Void): Void
EXTEND to add more new data structures to class construction

Overrides:

invalidateStyle

function invalidateStyle(propName: String): Void
called if just styles are changing so subclasses don't have to redraw everything

Overrides:

itemToString

function itemToString(itmObj : Object): String
parses the item to return a display string

onTweenEnd

function onTweenEnd(val : Number): Void

onTweenUpdate

function onTweenUpdate(val : Number): Void

setCellRenderer

function setCellRenderer(forceSizing: Boolean): Void

setState

function setState(newState : String,
 transition : Boolean): Void
state comes in 3 flavors : "selected", "highlighted", "normal" this draws the highlight and shouldn't be EXTENDED

setupBG

function setupBG(Void): Void
Don't extend this.

Sets up the hit area

setValue

function setValue(itmObj : Object,
 state : String): Void
::: METHODS for EXTENDING EXTEND this method to change the rendering of the content in an item (multiple cells, icons, etc)

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:


The documentation was generated from the following file:


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