Packagecom.flexicious.nestedtreedatagrid.behaviors.rowedit
Classpublic class RowEditBehavior
InheritanceRowEditBehavior Inheritance Object

Enables full row edit behavior. Please note, when you do so, The flow of logic is also different, since we now apply the values from the editor in one go as opposed to cell based edit, where each value is applied before beginning the edit on the next cell. The flow now is:



Public Properties
 PropertyDefined By
  buttonContainer : HBox
The container for the buttons.
RowEditBehavior
  buttonContainerHeight : Number = 30
The height of the button container
RowEditBehavior
  buttonContainerWidth : Number = 168
The width of the button container
RowEditBehavior
  buttonRowHeight : Number = 20
The height of the button row.
RowEditBehavior
  cancelButton : Button
The cancel Button
RowEditBehavior
  cancelButtonStyleName : String
The styleName to apply to the Cancel button
RowEditBehavior
  cancelButtonText : String = Cancel
The text of the Cancel Button
RowEditBehavior
  currentEditCell : IFlexDataGridDataCell
The cell that triggered the edit.
RowEditBehavior
  currentEditCellInfo : CellInfo
The cellinfo associated with the currentEditCell
RowEditBehavior
  enabled : Boolean = false
Is the RowEditBehavior enabled?
RowEditBehavior
  grid : FlexDataGrid
The grid associated with this behavior
RowEditBehavior
  itemEditorsCommitFunction : Function = null
A function that may be used to commit item editors where itemEditorManagesPersistence=true.
RowEditBehavior
  itemEditorsInitializeFunction : Function = null
A function that may be used to init all the item editors.
RowEditBehavior
  itemEditorsValidatorFunction : Function = null
A function that may be used to validate all the item editors.
RowEditBehavior
  leftLockedContent : UIComponent
The container for left locked edit cells.
RowEditBehavior
  okButton : Button
The ok Button
RowEditBehavior
  okButtonStyleName : String
The styleName to apply to the OK button
RowEditBehavior
  okButtonText : String = Save
The text of the Save Button
RowEditBehavior
  padding : Number = 10
The space between the top of the edit row and the editors.
RowEditBehavior
  rightLockedContent : UIComponent
The container for right locked edit cells.
RowEditBehavior
  unlockedContent : Container
The container for unlocked edit cells.
RowEditBehavior
Public Methods
 MethodDefined By
  
RowEditBehavior
Protected Methods
 MethodDefined By
  
endEdit(event:Event):void
RowEditBehavior
  
onCellKeyUp(event:KeyboardEvent):void
RowEditBehavior
  
onGridScroll(event:ScrollEvent):void
RowEditBehavior
Property Detail
buttonContainerproperty
public var buttonContainer:HBox

The container for the buttons.

buttonContainerHeightproperty 
public var buttonContainerHeight:Number = 30

The height of the button container

buttonContainerWidthproperty 
public var buttonContainerWidth:Number = 168

The width of the button container

buttonRowHeightproperty 
public var buttonRowHeight:Number = 20

The height of the button row.

cancelButtonproperty 
public var cancelButton:Button

The cancel Button

cancelButtonStyleNameproperty 
public var cancelButtonStyleName:String

The styleName to apply to the Cancel button

cancelButtonTextproperty 
public var cancelButtonText:String = Cancel

The text of the Cancel Button

currentEditCellproperty 
currentEditCell:IFlexDataGridDataCell

The cell that triggered the edit.


Implementation
    public function get currentEditCell():IFlexDataGridDataCell
    public function set currentEditCell(value:IFlexDataGridDataCell):void
currentEditCellInfoproperty 
public var currentEditCellInfo:CellInfo

The cellinfo associated with the currentEditCell

enabledproperty 
public var enabled:Boolean = false

Is the RowEditBehavior enabled?

gridproperty 
public var grid:FlexDataGrid

The grid associated with this behavior

itemEditorsCommitFunctionproperty 
public var itemEditorsCommitFunction:Function = null

A function that may be used to commit item editors where itemEditorManagesPersistence=true. Once itemEditorsValidatorFunction is null or returns true, the editors that use the built in persistence will populate the corresponding data object properties. However, editors where itemEditorManagesPersistence=true do not do this. This function allows you to commit values for editors where itemEditorManagesPersistence=true. This is function Will take dictionary object, where in the key will be the "uniqueIdentifier" of each of the columns, and the values will be the actual editors.

itemEditorsInitializeFunctionproperty 
public var itemEditorsInitializeFunction:Function = null

A function that may be used to init all the item editors. Will take dictionary object, where in the key will be the "uniqueIdentifier" of each of the columns, and the values will be the actual editors. Should return void.

itemEditorsValidatorFunctionproperty 
public var itemEditorsValidatorFunction:Function = null

A function that may be used to validate all the item editors. Will take dictionary object, where in the key will be the "uniqueIdentifier" of each of the columns, and the values will be the actual editors. Should return true or false.

leftLockedContentproperty 
public var leftLockedContent:UIComponent

The container for left locked edit cells.

okButtonproperty 
public var okButton:Button

The ok Button

okButtonStyleNameproperty 
public var okButtonStyleName:String

The styleName to apply to the OK button

okButtonTextproperty 
public var okButtonText:String = Save

The text of the Save Button

paddingproperty 
public var padding:Number = 10

The space between the top of the edit row and the editors.

rightLockedContentproperty 
public var rightLockedContent:UIComponent

The container for right locked edit cells.

unlockedContentproperty 
public var unlockedContent:Container

The container for unlocked edit cells.

Constructor Detail
RowEditBehavior()Constructor
public function RowEditBehavior(grid:FlexDataGrid)



Parameters
grid:FlexDataGrid
Method Detail
endEdit()method
protected function endEdit(event:Event):void

Parameters

event:Event

onCellKeyUp()method 
protected function onCellKeyUp(event:KeyboardEvent):void

Parameters

event:KeyboardEvent

onGridScroll()method 
protected function onGridScroll(event:ScrollEvent):void

Parameters

event:ScrollEvent