资 源 简 介
Provides a small set of useful binding classes.
One of the more useful classes, ListStoreBinding, allows you
to easily bind a Grid to an EventList. An EventList implements java.util.List and adds support for firing list change events.
```
Grid grid = new Grid(store,columnModel);
EventList list = new EventList();
ListStoreBinding binding = new ListStoreBinding(store);
binding.setConverter(new BeanModelConverter());
binding.bind(list);
```
Person implements BeanModelTag so we use the built in BeanModelConverter to convert from Person objects to BeanModels and vice versa. With the two-way binding in place, you can add and remove People from the Grid by simply writing:
```
list.add(new Person("John Smith"));
// remove the first person
list.remove(0);
```
Of course, you can also add and remove a BeanModel from the ListStore, and the EventList will be updated