flexÖÐdataGridµÄ±à¼¹¦ÄÜ
ÔÚflexµÄdataGridÖУ¬ºÜ¶àÇé¿öÏÂÁÐÊÇÐèҪǶÈëÆäËûµÄ¿ØÖƵ쬱ÈÈ磺checkbox,comboxµÈ£¬´ËʱÐèÒªÀûÓÃdataGridµÄÈçϹ¦ÄÜ£º
1.datagrid±à¼¹¦Äܼò½é
µ±ÎÒÃǵã»÷datagridÖеÄÒ»¸öµ¥Ôª¸ñ½øÐбà¼Ê±£¬¿É½áºÏʹÓÃһЩ×é¼þ£¬RadioButtonGroup¡¢checkbox¡¢ComboBoxµÈ
datagridµÄ±à¼¹¦ÄܱØÐëʹÓÃÒÔÏÂ×é¼þ£ºeditorDataField¡¢itemEditorºÍitemRenderer¡£
editorDataField ÊôÐÔÈ·¶¨°üº¬ÐÂÊý¾ÝµÄÏîÄ¿±à¼Æ÷µÄÊôÐÔ£¬²¢Ê¹ÓÃÕâЩÐÂÊý¾Ý¸üÐÂÊý¾ÝÌṩ³ÌÐòÏîÄ¿¡£ÒòΪĬÈÏÏîÄ¿±à¼Æ÷ÊÇ TextInput ¿Ø¼þ£¬ËùÒÔ editorDataField ÊôÐÔµÄĬÈÏֵΪ "text"£¬ÒÔÖ¸¶¨ TextInput µÄ text ÊôÐÔ°üº¬ÐÂÏîÄ¿Êý¾Ý¡£
itemEditorΪDataGridµÄµ¥Ôª¸ñ±à¼Æ÷,¶øitemRendererÔòΪäÖȾÆ÷,¾ÍÊÇ˵.itemEditorÖ»»áÔÚµ¥Ôª¸ñ´¦Àí±à¼×´Ì¬Ï²Żá³öÏÖ.
itemRendererÔòÊÇÒ»Ö±ÏÔʾ(¾ÍÊÇÍøÓѹØÐĵÄ,×Ô¶¨ÒåDataGridµÄÁÐ)
datagrid¸÷ÏîÊý¾Ý±à¼ºóµÄ±£´æ
²»ÒªÒ»¸öÒ»¸öµØ´ÓdatagridÖжÁÈ¡¸÷ÏîµÄÖµ£¬×îºÃͨ¹ýArraycollectionÊý¾ÝÔ´Óëdatagrid½øÐа󶨣¬Èç¹ûÐèÒª¶ÁÈ¡±à¼ºóµÄÊýÖµ£¬¿ÉÒÔÖ±½Ó¶ÁÈ¡ArrayCollection¡£¾ßÌå¿´±¾ÎÄ¡¶datagrid¿Ø¼þµÄ¸÷ÏîÊý¾Ý¿É±à¼¡·¡£
2.editorDataFieldʹÓ÷½·¨
ÊôÐÔÃèÊö£º
public var editorDataField:String = "text"
ÏîÄ¿±à¼Æ÷µÄÊôÐÔÃû³Æ£¬ÆäÖаüº¬ÁбíÏîÄ¿µÄÐÂÊý¾Ý¡£ÀýÈ磬ĬÈ쵀 itemEditor Ϊ TextInput£¬Òò´Ë£¬editorDataField ÊôÐÔµÄĬÈÏֵΪ "text"£¬´ËÖµÖ¸¶¨ TextInput ¿Ø¼þµÄ text ÊôÐÔ¡£
Àý1£º
<mx:DataGridColumn headerText="Ãû³Æ" id="dg2" dataField="name" editable="true" editorDataField="text"/>
ÒÔÉÏ´úÂë˵Ã÷±íʾ"Ãû³Æ"ÕâÒ»ÁпÉͨ¹ýTextInput¿Ø¼þ±à¼£¬²¢½«TextInput¿Ø¼þµÄtextÊôÐÔÖµ´«¸øDataGridColumn¡£editorDataField="text"ÊÇĬÈÏÖµ£¬¿É²»Ð´¡£
Àý2£º
<mx:DataGridColumn headerText="¼Û¸ñ" id="dg3" dataField="price" editorDataField="value" editable="false">
<mx:itemRenderer>
 
Ïà¹ØÎĵµ£º
Adobe flexµ½µ×ÊÇ×öʲôµÄ£¬ÎÒÔÚÕâÀï¾Í²»½øÐвûÊöÁË¡£Ö÷ÒªÊÇдÏ£ºflex²å¼þ¼¯³Éµ½MyEclipse/EclipseÖеķ½·¨ºÍ flex+javaÏîÄ¿µÄ²¿Êð¹ý³Ì
²å¼þ°²×°¹ý³Ì£º
1.°²×°Eclipse»òÕßMyEclipse;
2.°²×°FlexBuilder3 beta2²å¼þ°æ -- FB3_WWEJ_Plugin.exe;
a.Ñ¡ÔñFlexBuilder3 µÄ°²×°Â·¾¶£¬¿ÉÒÔÈÎÒâÑ¡Ôñ£¬È»ºóµã ......
First, enough bytes for frame 1 are streamed down to the Flash
Player.
The Flash Player executes those bytes by creating a SystemManager
instance.
SystemManager instruct the Flash Player to stop at the end of frame
1.
SystemManager then goes on to create the Preloader which creates the ......
ÏÖÔÚ¸»webÓ¦ÓÃÒѾÊǸö´óÇ÷ÊÆ£¬Ô½À´Ô½¶àµÄ´«Í³¿Í»§¶ËÓ¦Óö¼Ïà¼Ì±»webÓ¦ÓÃËùÌæ´ú¡£µ«ÊǼøÓÚwebÓ¦ÓõÄÈõ½»»¥ÐÔ£¬ºÜ¶àÒµÎñ¸ºÔð¡¢ÈË»ú½»»¥Ç¿µÄÓ¦Óô¿js»¹ÊDz»ÄܺܺÃʤÈΣ¬Õâ¿ÖÊÇĿǰ»¹Óкܶà»îÔ¾csÓ¦ÓôæÔÚµÄÒ»¸öÖ÷ÒªÔÒò¡£Ç°²»¾Ã£¬¹«Ë¾Ò²ÔÚ×ö¼èÄѵÄÑ¡ÔñwebÓ¦ÓÃǰ̨¿ª·¢¿ò¼ÜÑ¡ÐÍÎÊÌ⣬×îº ......
ǰһÕóÔÚÂÛ̳ÉÏ¿´µ½Ò»¸öÐֵܣ¬ÏëÔÚFlex ChartÖÐΪͼÀýÉèÖÃ3DЧ¹û,½ü¼¸Ìì²éÕÒÁËЩ×ÊÁÏ£¬¶¯ÊÖ×öÁ˸öDEMO¹©´ó¼Ò²Î¿¼!
DEMOÑÝʾµØÖ·http://xingjunli.webs.com/flash/flexChartDemo.swf,ÏÈÀ´¸öͼƬ¿´¿´×îÖÕЧ¹û:
Ïà¹ØÖªÊ¶µã
......