Today, I want to add a function to cancel selection of a tree item in tree panel.
I already implementated this before, but I can’t remember how to do this.
So I search the original code and save here, so next time, I can find it from here.
treePanel.getSelectionModel().addListener(Events.BeforeSelect, new Listener<SelectionEvent<ModelData>>() {
@Override
// Check the model data and if want to cancel selection, then set canceled
value
|
How to cancel selection for TreePanel(GXT),布布扣,bubuko.com
How to cancel selection for TreePanel(GXT)
原文:http://www.cnblogs.com/liwp_Stephen/p/3575260.html