Tree控件类元数据类型相关解释
// Events[Event(name="itemClose", type="mx.events.TreeEvent")] //当一个分支折叠触发此事件
[Event(name="itemOpen", type="mx.events.TreeEvent")] //当一个分支展开触发此事件
[Event(name="itemOpening", type="mx.events.TreeEvent")]//当一个分支展开或者关闭时触发??
// Styles
include "../styles/metadata/PaddingStyles.as";
//设置交替背景色
[Style(name="alternatingItemColors", type="Array", arrayType="uint", format="Color", inherit="yes")]
//设置不同深度级别的背景色。详细:http://blog.minidx.com/2008/12/23/1812.html
[Style(name="depthColors", type="Array", arrayType="uint", format="Color", inherit="yes")]
[Style(name="defaultLeafIcon", type="Class", format="EmbeddedFile", inherit="no")]//设定默认子页ICON
[Style(name="disclosureOpenIcon", type="Class", format="EmbeddedFile", inherit="no")]//设置向下ICON
[Style(name="disclosureClosedIcon", type="Class", format="EmbeddedFile", inherit="no")]//设置向右ICON
[Style(name="folderOpenIcon", type="Class", format="EmbeddedFile", inherit="no")]//设置文件夹关闭ICON
[Style(name="folderClosedIcon", type="Class", format="EmbeddedFile", inherit="no")]//设置文件夹打开ICON
[Style(name="indentation", type="Number", inherit="no")]//设置缩进属性
//设置动画变化的时间长短。详细http://www.elanso.com/ArticleModule/sourcearticle.aspx?idx=TgSYPARbKAUAPAVILcJhRRIi
[Style(name="openDuration", type="Number", format="Time", inherit="no")]
//动画效果openEasingFunction。详细http://blog.minidx.com/2008/12/22/1808.html
[Style(name="openEasingFunction", type="Function", inherit="no")]
[Style(name="rollOverColor", type="uint", format="Color", inherit="yes")]//悬浮颜色效果
[Style(name="selectionColor", type="uint", format="Color", inherit="yes")]//选择颜色效果
[Style(name="selectionDisabledColor", type="uint", format="Color", inherit="yes")]//只读颜色效果
//选择动画效果
[Style(name="selectionEasingFunction", type="Function", inherit="no")]
//文字悬浮动画效果
[Style(name="textRollOverColor", type="uint", format="Color", inherit="yes")]
//文字被选择效果
[Style(name="textSelectedColor", type="uint", format="Color", inherit="yes")]
// Other metadata[AccessibilityClass(implementation="mx.accessibility.TreeAccImpl")]
//默认绑定的数据提供器属性
[DefaultBindingProperty(destination="dataProvider")]
//默认属性数据提供器
[DefaultProperty("dataProvider")]
//默认触发事件
[DefaultTriggerEvent("change")]
//Tree.png
[IconFile("Tree.png")]
//
[RequiresDataBinding(true)]
private var IS_NEW_ROW_STYLE:Object = { depthColors: true,//深度 indentation: true,//缩进 disclosureOpenIcon: true,//向下箭头图标 disclosureClosedIcon: true,//向左箭头图标 folderOpenIcon: true,//文件夹打开状态图标 folderClosedIcon: true,//文件夹关闭状态图标 defaultLeafIcon: true //叶子节点图标 };