Package org.hippoecm.frontend.model.tree
Class JcrTreeModel
java.lang.Object
org.hippoecm.frontend.model.tree.JcrTreeModel
- All Implemented Interfaces:
Serializable
,EventListener
,TreeModel
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
,IObserver<ObservableTreeModel>
,IJcrTreeModel
public class JcrTreeModel
extends Object
implements IJcrTreeModel, IObserver<ObservableTreeModel>, org.apache.wicket.model.IDetachable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
detach()
int
getChildCount
(Object parent) int
getIndexOfChild
(Object parent, Object child) The observable that the observer is interested in.getRoot()
boolean
lookup
(JcrNodeModel model) protected TreeModelEvent
newTreeModelEvent
(Event event) void
onEvent
(Iterator<? extends IEvent<ObservableTreeModel>> iter) Callback that is invoked when the observable sends events.void
void
setTreeState
(org.apache.wicket.extensions.markup.html.tree.DefaultTreeState state) void
valueForPathChanged
(TreePath path, Object newValue)
-
Constructor Details
-
JcrTreeModel
-
-
Method Details
-
getObservable
Description copied from interface:IObserver
The observable that the observer is interested in. This observable may not change, w.r.t. theIObservable.equals(java.lang.Object)
method, while the observer is registered.- Specified by:
getObservable
in interfaceIObserver<ObservableTreeModel>
-
onEvent
Description copied from interface:IObserver
Callback that is invoked when the observable sends events. The iterator is guaranteed to be non-empty.- Specified by:
onEvent
in interfaceIObserver<ObservableTreeModel>
-
newTreeModelEvent
- Throws:
RepositoryException
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
lookup
- Specified by:
lookup
in interfaceIJcrTreeModel
-
getChild
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
getRoot
-
isLeaf
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
detach
public void detach()- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
-
setTreeState
public void setTreeState(org.apache.wicket.extensions.markup.html.tree.DefaultTreeState state)
-