T
- The type of the base objects carried in the TreeList.public class GroupByTreeFormat<T> extends Object implements ca.odell.glazedlists.TreeList.Format<Object>
Constructor and Description |
---|
GroupByTreeFormat(GroupByModel model,
IColumnAccessor<T> columnAccessor) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowsChildren(Object element) |
Comparator<Object> |
getComparator(int depth) |
void |
getPath(List<Object> path,
Object element) |
public GroupByTreeFormat(GroupByModel model, IColumnAccessor<T> columnAccessor)
model
- The GroupByModel that carries the information about the groupBy states.columnAccessor
- The IColumnAccessor that is used to get the column value
for the columns that are grouped by. Needed for compare operations and
creating the path in the tree.public void getPath(List<Object> path, Object element)
getPath
in interface ca.odell.glazedlists.TreeList.Format<Object>
public boolean allowsChildren(Object element)
allowsChildren
in interface ca.odell.glazedlists.TreeList.Format<Object>
public Comparator<Object> getComparator(int depth)
getComparator
in interface ca.odell.glazedlists.TreeList.Format<Object>
Copyright © 2013. All Rights Reserved.