Generate ordered list widget

37 views
Skip to first unread message

nadal nadalet

unread,
Jul 31, 2014, 4:38:04 AM7/31/14
to gwt...@googlegroups.com
Hi, I'm trying to generate a sorted list of widgets. 
My goal is to make a menu builder, I'm trying to do this as the example https://gwt-dnd.appspot.com/#InsertPanelExample, I get a two dimensional array with the columns and the items they contain. 
For example:

MenuItem  // ui contains: id, label, url, order, List<MenuItem> childrens

___________________________________________________________________________________________
| Menu Item order 0, column draggable |   Menu item order 1 draggable,    Menu item order 2 draggable,  etc
|                                                        |
| _______________________________ |
| | MenuItem order 0, item draggable   | |
| |                                                     | |             etc......                                           etc.....                             ...
| |                                                     | |
| |______________________________| |
|                                                        |
|                                                        |
|                                                        |
| _______________________________ |
| | MenuItem order 1, item draggable   | |
| |                                                     | |
| |                                                     | |
| |______________________________| |
|                                                        |
|                                                        |
|                                                        |
| _______________________________ |
| | MenuItem order 2, item draggable   | |
| |                                                     | |
| |                                                     | |
| |______________________________| |
|                                                        |
|                                                        |

The problem is I do not know how to apply the order to each item and generate an array with the result. 
See if you can help me, thanks.

Steve Close

unread,
Jul 31, 2014, 11:38:23 AM7/31/14
to gwt...@googlegroups.com
REMOVE


--
You received this message because you are subscribed to the Google Groups "gwt-dnd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-dnd+u...@googlegroups.com.
To post to this group, send email to gwt...@googlegroups.com.
Visit this group at http://groups.google.com/group/gwt-dnd.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages