Re: [java-gnome-hackers] TreeModel rows-reordered
Brought to you by:
afcowie
From: Mark H. <mh...@ca...> - 2004-02-29 14:17:38
|
On Sun, Feb 29, 2004 at 08:43:15AM -0500, Jeffrey Morgan wrote: > Do you know if the event was fired in the native layer? It should have been according to the docs for setReorderable(bool). How can I find out? > > -Jeff > > > On Sun, 2004-02-29 at 08:55, Mark Howard wrote: > > I can't get the rows-reordered signal to work. I modified > > dataTable/TableExample > > > > treeWidget.setReorderable( true ); > > store.addListener( (TreeModelListener) this ); > > > > } > > > > public void treeModelEvent( TreeModelEvent event ){ > > System.out.println("TreeModelEvent"); > > if (event.isOfType(TreeModelEvent.Type.ROWS_REORDERED)){ > > System.out.println("Rows Reordered"); > > System.out.println("Iter " + event.getTreeIter().toString()); > > System.out.println("Path: " + event.getTreePath().toString() ); > > } > > } > > > > > > The callback is never called. > > I tried changing rows_reordered to rows-reordered in TreeModel.java, but > > this didn't help. > > > > > > > > On Thu, Feb 26, 2004 at 12:40:39PM -0500, Jeffrey Morgan wrote: > > > > > I just checked in the code that does this but I have no way of > > > > > knowing if it works. Can one of you please write a simple example > > > > > how to sort the columns of a tree model and add it to the project? > > > > > > > > > > Thanks > > > > > -Jeff > > > > > > > > > > > The rows-reordered signal is the only (as far as I can see) way of > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > java-gnome-hackers mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-hackers > -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |