Packagecom.flexicious.nestedtreedatagrid
Classpublic class FlexDataGridHeaderContainer
InheritanceFlexDataGridHeaderContainer Inheritance FlexDataGridContainerBase Inheritance mx.core.Container

The container for header, footer, filter and pager sections of the top level. These rows are locked so they stay in place, i.e, they do not scroll when the user scrolls vertically. When the user scrolls horizontally, these rows will scroll. TODO. Rename this class FlexDataGridChromeContainer



Public Properties
 PropertyDefined By
  chromeType : int = 1
The type of this container.
FlexDataGridHeaderContainer
 InheritedcolumnDraggingDragCell : FlexDataGridCell
When a column is being dragged and dropped into a different location, this variable holds the cell that is being dragged.
FlexDataGridContainerBase
 InheritedcolumnResizingCell : FlexDataGridHeaderCell
When a column is being resized, this variable holds the cell that initiated the resize operation.
FlexDataGridContainerBase
 InheritedenableHorizontalRecycling : Boolean = true
Flag to turn on horizontal scroll recycle.
FlexDataGridContainerBase
 Inheritedgrid : FlexDataGrid
The grid that we belong to
FlexDataGridContainerBase
 InheritedinEdit : Boolean
[read-only] Returns true if grid is in edit mode
FlexDataGridContainerBase
 InheriteditemClickTimerDuration : Number = 250
Duration, in milliseconds to wait until dispatching a new ITEM_CLICK event.
FlexDataGridContainerBase
 InheriteditemVerticalPositions : Array
[read-only] Row positions
FlexDataGridContainerBase
  maxHorizontalScrollPosition : Number
[override] [read-only]
FlexDataGridHeaderContainer
 Inheritedrows : ArrayCollection
Collection of RowInfo objects currently being displayed.
FlexDataGridContainerBase
  width : Number
[override] [write-only]
FlexDataGridHeaderContainer
  y : Number
[override] [write-only]
FlexDataGridHeaderContainer
Protected Properties
 PropertyDefined By
 InheritedcellsWithColSpanOrRowSpan : Array
Once we are through calculating rowspans and colspans, we go through this array, popping cells and hiding cells that are covered by the increased col and row spans of the cells in this array.
FlexDataGridContainerBase
 InheritededitCell : IFlexDataGridDataCell
FlexDataGridContainerBase
 Inheritededitor : UIComponent
FlexDataGridContainerBase
 InheriteditemClickTimer : Timer
Timer to prevent double click from causing two item clicks.
FlexDataGridContainerBase
 Inherited_keyboardhandled : Boolean = false
FlexDataGridContainerBase
 InheritedlastSelectedRowIndex : int = -1
Last selected Row Index
FlexDataGridContainerBase
Public Methods
 MethodDefined By
  
FlexDataGridHeaderContainer
 Inherited
cancelEdit(event:Event):void
Cancels the current running edit.
FlexDataGridContainerBase
 Inherited
Used by accesibility
FlexDataGridContainerBase
 Inherited
endEdit(editor:UIComponent, event:Event = null):void
Dispatches ITEM_EDIT_END.
FlexDataGridContainerBase
 Inherited
filterPageSort(flat:Object, level:FlexDataGridColumnLevel, parentObj:Object, applyFilter:Boolean = true, applyPaging:Boolean = true, applySort:Boolean = true, pages:Array = null, updatePager:Boolean = false):Object
FlexDataGridContainerBase
 Inherited
findLoadingInfo(item:Object, level:FlexDataGridColumnLevel, useSelectedKeyField:Boolean = false):ItemLoadInfo
In lazy loaded grids, gets the loaded info of the provided object.
FlexDataGridContainerBase
 Inherited
getCellForRowColumn(dataObject:Object, col:FlexDataGridColumn, includeExp:Boolean = false):IFlexDataGridCell
Given a column and a data object, returns the cell associated with the data object.
FlexDataGridContainerBase
 Inherited
