Flex DataGird¶¯Ì¬ÁÐÎÊÌâ
Õý³£Çé¿öÏ£¬Ê¹ÓÃdatagird°ó¶¨Ò»¸öarraycolltetionµÄʱºò£¬ÐèÒª½øÐÐÈçÏ´úÂë
XML code:
<mx:DataGrid x="10" y="20" dataProvider="{employees}">
<mx:columns>
<mx:DataGridColumn dataField="name" headerText="Name"/>
<mx:DataGridColumn dataField="phone" headerText="Phone"/>
<mx:DataGridColumn dataField="email" headerText="Email"/>
</mx:columns>
</mx:DataGrid>
µ«ÊǼÓÈë²»ÖªµÀµ¼±íµÄÁÐÃû£¬Ö±½Ó½«½á¹ûÁ¬ÁÐÃû´øÊý¾ÝÒ»Æð°ó¶¨µ½datagirdÉÏÄØ
¾ÍÊÇ˵ֱ½ÓXML code:
]<mx:DataGrid x="10" y="20" dataProvider="{employees}"/>
¶ø²»È¥Ð´ <mx:columns></mx:columns>ÀïÃæµÄÄÚÈÝ£¬¶¯Ì¬½øÐÐÁеİ󶨣¬ÓÐʲôºÃ°ì·¨Âð
Èç¹ûÖ±½ÓÖ¸¶¨¶¯Ì¬µÄÊý¾ÝÔ´£¬½¨Ò齫employeesÕâ¸ö¶«Î÷½âÎöΪXML£¬È»ºóÈ¥°ó¶¨Õâ¸öxml
ûÓÐÈËÖªµÀÂð
ÓÃxml£¬±ÈÊý×éºÃ¶àÁË¡£ÒÔºóºÜ¶à½»»¥¶¼¿ÉÒÔʹÓÃxml
Java code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:
Ïà¹ØÎÊ´ð£º
ÎÒµÄJAVA¶Ë·µ»ØµÄÊÇÒ»¸öLIST,Èç¹ûÓÃÏÂÃæµÄ·½·¨,¿ÉÒÔÊÇÄÜÔÚÒ³Ãæ¼ÓÔØÊ±,µÃµ½·þÎñ¶Ë·µ»ØµÄÊý¾ÝµÄ,¼´:
?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=&qu ......
flex datagrid ÀïÒþ²ØÄ³Ò»ÐÐÊý¾Ý,Íò·Ö¸Ðл
ÀýÈç,µã»÷°´Å¥Òþ²ØÄ³Ò»ÐÐÊý¾Ý
ÔÚµãÒ»ÏÂÓÖÏÔʾ³öÀ´,лл,×îºÃ¸ø´úÂë,лл,¸Õ¿ªÊ¼Ñ§²»³¤Ê±¼ä
¿ÉÒԸıädataProvider£¬removeÒ»¸öitem¾Í¿ÉÒÔÁË£¬removeµÄitem´æÔÚÒ»¸östackÖ ......
1.È«ÈÕÖÆÕý¹æ±¾¿Æ¼ÆËã»úÏà¹Ø×¨Òµ±ÏÒµ£¬Á½ÄêÒÔÉÏÏà¹Ø¹¤×÷¾Ñ飻
2.ÊìÁ·Ê¹ÓÃAction Script 3.0ÔÚFlexBuilder»·¾³Ï¿ª·¢£¬ÊìÁ·Ê¹ÓÃFlexÓëAIRµÄ±ê×¼×é¼þ£»
3.Á˽âJavaScript¡¢CSS¡¢Ajax £»
4.¾ßÓÐÁ¼ºÃµÄ¾´Òµ¾«ÉñºÍÍŶ ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" width="100%" he ......