Guaranteed order of children
1 Sep 2010 07:00:20 GMT
1 Sep 2010 19:59:43 GMT
1 Sep 2010 19:59:43 GMT
Hi diego898,
Could you elaborate your question further? Have you run into a consequence that the list retreived by getChildren() has a different order than what you see on the browser?
Regards,
Simon
2 Sep 2010 04:41:50 GMT
2 Sep 2010 04:41:50 GMT
I have not, but I dont suspect it is guaranteed unless it is implemented with an arrayList or linkedList or some other implementation with guaranteed ordering
Thanks
2 Sep 2010 20:20:41 GMT
2 Sep 2010 20:20:41 GMT
Hi diego898,
I think all type of Lists are order preserving in Java. If you are interested to see how ZK implements Listbox#getChildren(), you can trace the source code. You will see it returns a class that extends AbstractSequentialList.
Regards,
Simon
ZK - Open Source Ajax Java Framework
Hello,
I have a listbox where the rows are drag and drop. Order is important in my application so is there a way I can get the children of this listbox while guaranteed that their order is the same as it was in the dialog?
Thanks!