Flex Accordion headerRendererʵÏÖchildÊÕËõ
ÓÃAccordion×é¼þµÄʱºò·¢ÏÖ,childÕ¹¿ªÖ®ºóÔÙµã»÷µÄʱºòûÓÐÏàÓ¦.
È»ºóϰ¹ßÐÔµÄGoogle·¢ÏÖ½â¾ö·½·¨´óÖÂÊÇ×Ô¶¨ÒåÒ»¸ö×é¼þ...
¸Ð¾õΪÁËÒ»¸öС¹¦ÄÜÖØÐ´Óеã ɱ¼¦ÓÃÅ£µ¶µÄ¸Ð¾õ.
ÓÚÊÇ×ÐϸÏëÁËÏÂ,·¢ÏÖÆäʵֻÐèÒªÖ¸¶¨headerµÄitemRenderer¼´¿É:
ÉÏ´úÂë headerRenderer="com.MyAccHeader"
MyAccHeader:
package com
{
import flash.events.MouseEvent;
import mx.controls.Alert;
import mx.containers.Accordion;
import mx.containers.accordionClasses.AccordionHeader;
public class MyAccHeader extends AccordionHeader
{
public function MyAccHeader()
{
super();
this.addEventListener(MouseEvent.CLICK,fun);
}
private function fun(evt:MouseEvent):void
{
(this.parent as Accordion).selectedIndex = (this.parent as Accordion).selectedIndex+1;
}
}
}
Ïà¹ØÎĵµ£º
½ñÌìÏÂÎç·¢ÏÖÒ»¸ö¹ØÓÚFlex SDK 3.5.0ÖÐComboBoxµÄbug£¬»¹ÕæÊÇ·ÑÁ˲»ÉÙʱ¼ä¡£ÒòΪÎÒ»¹ÊÇÍ·Ò»´Î·¢ÏÖ×Ô¼º½â¾ö²»Á˵ÄÎÊÌ⣬ÓÐÒ»ÖÖ¿ÉÄÜÊÇÆ½Ì¨»ò¿ò¼ÜµÄÎÊÌâ¡£ÌØ´Ë¼Ç¼¡£
ÎÊÌâÃèÊö£º×öÁËÒ»¸ö¹ØÓÚComboBoxµÄ¶þ¼¶Áª¶¯£¬Ò»Ö±¾Í´æÔÚÎÊÌ⣬ÓÉÓÚ֮ǰÖ÷Ì幦ÄÜûÓÐÍê³É£¬Ò²Ã»Ï¸ÐÄÏÂÀ´ÅŲ顣ÔÚÒ»¼¶ÏÂÀÑ¡Ôñºó£¬ÔÚ¶þ¼¶ÖеÄArrayCollection»ò ......
1.ǰ¶ËflexµÄ¶ÔÏóºÍjava¶ËµÄ¶ÔÏóÃû×ÖÒªÒ»Ö£¬java¶ËµÄ¶ÔÏó±ØÐëÐòÁл¯£¬·ñÔòÎÞ·¨±»flex¶Ëµ÷ÓÃת»¯
javaºǫ́´«»ØµÄlistÀï±ßµÄ¶ÔÏ󣬱ØÐëflex¶ËÒ²Óд˶ÔÏ󣬶øÇÒÁ½¸ö¶ÔÏóµÄÊôÐÔÒªÒ»Ö£¬·ñÔò£¬²»Äܻص÷
2.»Øµ÷º¯Êý²»Æð×÷Óã¬ÓпÉÄÜÊÇÒòΪ»Øµ÷º¯ÊýÃû×ÖÒýÆðµÄ
flex´Ójava¶ËÈ¡¶à¸ölist·â×°µÄ¶ÔÏóʱ£¬¶Ô¸÷¸ödatagridÒªÓÃÊý¾Ý° ......
flexÈýÖÖÁ¬¼¶·½Ê½:
ÄÚÁª£º<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="var codetxt:Text=new Text">
</mx:Application>
¼¶Áª£º<mx:Application xmlns:mx="http: ......
BlazeDS + Hibernet + Flex ¿ª·¢WebÓ¦ÓÃ
ÍøÉÏÓйØÓÚ¼¯³ÉBlazeDSºÍFlexµÄʾÀý£¬µ«ÊǴ󲿷ֶ¼Êǽ«¿Í»§¶ËºÍ·þÎñÆ÷´úÂë·ÅÖõ½Ò»¸öÏîÄ¿£¬ÕâÖÖ·½Ê½Ê¹ÎÒÃÇÔÚ±àÂëʱÈÝÒײúÉú»ìÏý£¬²¢ÇÒÒ²²»ÀûÓÚ´óµÄÏîÄ¿µÄ¿ª·¢Óë¹ÜÀí¡£ÏÂÃæÍ¨¹ýÒ»¸ö¼òµ¥µÄÀý×ÓÑÝʾһÏ£¬½¨Á¢¿Í»§¶ËºÍ·þÎñÆ÷¶Ë·ÖÀëµÄ£¬·þÎñÆ÷¶Ë²ÉÓÃHibernet+BlazeDSµÄFlex WebÏîÄ¿¡£Ï£ ......