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ÖÐͨ¹ý¼Ì³Ð¿ÉÒÔΪÐÂ×é¼þÔö¼ÓÐµĹ¦ÄÜ£¬Èçͨ¹ý×¢Èë·½·¨£¬¸Ä±ä±³¾°É«£¬¸Ä±äλÖú͸߶ȵȡ£ÕâÀïÖ÷ÒªÕÆÎÕÔ×é¼þµÄÒ»Ð©ÌØÐÔ£¬ÊôÐԺͷ½·¨£¬ÒÔ±ã¸ù¾ÝÐèÒªµÄ¹¦ÄܼÓÒÔ¸²Ð´£¨Ò²¿ÉÒÔ×Ô¼ºÀ©Õ¹£©£¬´ïµ½×Ô¼ºÏëÒªµÄЧ¹û¡£ÏÂÃæÊÇÒ»¸ö¼òµ¥µÄÀý×Ó
1¡¢Ð½¨MyDataGrid.as,¼Ì³ÐDataGrid,¸²Ð´drawRowBackground·½·¨£¬×¢ÈërowColorFunction·½ ......
First, enough bytes for frame 1 are streamed down to the Flash
Player.
The Flash Player executes those bytes by creating a SystemManager
instance.
SystemManager instruct the Flash Player to stop at the end of frame
1.
SystemManager then goes on to create the Preloader which creates the ......
Ê×ÏȽ¨Ò»¸önetbeansµÄjava webÏîÄ¿
È»ºó´ÓÍøÉϰÉblazeds.war ÏÂÔØÏÂÀ´ÓÃrar ½âѹ °Ñweb-inf Ìæ»»µôÔÚnetbeans\web ÏÂÃæµÄweb-infÖеÄÈ«²¿Îļþ
È»ºó ²¿ÊðÏÂ
ÔÚ´ò¿ªflex builder н¨Ò»¸öflex project дÉÏÃû×ÖºÍÏîĿ·¾¶
ÔÚApplication server type Ñ¡ÖÐj2ee
µã»÷ ÏÂÒ»²½
È»ºó Root folderÑ¡ÖÐnet ......
Ô´ÌùµØÖ· http://www.riachina.com/showtopic.aspx?topicid=8556#
ÓÉÓÚLocalconncetionµÄijЩÏÞÖÆ(һ̨¿Í»§Ö»¿ÉÒÔʹÓÃÌØ¶¨Ãû×ÖµÄÒ»¸öÁ¬½Ó£¬ÕâÑùµÄ³ÌÐòÈç¹û¿ªÁ½¸ö´°¿Ú¾Í»á·¢ÉúÒì³£)£¬½ñÌìÏÐ×ÅûÊÂ×öÁËÒ»¸öÕâÑùµÄÊÔÑé¡£ÈÃFlash CS3ºÍFlexµÄ´úÂë¿ÉÒÔÏ໥µ÷Óã¬ÎªÁËÏÔʾЧ¹û£¬ÔÚË«·½µÄ½çÃæ·Ö±ð·ÅÖÃÁËÒ»¸öÎı¾ÊäÈë¿òºÍÒ»¸ö°´Å¥¡ ......