FlexÀý×Ó Í¨¹ý¼Ì³ÐÔö¼ÓÐµĹ¦ÄÜ
FlexÖÐͨ¹ý¼Ì³Ð¿ÉÒÔΪÐÂ×é¼þÔö¼ÓÐµĹ¦ÄÜ£¬Èçͨ¹ý×¢Èë·½·¨£¬¸Ä±ä±³¾°É«£¬¸Ä±äλÖú͸߶ȵȡ£ÕâÀïÖ÷ÒªÕÆÎÕÔ×é¼þµÄһЩÌØÐÔ£¬ÊôÐԺͷ½·¨£¬ÒÔ±ã¸ù¾ÝÐèÒªµÄ¹¦ÄܼÓÒÔ¸²Ð´£¨Ò²¿ÉÒÔ×Ô¼ºÀ©Õ¹£©£¬´ïµ½×Ô¼ºÏëÒªµÄЧ¹û¡£ÏÂÃæÊÇÒ»¸ö¼òµ¥µÄÀý×Ó
1¡¢Ð½¨MyDataGrid.as,¼Ì³ÐDataGrid,¸²Ð´drawRowBackground·½·¨£¬×¢ÈërowColorFunction·½·¨¡£
Java´úÂë
package com.test
{
import flash.display.Sprite;
import mx.controls.Alert;
import mx.controls.DataGrid;
import mx.controls.dataGridClasses.DataGridColumn;
public class MyDataGrid extends DataGrid
{
private var _rowColorFunction:Function;
public function MyDataGrid()
{
super();
}
//ΪMyDataGrid×¢È뺯Êý£¬get set
public function set rowColorFunction(f:Function):void{
this._rowColorFunction = f;
}
public function get rowColorFunction():Function{
Ïà¹ØÎĵµ£º
²»¿É·ñÈÏMyEclipseÏÖÔÚÔ½×öԽǿ´ó£¨±Ï¾¹ÊÇÊշѵÄÂ£¬Ç¿´óµ½¿ªÊ¼ÅųâµÚÈý·½²å¼þ£¬ÕâÓÐЩ²»·ûºÏEclipseµÄ³õÖÔ£¬Eclipse¾ÍÊÇ¿¿Á¼ºÃµÄÀ©Õ¹ÐÔ·¢Õ¹ÆðÀ´µÄ¡£
MyEclipse´Ó7.5¿ªÊ¼£¨7.0ûÓùý£¬²»ÖªµÀ£©£¬ÍêÈ«¸Ä±äÁ˳ÌÐò½á¹¹£¬ÏÖÔÚÀ©Õ¹µÚÈý·½²å¼þ ÔÙҲûÓÐÒÔÇ°ÄÇô·½±ãÁË£¬ÌرðÊÇlink·½Ê½£¬Õâ¶Ô³ÌÐòÔ±À´ËµÊÇÖÂÃüµÄ¡£Flex Plugin ° ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="doDraw()"
backgroundColor="#d6d4d4" backgroundGradientColors="[#FFFFFF, #FFFFFF]">
<mx:Canvas id="paper"
x="30"
y="24"
......
*****************************************************
1-0. °²×°ÅäÖù¤×÷»·¾³
*****************************************************
1.°²×°jdk1.6
ÉèÖû·¾³±äÁ¿:java_home,ÄÚÈÝΪjdk°²×°ºójdkËùÔÚĿ¼£¬²»ÊÇjreĿ¼
2.°²×°tomcal 6.0µ½d:\
3.°²×°myeclipse 6.5
4.°²×°firefox¼°²å¼þ
°²×°firefox
&nbs ......
Flex DataGrid×é¼þ
ʵ¼ÊÉÏ£¬DataGrid×é¼þÊÇÊôÓÚÁбí×é¼þµÄ£¬Ö®ËùÒÔµ¥¶ÀÄóöÀ´½²½â£¬Ö÷ÒªÊÇÒòΪ DataGrid×é¼þÓÐןÜÇ¿´óµÄ¹¦ÄÜ£¬Ò²ÓкܶàÀ©Õ¹µÄÓ¦ÓÃÊÇÔÚ¿ª·¢Öо³£Óõ½µÄ¡£DataGrid×é¼þÊÇ°´ÕÕÐкÍÁеÄÐÎʽÏÔʾÊý¾ÝµÄ¡£Óм¸¸öÀàÊÇÖ»ÓÐ DataGrid×é¼þ²ÅÄÜʹÓõģ¬°üÀ¨DataGridCellEditorÀà¡¢DataGridColumnÀàºÍHeaderRendere ......