This class encapsulates the logic for displaying and (partial) updating the
tree. Actual presentation is out of scope of this class. User should derive
they own tree (if needed) from
DefaultAbstractTree or
Tree (recommended).
author: Matej Knopp
newTreeState() Creates the TreeState, which is an object where the current state of tree
(which nodes are expanded / collapsed, selected, ...) is stored.
updateTree(AjaxRequestTarget target) Updates the changed portions of the tree using given AjaxRequestTarget.
Call this method if you modified the tree model during an ajax request
target and you want to partially update the component on page.
Returns the component associated with given node, or null, if node is not
visible. This is useful in situations when you want to touch the node
element in html.
Parameters: node - Tree node Component associated with given node, or null if node is notvisible.
Creates the TreeState, which is an object where the current state of tree
(which nodes are expanded / collapsed, selected, ...) is stored.
Tree state instance
This method is called after creating every TreeItem. This is the place
for adding components on item (junction links, labels, icons...)
Parameters: item - newly created tree item. The node can be obtained asitem.getModelObject() Parameters: level - how deep the component is in tree hierarchy (0 for root item)
Updates the changed portions of the tree using given AjaxRequestTarget.
Call this method if you modified the tree model during an ajax request
target and you want to partially update the component on page. Make sure
that the tree model has fired the proper listener functions.
Parameters: target - Ajax request target used to send the update to the page
Methods inherited from wicket.markup.html.panel.Panel