Field Summary |
| __focusedCell: Object |
|
|
|
| __headerHeight: Number |
|
|
|
| __rowRenderer: String |
|
|
|
| __showHeaders: Boolean |
|
|
|
| __tabHandlerCache: Function |
|
|
|
| activeGrid: Object |
|
|
|
| asc: Boolean |
|
|
|
| autoHScrollAble: Boolean |
|
|
|
| cell: Object |
|
|
|
| cellEditor: MovieClip |
|
|
|
| className: String |
|
|
|
| col: Object |
|
|
|
| column: DataGridColumn |
| scoping tricks to quiet the compiler
|
|
| columns: Array |
| ::: Declarations
|
|
| colX: Number |
|
|
|
| DISABLEDHEADERDEPTH: Number |
|
|
|
| dontEdit: Boolean |
|
|
|
| editable: Boolean |
|
|
|
| EDITORDEPTH: Number |
|
|
|
| editorMask: MovieClip |
|
|
|
| editTween: Tween |
|
|
|
| hasDrawn: Boolean |
|
|
|
| header_mc: MovieClip |
|
|
|
| HEADERCELLDEPTH: Number |
|
|
|
| headerCells: Array |
|
|
|
| HEADERDEPTH: Number |
| ::: Constants for depths of assets unless there are 5000 rows visible, this should hold.
|
|
| HEADEROVERLAYDEPTH: Number |
|
|
|
| invCheckCols: Boolean |
|
|
|
| invColChange: Boolean |
|
|
|
| invDrawCols: Boolean |
|
|
|
| invInitHeaders: Boolean |
| ::: Invalidation Flags.
|
|
| invSpaceColsEqually: Boolean |
|
|
|
| LINEDEPTH: Number |
|
|
|
| lines_mc: MovieClip |
| :::Movie clip assets
|
|
| listOwner: Object |
|
|
|
| minColWidth: Number |
|
|
|
| minScrollInterval |
|
|
|
| oldWidth: Number |
|
|
|
| oldX: Number |
|
|
|
| resizableColumns: Boolean |
|
|
|
| selectable: Boolean |
|
|
|
| SEPARATORDEPTH: Number |
|
|
|
| sortableColumns: Boolean |
|
|
|
| sortArrow: MovieClip |
|
|
|
| SORTARROWDEPTH: Number |
|
|
|
| sortDirection: String |
|
|
|
| sortIndex: Number |
| ::: Storage Vars
|
|
| stretchBar: MovieClip |
|
|
|
| stretcher: MovieClip |
|
|
|
| STRETCHERDEPTH: Number |
|
|
|
static
| symbolName: String |
|
|
|
static
| symbolOwner: Object |
|
|
|
| totColW: Number |
|
|
|
static
| version: String |
| Copyright (C) 2003 Macromedia, Inc.
|
|
Fields inherited from class mx.controls.List__labels, __selectedIndex, __vScrollPolicy, autoHScrollAble, boundingBox_mc, calcPreferredHeightFromData, calcPreferredWidthFromData, className, clipParameters, data, displayWidth, invScrollProps, invScrollSize, oldVWidth, scrollDepth, symbolName, symbolOwner, totalHeight, totalWidth, version |
|
Fields inherited from class mx.controls.listclasses.ScrollSelectList__cellRenderer, __dataProvider, __hPosition, __iconField, __iconFunction, __labelField, __labelFunction, __rowCount, __rowHeight, __rowRenderer, __width, addItem, addItemAt, baseRowZ, calcPreferredWidth, changeFlag, className, clearSelected, CONTENTDEPTH, createLabel, dataProvider, dragEnabled, dragScrolling, dropEnabled, enabled, getDataProvider, getItemAt, getLength, getSelectedIndex, getSelectedIndices, getSelectedItem, getSelectedItems, getValue, invLayoutContent, invRowHeight, invUpdateControl, isPressed, isRowStyle, isSelected, lastPosition, lastSelected, lastSelID, layoutX, layoutY, length, listContent, minScrollInterval, mixIt1, mixIt2, modelChanged, multipleSelection, onMouseUp, propertyTable, removeAll, removeItemAt, replaceItemAt, roundUp, rows, scrollInterval, selectable, selected, selectedIndex, selectedIndices, selectedItem, selectedItems, selectHolder, selectionDeleted, selectItem, setDataProvider, setSelectedIndex, setSelectedIndices, sortItems, sortItemsBy, tempLabel, tH, topRowZ, tW, value, wasKeySelected |
|
Fields inherited from class mx.core.ScrollView__hPosition, __hScrollPolicy, __maxHPosition, __viewMetrics, __vPosition, __vScrollPolicy, className, columnWidth, heightPadding, hScroller, invLayout, MASK_DEPTH, mask_mc, numberOfCols, oldRndUp, owner, propsInited, rowC, rowH, scrollAreaChanged, specialHScrollCase, symbolName, symbolOwner, version, viewableColumns, viewableRows, vScroller, widthPadding |
|
Fields inherited from class mx.core.View__tabIndex, border_mc, boundingBox_mc, childNameBase, className, createClassChildAtDepth, depth, loadExternal, symbolName, symbolOwner, version |
|
Fields inherited from class mx.core.UIComponentclipParameters, 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 |
|
|
Property Summary |
| columnCount: Number (read-only)
|
|
|
|
| columnNames: Array (read, write) |
|
|
|
| focusedCell: Object (read, write) |
|
|
|
| headerHeight: Number (read, write) |
|
|
|
| showHeaders: Boolean (read, write) |
|
|
|
Properties inherited from class mx.controls.Listlabels |
|
|
|
|
|
Properties inherited from class mx.core.UIObjectbottom, height, left, minHeight, minWidth, right, scaleX, scaleY, top, visible, width, x, y |
|
Constructor |
| DataGrid (
)
|
|
|
|
Method Summary |
| addColumn (
newCol
): DataGridColumn |
|
|
|
| addColumnAt (
index: Number, newCol
): DataGridColumn |
|
|
|
| configureScrolling (
Void
): Void |
| inherited from list - determine how to set up our srollbars
|
|
| disposeEditor (
Void
): Void |
| Pretty important method.
|
|
| draw (
) |
| inherited from list - the most important method in the component.
|
|
| drawColumns (
Void
): Void |
| to be used any time the columns change width.
|
|
| drawHeaderBG (
Void
): Void |
| pretty self-explanatory.
|
|
| editCell (
) |
| Take the stuff from the cellEditor, and store it in the dataProvider.
|
|
| editField (
index: Number, colName: String, data
): Void |
|
|
|
| editorKeyDown (
Void
): Void |
| Scoped to the cell editor.
|
|
| enableHeader (
v: Boolean
): Void |
| place movie clip over the headers to disable them
|
|
| findNextCell (
index: Number, colIndex: Number
): Void |
| find the next cell for the grid to TAB to (back or forth).
|
|
| findNextEnterCell (
Void
): Void |
| find the next cell down from the currently edited cell, and focus it.
|
|
| generateCols (
Void
): Void |
| searches the dataProvider to determine columns
|
|
| getColumnAt (
index : Number
): DataGridColumn |
|
|
|
| getColumnIndex (
name: String
): Number |
|
|
|
| getColumnNames (
Void
): Array |
|
|
|
| getHeaderHeight (
Void
): Number |
|
|
|
| getShowHeaders (
): Boolean |
|
|
|
| headerPress (
Void
): Void |
| scoped to overlay : Color the overlay, move the cell
|
|
| headerRelease (
Void
): Void |
| scoped to overlay : Do the sort!
|
|
| headerRollOut (
Void
): Void |
| scoped to overlay : turn off the overlay color
|
|
| headerRollOver (
Void
): Void |
| ::: BEGIN METHODS SCOPED TO THE HEADER'S OVERLAY - OWNER IS GRID scoped to overlay : draw the overlay with color
|
|
| headerUp (
Void
): Void |
| scoped to overlay : turn off the overlay color, move the cell back
|
|
| hideStretcher (
Void
): Void |
| scoped to the header separator - get rid of the cursor and any mouseMove listening
|
|
| init (
) |
| ::: PRIVATE CONSTRUCTION
|
|
| initHeaders (
Void
): Void |
| lays out the header assets.
|
|
| initRows (
Void
): Void |
| ::: ROW MANAGEMENT creates the rows' cells
|
|
| invalidateHeaderStyle (
Void
): Void |
| makes all header cells take on their new style props
|
|
| invalidateStyle (
propName : String
): Void |
| catch style changes and route them to the right spot
|
|
| isStretchable (
col: Number
): Boolean |
| ::: END METHODS SCOPED TO HEADER OVERLAY ::: METHODS FOR STRETCHABLE COLUMNS ::: determine if a column is stretchable
|
|
| layoutContent (
x: Number, y: Number, tW: Number, tH: Number, dW: Number, dH: Number
): Void |
| inherited from list - used to layout the rows inside the list Here we extend it to accomodate the headerHeight, and to ensure that if the width has changed, we draw more header background
|
|
| modelChanged (
eventObj: Object
): Void |
| inherited from list - catch any events from the model (see dataProvider spec) optimize for editing one cell - also generateCols in cases where there are none.
|
|
| notifyStyleChangeInChildren (
sheetName: String, styleProp: String, newValue
): Void |
| catch styles changing from styleSheets and route them
|
|
| onMouseDown (
Void
): Void |
| the grid listens for mouseDowns.
|
|
| onRowPress (
rowIndex: Number
): Void |
| catch events from the rows being pressed
|
|
| onSetFocus (
Void
): Void |
| when the grid gets focus, focus a cell
|
|
| onTweenEnd (
val
) |
|
|
|
| onTweenUpdate (
val
) |
| Tween methods for the wipe effect on the editor
|
|
| placeSortArrow (
Void
): Void |
| does what you'd think...
|
|
| removeAllColumns (
Void
): Void |
|
|
|
| removeColumnAt (
index: Number
): DataGridColumn |
|
|
|
| resizeColumn (
col: Number, w: Number
): Void |
| If no hScrollBar, handles the compacting of other columns when a column has been set to a specific size.
|
|
| setColumnNames (
tmpArray: Array
): Void |
|
|
|
| setEnabled (
v : Boolean
): Void |
| inherited from list
|
|
| setFocusedCell (
coord: Object, broadCast
): Void |
| focus a cell in the grid - harder than it looks
|
|
| setHeaderHeight (
h: Number
): Void |
|
|
|
| setHScrollPolicy (
policy: String
): Void |
| inherited from list - we're able to accomodate "auto" now.
|
|
| setRowCount (
rC: Number
): Void |
| inherited from list - used to layout a specific number of rows Here we extend it to accomodate the headerHeight
|
|
| setRowHeight (
rH: Number
): Void |
|
|
|
| setShowHeaders (
b: Boolean
): Void |
|
|
|
| setVPosition (
pos: Number
): Void |
| ::: SCROLL METHODS
|
|
| showStretcher (
Void
): Void |
| ::: BEGIN METHODS SCOPED TO THE HEADER'S SEPARATOR scoped to header seperator - shows the stretcher mouse cursor
|
|
| size (
Void
): Void |
| inherited from list
|
|
| spaceColumnsEqually (
Void
): Void |
|
|
|
| startSizing (
Void
): Void |
| scoped to header seperator - shows the stretchBar that indicates where a column stretch will leave the column's right side
|
|
| stopSizing (
Void
): Void |
| scoped to header seperator - releases the stretchBar, determines how much to resize the column.
|
|
| tabHandler (
Void
): Void |
| scoped to the FocusManager.
|
|
Methods inherited from class mx.controls.ListconfigureScrolling, createChildren, draw, getRowCount, hScroll, init, layoutContent, modelChanged, onScroll, setEnabled, setHPosition, setHScrollPolicy, setMaxHPosition, setRowCount, setVPosition, size |
|
Methods inherited from class mx.controls.listclasses.ScrollSelectList__onMouseUp, createChildren, dragScroll, draw, findInputText, findString, getPropertiesAt, getPropertiesOf, getRowCount, getRowHeight, getStateAt, getStyle, init, invalidateStyle, keyDown, layoutContent, moveSelBy, onRowDragOut, onRowDragOver, onRowPress, onRowRelease, onRowRollOut, onRowRollOver, selectRow, setCellRenderer, setEnabled, setIconField, setIconFunction, setLabelField, setLabelFunction, setPropertiesAt, setRowCount, setRowHeight, setVPosition, updateControl |
|
Methods inherited from class mx.core.ScrollView__onMouseWheel, childLoaded, createChild, createChildren, doLayout, draw, getHPosition, getHScrollPolicy, getMaxHPosition, getViewMetrics, getVPosition, getVScrollPolicy, init, invalidate, onScroll, scrollProxy, setEnabled, setHPosition, setHScrollPolicy, setMaxHPosition, setScrollProperties, setVPosition, setVScrollPolicy, size |
|
Methods inherited from class mx.core.ViewaddLayoutObject, childLoaded, convertToUIObject, createChild, createChildren, destroyChildAt, doLayout, draw, extension, getChildAt, init, initLayout, size |
|
Methods inherited from class mx.core.UIComponentdispatchValueChangedEvent, 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 MovieClipattachAudio, 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 |
|
|
|