无痕客

落花无情,流水无痕……

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  • Do you have a class with read only properties?
  • Need to bind to those properties?
  • Getting: warning: unable to bind to property 'propertyName' on class 'com.example.package::ClassName'?

Add the Bindable metatag to your function and specify an event to be associated with it's update.

通过事件控制属性只读

通过赋值时发送事件,和捕捉事件,来控制属性只读。赋值即变成取值。

posted on 2009-10-31 17:31  无痕客  阅读(222)  评论(0编辑  收藏  举报