Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

update Flex TreeGrid

Summary:
ÔÚDataGridÖÐÏÔʾ²ã¼¶½á¹¹£¬googleÁËһϣ¬ÕÒµ½flexlibÖеÄTreeGrid¡£°ÑÔ´Âë¼ÓÔص½ÏîÄ¿ÖУ¬°´ÕÕÎĵµÈ¥ÊµÏÖÆ书ÄÜ¡£×îºó·¢ÏÖÓкöàbug£¬±ÈÈ綨λ²»×¼£¬ÎÞ·¨Í϶¯µÈÎÊÌ⡣ͨ¹ýÔĶÁºÍÐÞ¸ÄTreeGridÀ࣬ÕâЩbug¶¼½â¾öÁË¡£½Ó×ÅÎÞÒâÖз¢ÏÖ£¬ÅÅÐòÓÐÎÊÌâ¡£µã»÷ÁÐÍ·ÅÅÐò£¬·¢Ïֲ㼶½á¹¹±ä»ìÂÒÁË£¬Õâ¸öÎÊÌâ±È½ÏÑÏÖØ¡£ÒòΪcreate dataProviderÊÇ×îºËÐĵÄÄÚÈÝÁË¡£ÔÚ¿ªÔ´ÉçÇø(Sapience360 )ÉÏÕÒµ½ÁËÁíÍâÒ»¸öTreeGrid,µ«°æ±¾ÓеãÀÏÁË£¬²»Ö§³Öflex2.0ÒÔÉÏ¡£
Requirement: ʹtreeGridÖ§³Öflex 2.0ÒÔÉÏ¡£
Solution:
¶Ô±ÈSDK 1.5 ºÍ SDK 3.2 DataGridÔ´Âë·¢ÏÖ£¬TreeGrid µÄplaceSortArrow() ·½·¨Ó¦¸ÃÐÞ¸Äһϡ£¿ÉÒÔÖ±½Óµ÷ÓÃDataGridHeaderÀàµÄ·½·¨¡£
 override protected function placeSortArrow():void
  {
DataGridHeader(header).mx_internal::_placeSortArrow();
  }
ɾ³ýÎÞÓõıäÁ¿ ÈçÏ£º
 /**
    *  @private
    *  The index of the column being sorted.
    */
   private var sortIndex:int = -1;

  
    *  @private
    *  The direction of the sort
    */
   private var sortDirection:String;

   /**
    *  @private
    *  The index of the last column being sorted on.
    */
   private var lastSortIndex:int = -1;
============================================== 
Ð޸ĺóµÄTreeGrid.as ÀàÈçÏ£º
package org.osflex {

import flash.display.DisplayObject;
import flash.display.Graphics;
import flash.display.Sprite;
import flash.events.Event;

import mx.collections.IViewCursor;
import mx.controls.DataGrid;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.controls.dataGridClasses.DataGridHeader;
import mx.core.EventPriority;
import mx.core.FlexSprite;
import mx.core.IFlexDisplayObject;
import mx.core.mx_internal;
import mx.events.DataGridEvent;

use namespace mx_internal;

[IconFile("/assets/treegrid.png")]
/**
* A DataGrid that allow


Ïà¹ØÎĵµ£º

Flex Óë as3.0 SWF Ö®¼äµÄͨѶ

Ô´ÌùµØÖ· http://www.riachina.com/showtopic.aspx?topicid=8556#
ÓÉÓÚLocalconncetionµÄijЩÏÞÖÆ(һ̨¿Í»§Ö»¿ÉÒÔʹÓÃÌض¨Ãû×ÖµÄÒ»¸öÁ¬½Ó£¬ÕâÑùµÄ³ÌÐòÈç¹û¿ªÁ½¸ö´°¿Ú¾Í»á·¢ÉúÒì³£)£¬½ñÌìÏÐ×ÅûÊÂ×öÁËÒ»¸öÕâÑùµÄÊÔÑé¡£ÈÃFlash CS3ºÍFlexµÄ´úÂë¿ÉÒÔÏ໥µ÷Óã¬ÎªÁËÏÔʾЧ¹û£¬ÔÚË«·½µÄ½çÃæ·Ö±ð·ÅÖÃÁËÒ»¸öÎı¾ÊäÈë¿òºÍÒ»¸ö°´Å¥¡ ......

flex ÅäÖøÐÏë

  ÉÏ´ÎÌýÅóÓÑÌáÆðÏÖÔÚÔÙÓÃFlex×öÏîÄ¿£¬ÏÐϾ֮ÓàÔÚ×Ô¼ºµÄµçÄÔÉÏÅäÖÃÁËFlex + myeclipseµÄ¿ª·¢»·¾³¡£ËäÈ»¿ª·¢»·¾³´î½¨»¨Á˲»ÉÙµÄʱ¼ä£¬Ò²Óöµ½Á˲»ÉÙÎÊÌâ¡£ÔÙ½â¾öÕâЩÎÊÌâµÄʱºò£¬Ò²ÕÒÁ˲»ÉÙµÄ×ÊÁÏ£¬Ñ§µ½Á˲»ÉÙ¶«Î÷¡£ºÇºÇ
¼ÌÐøÑо¿Ñ§Ï°................... ......

JavaFX£¬FlexºÍSilverlightºáÏò¶Ô±È


һλFlexºÍJavaFXµÄRIA¿ª·¢ÕßÔÚ±¾ÆªÎÄÕÂÖжÔFlex£¬JavaFXºÍSilverlightµÄ¹¦ÄܺÍÓÅȱµã¸÷×Ô×ö³öÁËÆÀÂÛ¡£JavaFX1.1ÓÚ½ñÄê2Ô·¢²¼£¬2.0°æµÄ·¢²¼Ò²ÕýÔڼƻ®ÖС£
Flex, JavaFX, Silverlight…
̹°×À´Ëµ£¬ÔÚ¿ª·¢Õâ¸öÓ¦ÓÃÆڼ䣬ÎÒÔÚÄÚÐÄÒ»Ö±ÔڱȽÏÓÃJavaFX×öÓëÓÃAdobe Flex×öͬÑùµÄÊÂÇé¡£
¼òµ¥ËµÀ´£¬ÔÚ½ñÌ죬 Flex±ÈJav ......

Flexʼþ»úÖÆ»ù´¡(¶þ)

4. Àí½âʼþ½×¶Î(Event Phases) ÎÒÃÇ°Ñʼþ´¥·¢Ô´·ÖΪÁ½ÀࣺһÀàÊÇÄÇЩÏÔʾÔÚ½çÃæÖеÄÔªËØÅ׳öµÄʼþ£¬Ò»ÀàÊÇÄÇЩ²»ÔÚ½çÃæÖÐÏÔʾµÄÔªËØÅ׳öµÄʼþ¡£ºÜ¼òµ¥£¬¾Ù¸öÀý×Ó£ºµÚÒ»ÀàÈçURLLoader¶ÔÏóÈ¥loadͼƬ»òÆäËû×ÊÔ´ËùÅ׳öµÄÈçcompleteʼþ£¬¾ÍÊôÓÚµÚÒ»Àà¡£½çÃæÉϵÄÒ»¸ö°´Å¥ËùÅ׳öµÄclickʼþ¾ÍÊǵڶþÀ࣬Ëü»á´¥·¢Ò»¸öʼþÁ÷£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