zoukankan      html  css  js  c++  java
  • AB_ BindingToCollection

    AB 支持绑定 Collection 

    public class ArrayListObservable<T> extends ObservableCollection<T> implements Collection<T>

    示例:

    The constructor is pretty much similar to simple observable properties, notice you must pass the class of the generic type to it (just like observables).
    
    public ArrayListObservable<String> NameOfList = 
                            new ArrayListObservable<String>(String.class);
    With above declaration, you can do something like:
    
    NameOfList.setArray(new String[] { ... });
    NameOfList.add("abc");
    //etc
    just like normal ArrayList, and if you bind it to itemSource of ListViews or Spinners, the change on the list will be reflected to the view directly.
  • 相关阅读:

    队列
    数据结构简介
    标准模板库
    类模板
    函数模板
    srvctl error
    FLASH BACK
    RAC 设置archive log模式
    CHAPTER 1 Architectural Overview of Oracle Database 11g
  • 原文地址:https://www.cnblogs.com/pinotao/p/3300549.html
Copyright © 2011-2022 走看看