Package | com.flexicious.nestedtreedatagrid.cells |
Class | public class FlexDataGridHeaderCell |
Inheritance | FlexDataGridHeaderCell ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | backgroundColorString : String [read-only]
If column is a checkbox column, returns the current state of the checkbox renderer
| FlexDataGridCell | |
![]() | backgroundDirty : Boolean
A number of operations can cause the cells text and background colors to change. | FlexDataGridCell | |
![]() | checkBoxState : String [read-only]
If column is a checkbox column, returns the current state of the checkbox renderer
| FlexDataGridCell | |
![]() | colIcon : Image
When column.enableIcon=true, this is the icon that will be associated with the cell. | FlexDataGridCell | |
![]() | column : FlexDataGridColumn
The FlexDataGridColumn associated with this cell. | FlexDataGridCell | |
![]() | componentInfo : ComponentInfo
The component info that holds this cell in the cells collection of the associated rowInfo object. | FlexDataGridCell | |
![]() | currentBackgroundColors : * | FlexDataGridCell | |
![]() | currentTextColors : * | FlexDataGridCell | |
![]() | destroyed : Boolean
Once a grid is rendered, each cell in the grid is shown in the UI. | FlexDataGridCell | |
drawTopBorder : Boolean [override] [read-only]
| FlexDataGridHeaderCell | ||
![]() | expandCollapseIcon : ExpandCollapseIcon
In 2.7, ability was added to have any cell be a expand collapse cell. | FlexDataGridCell | |
height : Number [override] [write-only] | FlexDataGridHeaderCell | ||
![]() | horizontalGridLineColor : * [read-only] | FlexDataGridCell | |
![]() | horizontalGridLineThickness : * [read-only] | FlexDataGridCell | |
![]() | iExpandCollapseComponent : IExpandCollapseComponent [read-only]
In 2.7, ability was added to have any cell be a expand collapse cell. | FlexDataGridCell | |
![]() | isChromeCell : Boolean [read-only]
The "Chrome" is defined as header,footer,pager,filter sections. | FlexDataGridCell | |
![]() | isContentArea : Boolean [read-only]
Returns true if we are a data cell or if we area a chrome cell
at a nest depth of greater than 1. | FlexDataGridCell | |
![]() | isDataCell : Boolean [read-only]
Returns true if the rowInfo object associated with this cell is of type RowPositionInfo.ROW_TYPE_DATA. | FlexDataGridCell | |
![]() | isElastic : Boolean [read-only]
Returns true if this cell is not right locked or not fixed width. | FlexDataGridCell | |
![]() | isExpandCollapseCell : Boolean [read-only]
Calcualted property that returns if this cell is a expand collapse cell. | FlexDataGridCell | |
![]() | isLeftLocked : Boolean [read-only] | FlexDataGridCell | |
![]() | isLocked : Boolean [read-only] | FlexDataGridCell | |
![]() | isNewlyCreated : Boolean [read-only]
When a cell is created for the first time, this flag is set to true. | FlexDataGridCell | |
![]() | isRightLocked : Boolean [read-only] | FlexDataGridCell | |
isSorted : Boolean [read-only]
Returns icon!=null
| FlexDataGridHeaderCell | ||
![]() | level : FlexDataGridColumnLevel
The FlexDataGridColumnLevel associated with this cell. | FlexDataGridCell | |
![]() | moving : Boolean = false
Used by header cells and column group cells for drag drop move. | FlexDataGridCell | |
![]() | nestDepth : Number [read-only]
Returns the nestpDepth property of the associated level, if it is not null. | FlexDataGridCell | |
![]() | perceivedX : Number [read-only]
The X Position of this cell, as the user sees it. | FlexDataGridCell | |
![]() | renderer : DisplayObject [read-only] | FlexDataGridCell | |
![]() | rendererFactory : IFactory | FlexDataGridCell | |
![]() | rowInfo : RowInfo
The rowInfo object associated with this cell. | FlexDataGridCell | |
![]() | text : String
This is the actual text to display in the cell. | FlexDataGridCell | |
![]() | verticalGridLineColor : * [read-only] | FlexDataGridCell | |
![]() | verticalGridLineThickness : * [read-only] | FlexDataGridCell | |
![]() | wordWrap : Boolean
This flag is a used for enabling the wordWrap on the associated renderer. | FlexDataGridCell |
Property | Defined By | ||
---|---|---|---|
icon : Object
The sort icon. | FlexDataGridHeaderCell | ||
prefix : String [override] [read-only]
Returns one of the following values on basis of what type of cell this is:
Blank string for data cells
header
footer
filter
columnGroup
pager
| FlexDataGridHeaderCell | ||
sortLabel : Object
The sort label. | FlexDataGridHeaderCell |
Method | Defined By | ||
---|---|---|---|
Constructor. | FlexDataGridHeaderCell | ||
createSortIcon(container:DisplayObjectContainer):void
Creates the sort icon. | FlexDataGridHeaderCell | ||
destroy():void [override]
| FlexDataGridHeaderCell | ||
destroySortIcon():void
Removes the sort icon and the sort label
| FlexDataGridHeaderCell | ||
![]() | drawBackground(unscaledWidth:Number, unscaledHeight:Number):void
Draws the background as well as calls drawBorder on the given cell
Each cell in Ultimate will draw its own background
and border. | FlexDataGridCell | |
![]() | drawRightBorder(unscaledWidth:Number, unscaledHeight:Number):void | FlexDataGridCell | |
[override]
| FlexDataGridHeaderCell | ||
getRolloverColor():* [override]
| FlexDataGridHeaderCell | ||
![]() |
If this is a fillRow, returns the value of the color property. | FlexDataGridCell | |
![]() | getStyleValue(styleProp:String):* | FlexDataGridCell | |
getTextColors():* [override]
| FlexDataGridHeaderCell | ||
![]() | hasHorizontalGridLines():Boolean | FlexDataGridCell | |
![]() | hasVerticalGridLines():Boolean | FlexDataGridCell | |
initializeCheckBoxRenderer(renderer:DisplayObject):void [override]
| FlexDataGridHeaderCell | ||
![]() | invalidateBackground():void
Marks the cell so that the background and borders are drawn in the next validation cycle. | FlexDataGridCell | |
move(x:Number, y:Number):void [override]
| FlexDataGridHeaderCell | ||
![]() | placeComponent(cellRenderer:DisplayObject, unscaledWidth:Number, unscaledHeight:Number, usePadding:Boolean = true):Point | FlexDataGridCell | |
placeSortIcon():void
Places the sort icon after it is created. | FlexDataGridHeaderCell | ||
refreshCell():void [override]
| FlexDataGridHeaderCell | ||
setActualSize(w:Number, h:Number):void [override] | FlexDataGridHeaderCell | ||
setRendererSize(cellRenderer:DisplayObject, w:Number, h:Number):void [override]
Sets the size of the renderer, accounting for the width of the split header or the icon. | FlexDataGridHeaderCell |
Method | Defined By | ||
---|---|---|---|
![]() | capitalizeFirstLetterIfPrefix(val:String):String | FlexDataGridCell | |
![]() | drawCell(unscaledWidth:Number, unscaledHeight:Number):void | FlexDataGridCell | |
drawSortSeparator():void
Draws the little gray line between the header that does the actual sort
and the multi column sort part of the header that adds the current column to the existing sort. | FlexDataGridHeaderCell | ||
onCheckChange(event:Event):void [override]
Handler for checkbox check change. | FlexDataGridHeaderCell | ||
onSortLabelClick(event:MouseEvent):void
Default handler for the sort label click. | FlexDataGridHeaderCell | ||
selectLevel(checkLevel:FlexDataGridColumnLevel, items:Object, checked:Boolean = true):void
Select all items passed in
| FlexDataGridHeaderCell |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the cell is clicked. | FlexDataGridHeaderCell |
drawTopBorder | property |
drawTopBorder:Boolean
[read-only] [override]
public function get drawTopBorder():Boolean
height | property |
height:Number
[write-only] [override] public function set height(value:Number):void
icon | property |
icon:Object
The sort icon. This is null by default. It gets initialized in the createSortIcon method, which is called after refreshCell method.
protected function get icon():Object
protected function set icon(value:Object):void
isSorted | property |
isSorted:Boolean
[read-only] Returns icon!=null
public function get isSorted():Boolean
prefix | property |
prefix:String
[read-only] [override] Returns one of the following values on basis of what type of cell this is:
protected function get prefix():String
sortLabel | property |
sortLabel:Object
The sort label. This is null by default. It gets initialized in the createSortIcon method, which is called after refreshCell method.
protected function get sortLabel():Object
protected function set sortLabel(value:Object):void
FlexDataGridHeaderCell | () | Constructor |
public function FlexDataGridHeaderCell()
Constructor. Adds an event listener for the click event.
createSortIcon | () | method |
public function createSortIcon(container:DisplayObjectContainer):void
Creates the sort icon. Depending whether the enableMultiColumnSort flag is set to true, this method will create a sort label as well, which is responsible for initializing the icon.
Parameters
container:DisplayObjectContainer |
destroy | () | method |
override public function destroy():void
destroySortIcon | () | method |
public function destroySortIcon():void
Removes the sort icon and the sort label
drawSortSeparator | () | method |
protected function drawSortSeparator():void
Draws the little gray line between the header that does the actual sort and the multi column sort part of the header that adds the current column to the existing sort.
getBackgroundColors | () | method |
override public function getBackgroundColors():*
Returns
* |
getRolloverColor | () | method |
override public function getRolloverColor():*
Returns
* |
getTextColors | () | method |
override public function getTextColors():*
Returns
* |
initializeCheckBoxRenderer | () | method |
override public function initializeCheckBoxRenderer(renderer:DisplayObject):void
Parameters
renderer:DisplayObject |
move | () | method |
override public function move(x:Number, y:Number):void
Parameters
x:Number | |
y:Number |
onCheckChange | () | method |
override protected function onCheckChange(event:Event):void
Handler for checkbox check change. If the target is the top level (grid.columnLevel) checkbox, dispatches the SELECT_ALL_CHECKBOX_CHANGED event, and calls selectAll on the associated top level. Calls level.selectRow method based on checkbox state, and whether or not grid.enableSelectionExclusion is set to true.
Parameters
event:Event |
onSortLabelClick | () | method |
protected function onSortLabelClick(event:MouseEvent):void
Default handler for the sort label click. (The sort label is only shown when the enableMultiColumnSortFlag is set to true). If the grid.enableSplitHeader is true and the column is sortable, sort is handled by the headerContainers onHeaderCellClicked method. Otherwise, this method will launch the multiColumnSortPopUp.
Parameters
event:MouseEvent |
placeSortIcon | () | method |
public function placeSortIcon():void
Places the sort icon after it is created. By default the column is placed 3 pixels from the right, half way from the top. If the enableMultiColumnSort flag is set to true, the label is places above or below the icon based on if it is ascending or descending respectively.
refreshCell | () | method |
override public function refreshCell():void
selectLevel | () | method |
protected function selectLevel(checkLevel:FlexDataGridColumnLevel, items:Object, checked:Boolean = true):void
Select all items passed in
Parameters
checkLevel:FlexDataGridColumnLevel | |
items:Object | |
checked:Boolean (default = true )
|
setActualSize | () | method |
override public function setActualSize(w:Number, h:Number):void
Parameters
w:Number | |
h:Number |
setRendererSize | () | method |
override public function setRendererSize(cellRenderer:DisplayObject, w:Number, h:Number):void
Sets the size of the renderer, accounting for the width of the split header or the icon. If enableSplitHeader is set to true, reduces the renderer's width by grid.headerSortSeparatorRight If sort icon is rendererd, reduces the renderer's width by the icons width.
Parameters
cellRenderer:DisplayObject | |
w:Number | |
h:Number |
headerClicked | Event |
com.flexicious.nestedtreedatagrid.events.FlexDataGridEvent
Dispatched when the cell is clicked.