flexÖÐÍÏÒ·×é¼þµÄ¼¸¸öÊôÐÔ
Flex×é¼þÄÚÖÃÁË´¦ÀíÍÏקʼþµÄ½Ó¿Ú£¬ÓÐЩ¿Ø¼þÒѾʵÏÖÁËÍÏק¹¦ÄÜ£¬±ÈÈçList¡¢DataGrid¡¢Menu¡¢
HorizontalList¡¢ PrintDataGrid¡¢TileList¡¢Tree£¬ÔÚÉèÖÃÏà¹ØµÄÍÏקÊôÐÔºó£¬ËüÃǶ¼¿ÉÒÔÔÚÏàͬÀàÐ͵Ä×é
¼þÖ®¼äÀûÓÃÊó±êÀ´ÊµÏÖÊý¾ÝµÄתÒÆ¡£
allowDragSelection ÊÇ·ñ¿ÉÒÔÍÏÑ¡
allowMultipleSelection ÊÇ·ñ¿ÉÒÔ¶àÑ¡
dragEnabled ÊÇ·ñ¿ÉÒÔÍ϶¯×ÓÔªËØ
dragMoveEnabled ÊÇ·ñÒƶ¯ÔªËØλÖ㬶ø²»ÊǸ´ÖÆÔªËØ
dropEnabled ÊÇ·ñ¿ÉÒÔ½«ÎïÌå·ÅÖýøÀ´
ÔÚFlexÖУ¬Óм¸¸öרÃŵĶÔÏ󹩿ª·¢Õß´¦ÀíÍÏקʼþ£º
DragManager£ºÎ»ÓÚmx.managers°üÖУ¬¹ÜÀíÍÏקʼþ
DragSource£º λÓÚmx.core°üÖУ¬ÊÇFlex¿ò¼ÜÖеĺËÐijÉÔ±£¬´¦ÀíÍÏקÖеÄÊý¾Ý´«µÝ
DragEvent£º λÓÚmx.events°üÖУ¬ÍÏק²Ù×÷ÖеÄʼþ¶ÔÏó¡£
°´ÕÕÂß¼£¬ÍÏקÖÐÖÁÉÙÓÐÁ½¸ö¶ÔÏó£ºÒ»·½ÌṩÊý¾Ý£¬Ò»·½½ÓÊÕÊý¾Ý¡£ÔÚÕâ¸ö¹ý³ÌÖУ¬ÌṩÊý¾ÝµÄÒ»·½°´ÕÕÇ°ºó ˳Ðò£¬¿ÉÒÔ°ÑÕû¸ö¹ý³Ì»®·ÖΪÏÂÃ漸¸öʼþ£º
mouseDown£ºÊó±ê°´Ï¡£
mouseMove£ºÊó±êÒƶ¯¡£
dragComplate£ºÊó±êÊÍ·Å¡£ÅжÏÄ¿±êÊÇ·ñ½ÓÊÜÊý¾Ý£¬Èç¹û¿ÉÒÔ£¬ÍϷųɹ¦¡£
½ÓÊÕ·½Ò²½«¾Àú¼¸¸ö½×¶Î
dragEnter£º±»Í϶¯¶ÔÏóÒƶ¯µ½Ä¿±ê·¶Î§ÖС£
dragDrop£ºÊó±êÔÚÄ¿±êÉÏËÉ¿ª¡£
dragOver£ºÊó±êÒƶ¯µ½Ä¿±êÉÏ¡£
dragExit£º¶ÀÏí±»ÍÏÀëÄ¿±ê·¶Î§¡£
Ïà¹ØÎĵµ£º
ÔÎĵØÖ·£ºhttp://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt4.html
itemRenderer ×îÉó¤ÓëÓ¦ÓóÌÐòµÄÓû§Í¨ÐÅ¡£ÓÐʱͨÐźܼòµ¥, Ö»ÊÇÏÔʾһ¸öÃû³Æ£»ÓÐʱ»áʹÓøü¾«ÖµÄÑÕÉ«£»ÓÐʱ¾ßÓн»»¥ÐÔ¡£
itemEditor ÊÇÕæÕýµÄ½»»¥¿ØÖÆ, µ«ËüÃDz»ÊDZ¾ÎĵÄÖص㡣ÔÚÕâЩʾÀýÖÐ, ÎÒ½«ÏòÄúչʾ¸ù¾ÝÊý¾Ý±¾Éí»òÓû§²Ù×÷¸ü¸Ä¿ ......
ÔÎĵØÖ·£ºhttp://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt5.html
Èç¹ûÄúÒªÏÔʾ´óÁ¿ itemRenderer£ÎÞÂÛÔÚ DataGrid »¹ÊÇÔÚ AdvancedDataGrid ÖУÈç¹ûÎÞ·¨ÓÐЧ±àдÕâЩ itemRenderer, ÄúµÄÓ¦ÓóÌÐòÐÔÄÜ¿ÉÄÜÊܵ½¸ºÃæÓ°Ïì¡£ÒÔÏÂÊÇһЩ¿ÉÄÜÓÐËù°ïÖúµÄÌáʾ:
ÏÞÖÆʹÓà itemRenderer µÄÁÐÊý¡£ÊÇ·ñÕæµÄÐèÒª½«Ã ......
1. ÕûÌåµÄ½á¹¹·Ö²¼£º
¸÷Ä£¿éʹÓÃModuleÀ´»®·Ö£¬Ã¿¸öÄ£¿éµÄÒ³Ãæ¼°ÆäÏà¹ØµÄ×é¼þÔªËض¼ÊÇʹÓÃComponentÀ´»®·Ö£»
Ä£¿éµÄÇл»Ê¹ÓüÓÔصķ½Ê½£¬Ä£¿éÄÚ²¿µÄÇл»Ê¹ÓÃÒ³ÃæÌøתµÄ·½Ê½£»
¼¼ÊõÎÊÌ⣺ģ¿éµÄÇл»ÓëÒ³ÃæµÄÇл»µÄ¹ý³Ì£¡
ModuleLoaderÓëModuleManagerÖ®¼äµÄÈ¡ÉᣬѡÔñÁ˺óÕߣ¬¿É¿ØµÄ¸ü¶à£¬µ«ÊÇÄ¿Ç°µÄÓ°Ïì²¢²»´ó£¡
¹ØÓÚM ......
ÏûÏ¢·þÎñ(Message Service )Ìṩ·¢²¼(publish)/¶©ÔÄ(subscribe)»úÖÆÔÊÐíFlex Ó¦ÓóÌÐò·¢²¼ÏûÏ¢¡¢¶©ÔÄÏûÏ¢ÖÕ¶Ë(messaging destination)£¬´Ó¶øʵÏÖʵʱÊý¾ÝµÄÍƺÍÐ×÷¡£
¡¡¡¡Ò»¡¢Message Service
¡¡¡¡Message Service Ìṩ·¢²¼(publish)/¶©ÔÄ(subscribe)»úÖÆÔÊÐíFlex Ó¦ÓóÌÐò·¢²¼ÏûÏ¢¡¢¶©ÔÄÏûÏ¢ÖÕ¶Ë(messaging des ......
¹¤×÷Á÷Ó¦ÓÃÔÚÆóÒµÐÅÏ¢»¯½¨ÉèÖÐÔ½À´Ô½À´ÆÕ¼°£¬¶øÇÒÓû§³£³£ÒªÇó×Ô¼º¿ÉÒÔÔÚÒ»¶¨³Ì¶È¸ù¾Ý×Ô¼ºÒµÎñÐèÇó¶ÔÁ÷³Ì½øÐÐÐ޸ġ£¶øÎÒÃÇÒÔÇ°×öÁ÷³ÌÉè¼ÆÆ÷¶¼ÊÇ»ùÓÚC/Sģʽ£¬ÕâÑù¾ÍÔì³ÉÓû§ÔÚʹÓõÄʱºòÐèÒªÀ´»ØÇл»Á½¸öϵͳ£¬¶øÇÒÕâÖּܹ¹²»ÀûÓÚ³ÌÐòͳһÉý¼¶¡£ËùÒÔÎÒ´òË㿪·¢Ò»¸ö»ùÓÚFlexµÄÁ÷³ÌÉè¼ÆÆ÷¡£ ´ÓÒÔÍù¾ÑéÀ´¿´£¬×ö± ......