Re: [Java-gnome-developer] Using TreeView isgnals with Glade
Brought to you by:
afcowie
From: Joao V. <jvi...@ya...> - 2005-05-02 00:11:53
|
Could someone please put this information about TreeView signals in the TreeView tutorial, in the wiki? Also, the tutorial is needing some compilable .java files, so people can download/compile/run it. Cheers, J.V. --- Khiraly <khi...@gm...> wrote: > Sorry for this many messages, but I have resolved. Maybe there are > people who are interesting. > > The appenColumn generate COLUMN_CHANGED signal and the double-click > generate ROW_ACTIVATED signal. So I have added an if() condition. > There is the corrected source code: > > userlistTree = (TreeView) puliApp.getWidget("userlistTree"); // userlist tree > userlistTree.addListener(new TreeViewListener() { > public void treeViewEvent(TreeViewEvent event) { > if (event.isOfType(TreeViewEvent.Type.ROW_ACTIVATED)) { > System.out.println("DoubleClick "+event); > } > > } > }); > > Best regards, > Khiraly Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora! http://br.acesso.yahoo.com/ |