public class FooProvider extends Object implements org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider<Foo>
Foos.
For simplicity all foos are kept as class members, in a real world scenario these would be
fetched from a database. If Foos were Serializable you could of course just keep
references in instance variables.model(Foo),
Serialized Form| Constructor and Description |
|---|
FooProvider()
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
detach()
Nothing to do.
|
Iterator<Foo> |
getChildren(Foo foo) |
Iterator<Foo> |
getRoots() |
boolean |
hasChildren(Foo foo) |
org.apache.wicket.model.IModel<Foo> |
model(Foo foo)
Creates a
FooModel. |
public void detach()
detach in interface org.apache.wicket.model.IDetachablepublic Iterator<Foo> getRoots()
getRoots in interface org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider<Foo>public boolean hasChildren(Foo foo)
hasChildren in interface org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider<Foo>public Iterator<Foo> getChildren(Foo foo)
getChildren in interface org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider<Foo>Copyright © 2017. All rights reserved.