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>
 
Ïà¹ØÎĵµ£º
·¸ÁËÒ»¸ö¼«µÍµÄ´íÎó£¬Õâ¸öÔÒòÊÇ×Ô¼ºÔì³ÉµÄ£¬ÊÇ×Ô¼º°Ñ
¸ÄΪ±¾µØ×Ô¼º¼´¿É£¬
²éÁËЩӢÎÄÍøÕ¾µÄ½â¾ö·½°¸£¬ËµÊÇʲôϵͳÉý¼¶£¬Åµ¶Ùɱ¶¾Èí¼þÎÊÌ⣬¶¼²»ÊÇ×Ô¼ºÒªµÄ´ð°¸£¬ÊÇ×Ô¼ºÒÔǰ²»Ð¡ÐĸÄÁË£¬ºóÀ´ÎÞÂÛÔõÃ´Ð¶ÔØ¡¢Éý¼¶¡¢ÖØ×°flash²å¼þ¶¼Ò»¸öÑù
http://hi.baidu.com/phperbo/blog/item/bf77fefb29a73b1e6d22ebe4.html
ÀÏÊÇÓö¼û ......
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 ......
¹ÙÍøÐÅÏ¢£º(API:http://flexlib.googlecode.com/svn/trunk/docs/index.html)
HowToContribute
How you can contribute code to FlexLib
IntroductionLicenseBefore you submit codeFlexBuilderProject page to learn how to check out the project into Flex Builder. Read HowToBuild to learn how to compile ......
ÉÏ´ÎÌýÅóÓÑÌáÆðÏÖÔÚÔÙÓÃFlex×öÏîÄ¿£¬ÏÐϾ֮ÓàÔÚ×Ô¼ºµÄµçÄÔÉÏÅäÖÃÁËFlex + myeclipseµÄ¿ª·¢»·¾³¡£ËäÈ»¿ª·¢»·¾³´î½¨»¨Á˲»ÉÙµÄʱ¼ä£¬Ò²Óöµ½Á˲»ÉÙÎÊÌâ¡£ÔÙ½â¾öÕâЩÎÊÌâµÄʱºò£¬Ò²ÕÒÁ˲»ÉÙµÄ×ÊÁÏ£¬Ñ§µ½Á˲»ÉÙ¶«Î÷¡£ºÇºÇ
¼ÌÐøÑо¿Ñ§Ï°................... ......
ÏÖÔÚ¸»webÓ¦ÓÃÒѾÊǸö´óÇ÷ÊÆ£¬Ô½À´Ô½¶àµÄ´«Í³¿Í»§¶ËÓ¦Óö¼Ïà¼Ì±»webÓ¦ÓÃËùÌæ´ú¡£µ«ÊǼøÓÚwebÓ¦ÓõÄÈõ½»»¥ÐÔ£¬ºÜ¶àÒµÎñ¸ºÔð¡¢ÈË»ú½»»¥Ç¿µÄÓ¦Óô¿js»¹ÊDz»ÄܺܺÃʤÈΣ¬Õâ¿ÖÊÇĿǰ»¹Óкܶà»îÔ¾csÓ¦ÓôæÔÚµÄÒ»¸öÖ÷ÒªÔÒò¡£Ç°²»¾Ã£¬¹«Ë¾Ò²ÔÚ×ö¼èÄѵÄÑ¡ÔñwebÓ¦ÓÃǰ̨¿ª·¢¿ò¼ÜÑ¡ÐÍÎÊÌ⣬×îº ......