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

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>    
 


Ïà¹ØÎĵµ£º

flexÎÞ·¨¶Ïµãµ÷ÊԵĽâ¾ö°ì·¨

·¸ÁËÒ»¸ö¼«µÍµÄ´íÎó£¬Õâ¸öÔ­ÒòÊÇ×Ô¼ºÔì³ÉµÄ£¬ÊÇ×Ô¼º°Ñ
¸ÄΪ±¾µØ×Ô¼º¼´¿É£¬
²éÁËЩӢÎÄÍøÕ¾µÄ½â¾ö·½°¸£¬ËµÊÇʲôϵͳÉý¼¶£¬Åµ¶Ùɱ¶¾Èí¼þÎÊÌ⣬¶¼²»ÊÇ×Ô¼ºÒªµÄ´ð°¸£¬ÊÇ×Ô¼ºÒÔǰ²»Ð¡ÐĸÄÁË£¬ºóÀ´ÎÞÂÛÔõÃ´Ð¶ÔØ¡¢Éý¼¶¡¢ÖØ×°flash²å¼þ¶¼Ò»¸öÑù
http://hi.baidu.com/phperbo/blog/item/bf77fefb29a73b1e6d22ebe4.html
ÀÏÊÇÓö¼û ......

adobe flex²¿Êð ʵ¼Ê²Ù×÷

Adobe flexµ½µ×ÊÇ×öʲôµÄ£¬ÎÒÔÚÕâÀï¾Í²»½øÐвûÊöÁË¡£Ö÷ÒªÊÇдÏ£ºflex²å¼þ¼¯³Éµ½MyEclipse/EclipseÖеķ½·¨ºÍ flex+javaÏîÄ¿µÄ²¿Êð¹ý³Ì
²å¼þ°²×°¹ý³Ì£º
1.°²×°Eclipse»òÕßMyEclipse;
2.°²×°FlexBuilder3 beta2²å¼þ°æ --  FB3_WWEJ_Plugin.exe;
   a.Ñ¡ÔñFlexBuilder3 µÄ°²×°Â·¾¶£¬¿ÉÒÔÈÎÒâÑ¡Ôñ£¬È»ºóµã ......

MyEclipse Flex»·¾³ÅäÖÃÏê½â

MyEclipse FlexµÄÅäÖÃÖ®³õÎÒÃÇ¿´¿´ÔµÓÉ£ºÒ»¿ªÊ¼Ñ§Ï°Ê¹ÓÃFlexµÄʱºò,ÎÒÊÇÓõĵ¥¶ÀµÄFlexBuilder3,×öЩ´¿FlexµÄÓ¦ÓóÌÐò»¹¿ÉÒÔ.µ«ÊÇÈç¹ûÒªºÍJava½áºÏÔÚÒ»ÆðʹÓÃ,¼´ÀûÓÃFLEX³äµ±Ò»¸öÍêÕûµÄJ2EEϵͳµÄWEB²ãµÄ»°,ÄÇôµ¥¶ÀʹÓÃFlexBuilder3ºÍMYECLIPSEÊǺܲ»·½±ãµÄ,´ó´óÓ°ÏìÁË¿ª·¢Ð§ÂÊ,Òò´Ë×öÁËÏÂMyEclipse+FlexµÄÅäÖÃ,´ïµ½Ö±½ÓÔÚ ......

Flex ºÍ.NETЭͬ¿ª·¢ÀûÆ÷FluorineFx

 ÔÚ±¾ÏµÁÐÇ°Ãæ¼¸ÆªÎÄÕÂÖзֱð½éÉÜÁËͨ¹ýWebService¡¢HTTPService¡¢URLLoaderÒÔ¼°FielReferenceµÈ×é¼þ
»òÀàÀ´Íê³ÉFlexÓë.NET·þÎñ¶ËµÄͨÐŵÄÏà¹ØÖªÊ¶µã¡£Í¨¹ýÕâЩ·½Ê½À´Íê³ÉÓë·þÎñ¶ËµÄͨÐÅÊǷdz£·½±ãºÍ¼òµ¥µÄ£¬µ«ÓÐËûµÄȱµã¾ÍÊÇͨÐÅÊý¾ÝÁ¿½ÏС£¬ÈçÒª´«
Êä´óÁ¿µÄÊý¾Ý»òÊÇʵÏÖ²»Í¬¶ÔÏóµÄÐòÁл¯´«Ê䣬ËüÃÇÔòÂú×ã²»ÁËÎÒÃǵ ......

½«HTMLÒ³ÃæÇ¶ÈëFLEXÓ¦ÓÃÖÐ

ÏÈÓÃÏֳɵÄ×é¼þÍæÒ»Ï£¬Ò»»áÔÙÈ¥¿´¿´×é¼þÔ´ÂëÑо¿Ò»Ï¡£
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"
   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