Event handling

Top  Previous  Next

Tree component triggers the following types of the events.

 

TreeBranchSelectedEvent - if user clicks on the branch of the tree.

 

TreeLeafBranchSelectedEvent - if user clicks on the leaf of the tree.

 

TreeBranchOpenedEvent - if user clicks on the image to open tree brach (used basicly to implement tree lazy loading).

 

TreeBranchClosedEvent - if user clicks on the image to close tree brach.

 

 

These events can be easily handled by implementing TreeBranchSelectedListener, TreeLeafSelectedListener, TreeBranchOpenedListener and TreeBranchClosedListener listeners accordingly.

 

Note:

 

serverSideAction tag property must be set to true

 

treeBranchSelectedListener, treeLeafSelectedListener, treeBranchOpenedListener and treeBranchClosedListener tag properties must contain fully qualified listener class name.

 

Click here to see tree listeners sample java source