getCellInDirection(thisCell:IFlexDataGridCell, direction:String, dataOnly:Boolean = false, editableOnly:Boolean = false, scrollIfNecessary:Boolean = true, hoverableOnly:Boolean = false):IFlexDataGridCell
Gets the cell in the specified direction of the provided cell
FlexDataGridContainerBase
 Inherited
getChildAtId(arr:Array, id:uint):IFlexDataGridCell
Used by accesibility
FlexDataGridContainerBase
 Inherited
getChildId(arr:Array, cell:IFlexDataGridCell):uint
Used by accesibility
FlexDataGridContainerBase
 Inherited
getChildIds(arr:Array):void
Used by accesibility
FlexDataGridContainerBase
 Inherited
The IFlexDataGridCell under edit currently.
FlexDataGridContainerBase
 Inherited
getCurrentEditor():UIComponent
The editor being used as the current component to edit.
FlexDataGridContainerBase
  
getFilterArguments():ArrayCollection
eturns the filter at the top level.
FlexDataGridHeaderContainer
 Inherited
Gets the first cell of the first column.
FlexDataGridContainerBase
 Inherited
getFirstHoverableCell(row:RowInfo, dataOnly:Boolean = false, editableOnly:Boolean = false):IFlexDataGridCell
FlexDataGridContainerBase
  
FlexDataGridHeaderContainer
  
FlexDataGridHeaderContainer
 Inherited
getSelectedIds(bodyStart:uint):Array
Used by accesibility
FlexDataGridContainerBase
 Inherited
handleArrowKey(cell:IFlexDataGridCell, keyCode:uint, triggerEvent:Event):Boolean
Handles cell key up.
FlexDataGridContainerBase
 Inherited
handleCellKeyUp(cell:IFlexDataGridCell, keyCode:uint, triggerEvent:Event):void
Handles cell key up.
FlexDataGridContainerBase
 Inherited
handleEditorKeyEvent(event:KeyboardEvent, cell:IFlexDataGridCell):void
FlexDataGridContainerBase
 Inherited
initializeEditor(editCell:IFlexDataGridDataCell, editor:UIComponent, pare:UIComponent):void
FlexDataGridContainerBase
 Inherited
initializeFilterRenderer(filterRenderer:IFilterControl, filterColumn:FlexDataGridColumn, item:Object, flatDp:Object, level:FlexDataGridColumnLevel):void
Given a filter control, initializes it from the provided column
FlexDataGridContainerBase
 Inherited
Calls invalidateBackground() on each of the cells.
FlexDataGridContainerBase
 Inherited
[override]
FlexDataGridContainerBase
 Inherited
Given a cell, returns true if the cell is "hidden" by another cell that has a col span which will cover this cell.
FlexDataGridContainerBase
 Inherited
Given a cell, returns true if the cell is "hidden" by another cell that has a row span which will cover this cell.
FlexDataGridContainerBase
 Inherited
Can this cell accept hover.
FlexDataGridContainerBase
 Inherited
Abstract
FlexDataGridContainerBase
  
move(x:Number, y:Number):void
[override]
FlexDataGridHeaderContainer
 Inherited
onHeaderCellClicked(cell:FlexDataGridHeaderCell, triggerEvent:Event, isMsc:Boolean = false, useMsc:Boolean = true, direction:String = null):void
FlexDataGridContainerBase
 Inherited
populateValue(event:Event, itemEditor:UIComponent = null):Boolean
Applies the value from the editor back to the model object.
FlexDataGridContainerBase
 Inherited
reDraw():void
Calls removeAllComponents, createComponents, validateNow, and snapToColumnWidths
FlexDataGridContainerBase
 Inherited
Re-evaluates all the visible cell contents.
FlexDataGridContainerBase
 Inherited
FlexDataGridContainerBase
 Inherited
removeAllComponents(recycle:Boolean):void
End the edit, if active, call removeComponent on each of the rows, and remove all the children.
FlexDataGridContainerBase
 Inherited
