public class JcrTreeModel extends Object implements IJcrTreeModel, IObserver<ObservableTreeModel>, org.apache.wicket.model.IDetachable
Constructor and Description |
---|
JcrTreeModel(IJcrTreeNode rootModel) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(TreeModelListener l) |
void |
detach() |
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
int |
getIndexOfChild(Object parent,
Object child) |
ObservableTreeModel |
getObservable()
The observable that the observer is interested in.
|
Object |
getRoot() |
boolean |
isLeaf(Object node) |
TreePath |
lookup(JcrNodeModel model) |
protected TreeModelEvent |
newTreeModelEvent(javax.jcr.observation.Event event) |
void |
onEvent(Iterator<? extends IEvent<ObservableTreeModel>> iter)
Callback that is invoked when the observable sends events.
|
void |
removeTreeModelListener(TreeModelListener l) |
void |
setTreeState(org.apache.wicket.extensions.markup.html.tree.DefaultTreeState state) |
void |
valueForPathChanged(TreePath path,
Object newValue) |
public JcrTreeModel(IJcrTreeNode rootModel)
public ObservableTreeModel getObservable()
IObserver
IObservable.equals(java.lang.Object)
method, while the observer is
registered.getObservable
in interface IObserver<ObservableTreeModel>
public void onEvent(Iterator<? extends IEvent<ObservableTreeModel>> iter)
IObserver
onEvent
in interface IObserver<ObservableTreeModel>
protected TreeModelEvent newTreeModelEvent(javax.jcr.observation.Event event) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener
in interface TreeModel
public TreePath lookup(JcrNodeModel model)
lookup
in interface IJcrTreeModel
public int getChildCount(Object parent)
getChildCount
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
public void detach()
detach
in interface org.apache.wicket.model.IDetachable
public void setTreeState(org.apache.wicket.extensions.markup.html.tree.DefaultTreeState state)
Copyright © 2007–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.