0

tree CheckEvent

asked 2009-11-13 05:15:25 +0800

houcine gravatar image houcine
108 1 1

I have a tree that contains many nodes with checkmark,
I want to add an event onCheck 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

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2009-11-13 05:19:13 +0800

fmcypriano gravatar image fmcypriano
612 1 7
http://felipecypriano.com...

Hello,

Try the onSelect event, see http://docs.zkoss.org/wiki/Developer_reference_The_XUL_Components_Components_Tree#Supported_Events


Cheers

link publish delete flag offensive edit

answered 2009-11-13 05:30:20 +0800

houcine gravatar image houcine
108 1 1

onSelect event works correctly, but I want to use onCheck events because I have a checkmark

link publish delete flag offensive edit

answered 2009-11-13 07:47:19 +0800

houcine gravatar image houcine
108 1 1

Is it possible to use the event onCheck for nodes in a tree

link publish delete flag offensive edit

answered 2009-11-13 08:31:28 +0800

fmcypriano gravatar image fmcypriano
612 1 7
http://felipecypriano.com...

According to this doc http://docs.zkoss.org/wiki/Developer_reference_The_XUL_Components_Components_Treeitem#Supported_Events only onRightClick, onDoubleClick and onOpen are supported in Treeitem component.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-11-13 05:15:25 +0800

Seen: 458 times

Last updated: Nov 13 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More