On Wed, Aug 8, 2012 at 3:09 PM, Josh R <[email protected]> wrote:
> On Wed, Aug 8, 2012 at 2:43 PM, Roger L. Whitcomb
>> Of course, it might be possible to set a style on the tree as to whether or
>> not disabled nodes pass through their input, but my feeling is that this is
>> better left up to the user what to do..... My 2c... You could file a JIRA
>> issue about this and we could think about it. Or you could implement it
>> yourself and suggest it as a patch ;)
>>
TerraTreeViewSkin::mouseClick calls " boolean consumed =
super.mouseClick(component, button, x, y, count); " Is this something
that would need to be changed?
So may be when a new function " TreeBranch.setEnabled(false)" is
called then the nodeInfo's attributes are set/reset and then check
nodeInfo.isDisabled() before calling super.mouseClick() ?
Anyways, for now in my "BusyCapableNodeRenderer extends
TreeViewNodeRenderer " class, I'm doing this:
public BusyCapableNodeRenderer(TreeView treeView) {
this.treeView = treeView;
this.getComponentMouseButtonListeners().add(new
ComponentMouseButtonListener.Adapter () {
public boolean mouseClick(Component component,
Mouse.Button
button, int x, int y, int count) {
System.out.println("comp:"+component.toString()); // print and
check if it's a tree...
return false;
}
}
);
}
Is this correct? The mouseclick listener isn't getting called. If
possible, I was thinking of blocking the mouse event here.
thanks