topical media & game development

talk show tell print

student-ar-fl-controls-dataGridClasses-DataGridCellEditor.ax

student-ar-fl-controls-dataGridClasses-DataGridCellEditor.ax [swf] flex


  // Copyright 2007. Adobe Systems Incorporated. All Rights Reserved.
  package fl.controls.dataGridClasses {
          
          import fl.controls.LabelButton;
          import fl.controls.listClasses.ListData;
          import fl.controls.listClasses.ICellRenderer;
          import fl.controls.TextInput;
          import fl.core.UIComponent;
          import flash.events.Event;
          import flash.events.MouseEvent;
          
  
      //--------------------------------------
      //  Styles
      //--------------------------------------
          
@copy fl.core.UIComponent#style:textFormat @default null @langversion 3.0 @playerversion Flash 9.0.28.0

  
      [Style(name="textFormat", type="flash.text.TextFormat")]
  
      
Name of the class to use as the skin for the background and border of the @ax-student-ar-fl-controls-dataGridClasses-DataGridCellEditor. @default @file_skin @langversion 3.0 @playerversion Flash 9.0.28.0

  
      [Style(name="upSkin", type="Class")]
  
      
@copy fl.controls.LabelButton#style:textPadding @default 1 @langversion 3.0 @playerversion Flash 9.0.28.0

  
      [Style(name="textPadding", type="Number", format="Length")]
  
      //--------------------------------------
      //  Class description
      //--------------------------------------
          
The @ax-student-ar-fl-controls-dataGridClasses-DataGridCellEditor class defines the default item editor for a DataGrid control. You can override the default item editor by subclassing the @ax-student-ar-fl-controls-dataGridClasses-DataGridCellEditor class, or by creating your own cell editor class.
see: fl.controls.listClasses.ICellRenderer @includeExample examples/@fileExample.as @langversion 3.0 @playerversion Flash 9.0.28.0

  
          public class @ax-student-ar-fl-controls-dataGridClasses-DataGridCellEditor extends TextInput implements ICellRenderer {
                  
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  protected var _listData:ListData;
                  
@private (protected) @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  protected var _data:Object;
                  
          
Creates a new @ax-student-ar-fl-controls-dataGridClasses-DataGridCellEditor instance. @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  public function @ax-student-ar-fl-controls-dataGridClasses-DataGridCellEditor():void {
                          super();
                  }
                  
          
@private @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  private static var defaultStyles:Object = {
                          textPadding:1,
                          textFormat:null,
                          upSkin:"@file_skin"
                  };
                  
                  
@copy fl.core.UIComponent#getStyleDefinition() @includeExample ../../core/examples/UIComponent.getStyleDefinition.1.as -noswf @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  public static function getStyleDefinition():Object { 
                          return defaultStyles;
                  }
                                  
                  
@copy fl.controls.listClasses.ICellRenderer#listData @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  public function get listData():ListData {
                          return _listData;
                  }        
                  
@private (setter) @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  public function set listData(value:ListData):void {
                          _listData = value;
                          text = _listData.label;
                  }
                  
                  
@copy fl.controls.listClasses.ICellRenderer#data @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  public function get data():Object {
                          return _data;
                  }                
                  
@private (setter) @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  public function set data(value:Object):void {
                          _data = value;
                  }
                  
                  
Indicates whether the cell is included in the indices that were selected by the owner. A value of <code>true</code> indicates that the cell is included in the specified indices; a value of <code>false</code> indicates that it is not. <p>Note that this value cannot be changed in the DataGrid. The @ax-student-ar-fl-controls-dataGridClasses-DataGridCellEditor class implements the ICellRenderer interface, which specifies that this value must be defined.</p> @default false
see: fl.controls.listClasses.ICellRenderer ICellRenderer @internal [kenos] If the getter always returns false, shouldn't we say so? I'd like to add such a sentence to the end of the first paragraph. @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  public function get selected():Boolean {
                          return false;
                  }
                   
                  
@private (setter) @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  public function set selected(value:Boolean):void {}
                  
                  
@copy fl.controls.listClasses.ICellRenderer#setMouseState() @langversion 3.0 @playerversion Flash 9.0.28.0

  
                  public function setMouseState(state:String):void {}
          }
  }
  
  


(C) Æliens 27/08/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.