scrollToExistingRow(vsp:Number, scrollDown:Boolean):void
Abstract
FlexDataGridContainerBase
 Inherited
Sets the current highlight cell to the first available cell.
FlexDataGridContainerBase
  
setFilterFocus(fld:String):Boolean
Sets the filter at the top level.
FlexDataGridHeaderContainer
  
setFilterValue(col:String, val:Object):void
Sets the filter value at the top level for the specified field
FlexDataGridHeaderContainer
 Inherited
sortByColumn(col:FlexDataGridColumn, direction:String = null):void
FlexDataGridContainerBase
Protected Methods
 MethodDefined By
  
addCell(component:DisplayObject, row:RowInfo, existingComponent:ComponentInfo = null):ComponentAdditionResult
[override]
FlexDataGridHeaderContainer
 Inherited
Based upon the type of the cell, adds various event listeners to them to respond to mouse overs, clicks, double clicks, mouse outs, keyboard input, etc.
FlexDataGridContainerBase
 Inherited
addPadding(nestLevel:int, row:RowInfo, paddingHeight:Number, level:FlexDataGridColumnLevel, forceRightLock:Boolean = false, scrollPad:Boolean = false, width:int = -1):FlexDataGridPaddingCell
FlexDataGridContainerBase
 Inherited
Starts the Edit Session.
FlexDataGridContainerBase
 Inherited
Given the mouse event, figures out which cell is the drop target.
FlexDataGridContainerBase
 Inherited
checkRowSpanColSpan(retCell:IFlexDataGridCell, thisCell:IFlexDataGridCell, direction:String, dataOnly:Boolean, editableOnly:Boolean, scrollIfNecessary:Boolean, hoverableOnly:Boolean):IFlexDataGridCell
FlexDataGridContainerBase
 Inherited
[override]
FlexDataGridContainerBase
 Inherited
getAllRows():ArrayCollection
Gets the Rows Collection
FlexDataGridContainerBase
 Inherited
FlexDataGridContainerBase
 Inherited
FlexDataGridContainerBase
 Inherited
Given a cell, gets the colspan associated with that cell by calling the grid.colSpanFunction.
FlexDataGridContainerBase
  
[override]
FlexDataGridHeaderContainer
 Inherited
FlexDataGridContainerBase
 Inherited
Given a cell, gets the rowSpan associated with that cell by calling the grid.rowSpanFunction.
FlexDataGridContainerBase
 Inherited
handleDoubleClick(cell:IFlexDataGridCell, triggerEvent:Event):void
Handles the Double Click.
FlexDataGridContainerBase
 Inherited
handleMouseClick(cell:IFlexDataGridCell, triggerEvent:Event, checkTimer:Boolean = true):void
Handles the Mouse click.
FlexDataGridContainerBase
 Inherited
handleMouseOut(cell:IFlexDataGridCell, triggerEvent:Event):void
Handles mouse out.
FlexDataGridContainerBase
 Inherited
handleMouseOver(cell:IFlexDataGridCell, triggerEvent:Event):void
Handles mouse over for data cells.
FlexDataGridContainerBase
 Inherited
handleSpaceBar(cell:IFlexDataGridCell, triggerEvent:Event):void
FlexDataGridContainerBase
 Inherited
Once the snapToColumnWidths finishes, the cellsWithColSpanOrRowSpan array contains all cells that have a row or col span.
FlexDataGridContainerBase
 Inherited
FlexDataGridContainerBase
  
onCellDropMouseMove(event:MouseEvent):void
[override]
FlexDataGridHeaderContainer
 Inherited
onCellMouseClick(event:MouseEvent):void
Handles mouse click.
FlexDataGridContainerBase
 Inherited
onCellMouseOver(event:MouseEvent):void
Handles Cell Mouse Over.
FlexDataGridContainerBase
 Inherited
onEditorKeyDown(event:KeyboardEvent):void
Handles the KeyDown on the Editor Component.
FlexDataGridContainerBase
  
