public interface ITreeViewListener
extends org.apache.wicket.util.io.IClusterable
AjaxTreeView widget and the AjaxTreeViewBehavior| Modifier and Type | Method and Description |
|---|---|
boolean |
isChangeEventEnabled()
Indicates whether the 'change' event is enabled.
If true, the onChange(AjaxRequestTarget, int, String) event will be triggered |
boolean |
isDropEventEnabled()
Indicates whether the 'drop' event is enabled.
If true, the onDrop(AjaxRequestTarget, int, int, String) event will be triggered |
boolean |
isExpandEventEnabled()
Indicates whether the 'expand' event is enabled.
If true, the onExpand(AjaxRequestTarget, int) event will be triggered |
void |
onChange(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId,
String nodePath)
Triggered when the selection has changed
|
void |
onDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId,
int parentId,
String position)
Triggered when a node is (drag and) dropped
|
void |
onExpand(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId)
Triggered when a node is expanding
|
boolean isChangeEventEnabled()
onChange(AjaxRequestTarget, int, String) event will be triggeredboolean isExpandEventEnabled()
onExpand(AjaxRequestTarget, int) event will be triggeredboolean isDropEventEnabled()
onDrop(AjaxRequestTarget, int, int, String) event will be triggeredvoid onChange(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId,
String nodePath)
target - the AjaxRequestTargetnodeId - the node-idnodePath - the node path as array, ie [1,2,3]void onExpand(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId)
target - the AjaxRequestTargetnodeId - the node-idvoid onDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
int nodeId,
int parentId,
String position)
target - the AjaxRequestTargetnodeId - the node-idparentId - the node that the node-id is being dropped upon.position - one of the values 'over', 'before', or 'after'.Copyright © 2021 7thWeb. All rights reserved.