Chinaunix首页 | 论坛 | 博客
  • 博客访问: 218555
  • 博文数量: 68
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 695
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-19 21:17
文章分类

全部博文(68)

文章存档

2009年(16)

2008年(12)

2007年(27)

2006年(13)

我的朋友

分类: 系统运维

2007-11-11 23:14:30

itemEditor属性---指定该item的编辑器类
A class factory for the instances of 这一列要使用的item编辑器, 当它是可编辑的. The default value is new ClassFactory(mx.controls.TextInput).
itemRenderer属性-----指定该item的显示用的类  
itemRenderer:IFactory  [read-write]
The class factory for item renderer instances that display the data for each item in the column. You can specify a drop-in item renderer, an inline item renderer, or a custom item renderer component as the value of this property.
The default item renderer is the DataGridItemRenderer class, which displays the item data as text.
This property can be used as the source for data binding.
用itemRenderer="renderer.numberSteper"来指定renderer所用的类,其中.前面指包(表现为目录),后面是类(表现为文件名)。
而在组件定义中,使用data对象来读取父DataGrid当前行的数据。
如:value="{data.name}"
editorDataField属性---指定item编辑器中存放数据的字段
item editor中为list item包含新的数据的属性名字,例如,缺省的itemEditor是TextInput,所以
editorDataField属性的缺省值便是"text",指的是TextInput控件的text属性。
某例中,在
rendererIsEditor属性----显示用的的renderer是否也是编辑器 
一个标志指示 the item renderer是否也是一个item editor. 若为真, Flex 忽略the itemEditor属性并使用the item renderer 作为item的编辑器。缺省是false.
阅读(2549) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~