[override]
FlexDataGridHeaderContainer
 Inherited
onItemClickTimer(event:TimerEvent):void
FlexDataGridContainerBase
 Inherited
onMouseMove(event:MouseEvent):void
FlexDataGridContainerBase
 Inherited
onSelectAllChanged(event:Event):void
FlexDataGridContainerBase
  
onWidthChanged(event:Event):void
FlexDataGridHeaderContainer
 Inherited
placeSortIcon(event:Event):void
FlexDataGridContainerBase
 Inherited
Removes the component from its parents hierarchy, and calls destroy method, if the component is a IFlexDataGridCell object Hangs on to the component in the cache for further reuse.
FlexDataGridContainerBase
 Inherited
Iterates through all rows and calls removeComponent on each of the cells.
FlexDataGridContainerBase
  
rootPageChange(event:Event):void
[override]
FlexDataGridHeaderContainer
 Inherited
selectAllChangedHandler(event:Event):void
FlexDataGridContainerBase
 Inherited
FlexDataGridContainerBase
 Inherited
FlexDataGridContainerBase
 Inherited
storeSort(item:Object, column:FlexDataGridColumn, ascending:Boolean):void
FlexDataGridContainerBase
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[override]
FlexDataGridContainerBase
Events
 Event Summary Defined By
 InheritedDispatched when the columns at any level are resized.FlexDataGridContainerBase
 InheritedDispatched when the header cells are clickedFlexDataGridContainerBase
Property Detail
chromeTypeproperty
public var chromeType:int = 1

The type of this container. Can be one of:

maxHorizontalScrollPositionproperty 
maxHorizontalScrollPosition:Number  [read-only] [override]


Implementation
    public function get maxHorizontalScrollPosition():Number
widthproperty 
width:Number  [write-only] [override]


Implementation
    public function set width(value:Number):void
yproperty 
y:Number  [write-only] [override]


Implementation
    public function set y(value:Number):void
Constructor Detail
FlexDataGridHeaderContainer()Constructor
public function FlexDataGridHeaderContainer(grid:FlexDataGrid)



Parameters
grid:FlexDataGrid
Method Detail
addCell()method
override protected function addCell(component:DisplayObject, row:RowInfo, existingComponent:ComponentInfo = null):ComponentAdditionResult

Parameters

component:DisplayObject
 
row:RowInfo
 
existingComponent:ComponentInfo (default = null)

Returns
ComponentAdditionResult
getFilterArguments()method 
public function getFilterArguments():ArrayCollection

eturns the filter at the top level.

Returns
ArrayCollection
getPager()method 
public function getPager():IExtendedPager

Returns
IExtendedPager
getPagerCell()method 
public function getPagerCell():ComponentInfo

Returns
ComponentInfo
getRowsForRecycling()method 
override protected function getRowsForRecycling():Object

Returns
Object
move()method 
override public function move(x:Number, y:Number):void

Parameters

x:Number
 
y:Number

onCellDropMouseMove()method 
override protected function onCellDropMouseMove(event:MouseEvent):void

Parameters

event:MouseEvent

onFilterChange()method 
override protected function onFilterChange(event:FilterPageSortChangeEvent):void

Parameters

event:FilterPageSortChangeEvent

onWidthChanged()method 
protected function onWidthChanged(event:Event):void

Parameters

event:Event

rootPageChange()method 
override protected function rootPageChange(event:Event):void

Parameters

event:Event

setFilterFocus()method 
public function setFilterFocus(fld:String):Boolean

Sets the filter at the top level.

Parameters

fld:String — The string to match the searchField property of the filter control with.

Returns
Boolean — True if focus was set, false if otherwise. Focus may not be set if the given search field does not exist, or if the filter control for the given search field does not implement IFocusManagerComponent.
setFilterValue()method 
public function setFilterValue(col:String, val:Object):void

Sets the filter value at the top level for the specified field

Parameters

col:String
 
val:Object