// Get the children of root, which are Integers.
ListDataProvider<Number> provider = new ListDataProvider<Number>();
for (int i = 0; i < 10; i++) {
provider.getList().add(new Integer(i));
}
return new DefaultNodeInfo<Number>(provider, new NumberCell(), selectionModel, null);
} else if (value instanceof Integer && !isLeaf(value)) {
// Get the children of odd Integers, which are Strings.
ListDataProvider<String> provider = new ListDataProvider<String>();
for (int i = 0; i < 10; i++) {
char c = (char) ('a' + i);