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
ÀÏÊÇÓö¼û ......
Adobe flexµ½µ×ÊÇ×öʲôµÄ£¬ÎÒÔÚÕâÀï¾Í²»½øÐвûÊöÁË¡£Ö÷ÒªÊÇдÏ£ºflex²å¼þ¼¯³Éµ½MyEclipse/EclipseÖеķ½·¨ºÍ flex+javaÏîÄ¿µÄ²¿Êð¹ý³Ì
²å¼þ°²×°¹ý³Ì£º
1.°²×°Eclipse»òÕßMyEclipse;
2.°²×°FlexBuilder3 beta2²å¼þ°æ -- FB3_WWEJ_Plugin.exe;
a.Ñ¡ÔñFlexBuilder3 µÄ°²×°Â·¾¶£¬¿ÉÒÔÈÎÒâÑ¡Ôñ£¬È»ºóµã ......
MyEclipse FlexµÄÅäÖÃÖ®³õÎÒÃÇ¿´¿´ÔµÓÉ£ºÒ»¿ªÊ¼Ñ§Ï°Ê¹ÓÃFlexµÄʱºò,ÎÒÊÇÓõĵ¥¶ÀµÄFlexBuilder3,×öЩ´¿FlexµÄÓ¦ÓóÌÐò»¹¿ÉÒÔ.µ«ÊÇÈç¹ûÒªºÍJava½áºÏÔÚÒ»ÆðʹÓÃ,¼´ÀûÓÃFLEX³äµ±Ò»¸öÍêÕûµÄJ2EEϵͳµÄWEB²ãµÄ»°,ÄÇôµ¥¶ÀʹÓÃFlexBuilder3ºÍMYECLIPSEÊǺܲ»·½±ãµÄ,´ó´óÓ°ÏìÁË¿ª·¢Ð§ÂÊ,Òò´Ë×öÁËÏÂMyEclipse+FlexµÄÅäÖÃ,´ïµ½Ö±½ÓÔÚ ......
ÔÚ±¾ÏµÁÐÇ°Ãæ¼¸ÆªÎÄÕÂÖзֱð½éÉÜÁËͨ¹ýWebService¡¢HTTPService¡¢URLLoaderÒÔ¼°FielReferenceµÈ×é¼þ
»òÀàÀ´Íê³ÉFlexÓë.NET·þÎñ¶ËµÄͨÐŵÄÏà¹ØÖªÊ¶µã¡£Í¨¹ýÕâЩ·½Ê½À´Íê³ÉÓë·þÎñ¶ËµÄͨÐÅÊǷdz£·½±ãºÍ¼òµ¥µÄ£¬µ«ÓÐËûµÄȱµã¾ÍÊÇͨÐÅÊý¾ÝÁ¿½ÏС£¬ÈçÒª´«
Êä´óÁ¿µÄÊý¾Ý»òÊÇʵÏÖ²»Í¬¶ÔÏóµÄÐòÁл¯´«Ê䣬ËüÃÇÔòÂú×ã²»ÁËÎÒÃǵ ......
ÏÈÓÃÏֳɵÄ×é¼þÍæÒ»Ï£¬Ò»»áÔÙÈ¥¿´¿´×é¼þÔ´ÂëÑо¿Ò»Ï¡£
http://code.google.com/p/flex-iframe/
ÏÂÔØÁËflexiframe.swc£¬ÒýÈ빤³Ì¡£
flex´úÂë
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
......