Warning: This class is thread ready but not thread safe. See {@link EventList} for an exampleof thread safe code.
Developer Preview this class is still under development and subject to API changes. @author Jesse Wilson
135136137138139140141142143144145
this.groupByColumnAccessor = new GroupByColumnAccessor(columnAccessor); this.treeFormat = new GroupByTreeFormat<T>(groupByModel, (IColumnAccessor<T>) groupByColumnAccessor); this.treeList = new TreeList(eventList, treeFormat, new GroupByExpansionModel()); this.treeData = new GlazedListTreeData<Object>(getTreeList()); this.treeRowModel = new GlazedListTreeRowModel<Object>(treeData);
40414243444546474849
@Before public void setup() { EventList<Person> eventList = GlazedLists.eventList(PersonService .getFixedPersons()); treeList = new TreeList(eventList, new PersonTreeFormat(), TreeList.nodesStartExpanded()); treeData = new GlazedListTreeData(treeList); }
268269270271272273274275276277278
// because the Comparator // will be set by configuration SortedList<PersonWithAddress> sortedList = new SortedList<PersonWithAddress>( rowObjectsGlazedList, null); // wrap the SortedList with the TreeList this.treeList = new TreeList(sortedList, treeFormat, TreeList.nodesStartExpanded()); this.bodyDataProvider = new GlazedListsDataProvider<Object>( treeList, new PersonWithAddressTreeColumnPropertyAccessor( columnPropertyAccessor));