-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a tree that contains many nodes with checkmark,
I want to add an event onCheck (not onSelect) when I check node;
In filling the tree:
treeitem.addEventListener(Events.ON_CHECK, this);
In events:
if(evt instanceof CheckEvent)
{
Treeitem treeNode = (Treeitem)evt.getTarget();
if(treeNode.getAttribute("itemSelected").equals("CUSTOMER"))
{
logger.info("ITEM CHECKED ");
}
}
but I have no result
@houcine
Hi houcine, did you print out some break points to make sure you can get into "if(evt instanceof CheckEvent)" ?
Also you should try to print (Treeitem)evt.getTarget() and treeNode.getAttribute("itemSelected"), I think there
have some problems.
/Joy
Asked: 2010-01-07 08:52:21 +0800
Seen: 450 times
Last updated: Jan 10 '10