MyEclipse Flex»·¾³ÅäÖÃÏê½â
MyEclipse FlexµÄÅäÖÃÖ®³õÎÒÃÇ¿´¿´ÔµÓÉ£ºÒ»¿ªÊ¼Ñ§Ï°Ê¹ÓÃFlexµÄʱºò,ÎÒÊÇÓõĵ¥¶ÀµÄFlexBuilder3,×öЩ´¿FlexµÄÓ¦ÓóÌÐò»¹¿ÉÒÔ.µ«ÊÇÈç¹ûÒªºÍJava½áºÏÔÚÒ»ÆðʹÓÃ,¼´ÀûÓÃFLEX³äµ±Ò»¸öÍêÕûµÄJ2EEϵͳµÄWEB²ãµÄ»°,ÄÇôµ¥¶ÀʹÓÃFlexBuilder3ºÍMYECLIPSEÊǺܲ»·½±ãµÄ,´ó´óÓ°ÏìÁË¿ª·¢Ð§ÂÊ,Òò´Ë×öÁËÏÂMyEclipse+FlexµÄÅäÖÃ,´ïµ½Ö±½ÓÔÚÀûÓÃMyEclipseÖпª·¢ÕûºÍÁËFlexµÄWeÓ¦ÓóÌÐò,²¢ÇÒʵÏÖÈȲ¿Êð.
Ê×ÏÈ,ÎÒÃÇÐèÒªÏÂÁÐÈí¼þ
Eclipse 3.3 :http://www.eclipse.org/
FlexBuilder3 beta2 ²å¼þ°æ: FB3_WWEJ_Plugin
MyEclipse 6.0£ºhttp://www.myeclipseide.com/
Lcds ds-console.war£ºds-console.war
Tomcat 5£º http://tomcat.apache.org/
¹ØÓÚ°æ±¾ÎÊÌâ,֮ǰÎÒÒ»Ö±ÓõÄÊÇec3.2+myec5.0,¿ÉÊÇÔÚ×îºóÒ»²½×ÜÒªµ¯³öecÄÚ²¿µÄ´íÎó,ºóÀ´»»³Éec3.3+myec6.0Ôò¿ÉÒÔ˳ÀûÍêÕûÅäÖÃ,Òò´ËÍƼöʹÓÃÒÔÉÏ°æ±¾.
Ê×ÏÈÊÇ°²×°EC+MYEC,¾Í²»ÐèÒª¶à˵ÁË.
È»ºó°²×°FlexBuilder3²å¼þ°æ,ºÍ°²×°MYECµÄ¹ý³ÌÒ»Ñù,¶¼ÐèÒªÔÚµÚ1´Î°²×°Ê±Ñ¡ÔñÒÑ°²×°µÄeclipseµÄλÖÃ
½ÓÏÂÀ´,¿ÉÒÔ´ò¿ªEC,Ó¦¸ÃÔÚVIEWÖÐÄÜ¿´µ½¶ÔÓ¦µÄFlexÊÓͼ
ʵ¼ÊÉÏ,µ±FlexBuilder3²å¼þ°²×°Íê³Éºó,ÎÒÃÇÒ²¿ÉÒÔÏòÌí¼ÓÆäËû³£Óòå¼þÒ»ÑùÔÚECÖÐͨ¹ý¸üÐÂÅäÖùÜÀíÀ´Ìí¼Ó²å¼þ.
È»ºóÑ¡ÔñFlexBuilder3°²×°Ä¿Â¼ÏµÄeclipseĿ¼,ÀýÈç
ÕâÑù¾Í»ù±¾Íê³ÉÁËÕûºÍµÄµÚ1²½,¼´¿ÉÒÔÔÚECÖн¨Á¢FLEXÏîÄ¿ÁË.
½ÓÏÂÀ´Òª×öµÄÊÇÍê³ÉºÍTOMCATµÄÕûºÍÒÔ¼°½«FLEXÏîÄ¿±ä³É¿É²¿ÊðµÄWEBÏîÄ¿,²¢ÔÚʵÏÖFLEXÏà¹ØÎļþµÄÈȲ¿Êð.
Ê×ÏÈ,½¨Á¢Ò»¸öFLEX PROJECT,Ó¦Ó÷þÎñÆ÷Ñ¡ÔñJ2EE
È»ºó,Ñ¡Ôñnew½øÐÐÓ¦Ó÷þÎñÆ÷µÄÅäÖÃ,FLEX WAR FILEÑ¡ÔñÏÂÔصÄds-console.warÎļþ
ÅäÖúܼòµ¥,ÕâÊÇʹÓõÄÊÇTOMCAT5.5
Íê³ÉTOMCATµÄÅäÖúó»Øµ½¸Õ²ÅµÄ½çÃæ,Ñ¡ÔñÅäÖõÄTOMCAT,ÐèҪעÒâµÄÊǽ«FLEXµÄÊä³öÎļþ¼Ð¸ÄΪWebRoot,
ÕâÀï¸ÄΪWebRoot/flex,¼´±àÒëºóµÄSWFµÈÎļþ¶¼»á·ÅÔÚWebRoot/flexÏÂ,ÕâÑù²ÅÄÜʵÏÖÈȲ¿Êð
µã»÷"Íê³É",½¨Á¢ºÃºóµÄÏîÄ¿ÈçÏÂËùʾ:
ÆäÖÐflex_srcÊÇFLEXµÄÔ´ÎļþĿ¼,src¼´ÊÇÎÒÃÇËùÊìϤµÄjavaÔ´ÎļþĿ¼.
ÏÖÔÚֻʣÏÂ×îºó1¸ö²½´ÕÁË,ʹÓÃMYECΪÎÒÃǵÄFLEXÏîÄ¿Ìí¼ÓWEBÖ§³ÖÒÔ±ãÄÜÖ±½Ó½øÐв¿Êð
OK,×îºóÍê³ÉºóÏîÄ¿ÈçÏÂ:
µ½´ËΪֹ,ÎÒÃǾÍʵÏÖÁËÔÚECÖÐÖ±½Ó¿ª·¢FLEX³ÌÐò,ͬʱºÍMYEC½øÐÐÁËÕûºÍ,»¹ÄܽøÐÐÈȲ¿Êð,ÕâÑù¿ª·¢ÆðÀ´ºÍÖ±½ÓʹÓÃMyEc¿ª·¢Java Web³ÌÐòûÓÐʲôÇø±ð.×îºóÐèҪעÒâµÄÊÇÕâÑù×öÁËÖ®ºóΨһµÄȱµãÊÇ»á¶Ô»úÆ÷µÄÅäÖÃÒªÇó¸ßһЩ,¿ÉÄÜ»áÓÐЩ¿¨,
Spring IoCµÄÖ÷Ҫ˼ÏëÊÇʹÓÃÈÝÆ÷À´ÊµÀý»¯×é¼þ£¨²¢¸ø×é¼þ×¢ÈëËùÒÀÀµµÄ£©¡£µ«ÊÇÒ»°ãÇé¿öÏ£¬ÓÉFlex¿Í»§¶ËËùÔ¶³Ì·ÃÎʵÄ×é¼þÊÇÔÚ·þÎñÆ÷ÖÐÓÉBlazedsÀ´ÊµÀý»¯µÄ¡£Òò´ËÅäÖÃBlazeDSÀ´ÈÃSpringÈÝÆ÷¸ºÔðʵÀý»¯Spring beans¡£BlazeDSÖ§³Ö¹¤³§µÄ¸ÅÄîÀ´Ê¹µÃÕâÖÖ×Ô¶¨Òå×é¼þ¿ÉÒÔʵÀý»¯¡£¹¤³§µÄ×÷Óýö½öÊÇÏòBlazeDSÌá¹©Ò ......
֮ǰһֱûÔÚÒ⸸ÈÝÆ÷ºÍ×ÓÈÝÆ÷¸÷×ÔµÄÉú³É´ÎÐò£¬ÖªµÀÔÚÏîÄ¿ÖÐÓöµ½Ò»ÖÖcase:³õʼ»¯½çÃæʱ¸¸ÈÝÆ÷³õʼ»¯µÄÄÚÈÝÓÉ×ÓÈÝÆ÷Ïȳõʼ»¯ÔÙ´¥·¢£¬µ«ÊǸ¸ÈÝÆ÷±ØÐëÔÚ³õʼ»¯Ê±¾ÍÒѾ¼ÓÉÏÁ˶Ô×ÓÈÝÆ÷µÄ¼à¿Ø¡£Õâ¾ÍÔì³ÉÒ»¶Ôì¶Ü£¬¼ÈÏëÏÈÉú³É×ÓÈÝÆ÷ÓÖÏëÏÈÉú³É¸¸ÈÝÆ÷¡£
ÏÈ×Ô¼ºÐ´¶Î´úÂë²âÊÔÒ»ÏÂÉú³É˳Ðò£¬¸¸ÈÝÆ÷
<?xml version="1.0" ......
×î½üÔÚŪFLEXµÄͼ±í, ·¢ÏÖCHART ÖеÄLegend µÄ×ÖÌåͨ¹ýÖ±½ÓÉèÖÃStyle ²¢Ã»Óа취¸Ä±ä×ÖÌå´óС.
google ÁËÏÂ, ·¢ÏÖÁËÕâ¸ö·½·¨: ͨ¹ýÅÉÉúLegendItemÀ࣬²¢ÉèÖÃLegendµÄItemClassÊôÐÔÀ´ÊµÏÖ¡£
LegendItem ÊÇLengend µÄÔªËØ, ¾ÍÊÇÀïÃæÒ»¸öÒ»¸öµÄͼʾ. ͨ¹ýÅÉÉúÕâ¸öÀà, ¾Í¿ÉÒÔÐÞ¸ÄÆäÏàÓ¦µÄÑùʽ.
ÅÉÉúLegendItem Àà, ² ......