Observable {@link java.util.List} implementations.

Including in your project

To add this to your project add the jar file to your classpath and add the following to your GWT module file:

<inherits name="org.mcarthur.sandy.gwt.event.list.EventList"/>

Example Usage

The most basic usage is to take an existing list and wrap it in an EventList wrapper and only access the list via that wrapper. Or you can simply create an empty EventList and populate it. Almost all types of EventList are created via the {@link org.mcarthur.sandy.gwt.event.list.client.EventLists} utility class.

EventList eventList = EventLists.eventList(); // or EventLists.wrap(anExistingList)
ListEventListener listEventListener = new ListEventListener() {
    public void listChanged(ListEvent listEvent) {
        GWT.log(listEvent.toString(), null);
    }
};
eventList.addListEventListener(listEventListener);