I need to create a set of composite widgets and show them in two
different (draggable) orders. for some reason, they only appear in the
former of the two DeckPanels of a TabPanel.  I am using GWT-DND for
this.

 In my case there will be one set of WWCard composite widgets, and
they must be (draggably) shown in both DeckPanels of a TabPanel so
they can be re-ordered differently (chronologically and in storyline
order).

Can anybody explain why they do not show up in both deckpanels.  I
have tried commenting out all the DND stuff (as shown  below) and it
still does not show up in both.

public class WWCardTab extends Composite {

        public WWCardTab () {
                // Card Tab Panel
                TabPanel cardPanel = new TabPanel();
                initWidget(cardPanel);
                DeckPanel cardDeckPanel = cardPanel.getDeckPanel();
                cardDeckPanel.setPixelSize(1200, 600);

                // Chronological panel
                AbsolutePanel chronoPanel = new AbsolutePanel();
                cardPanel.add(chronoPanel, "Chronological");

             // Storyline panel
                AbsolutePanel storyPanel = new AbsolutePanel();
                cardPanel.add(storyPanel, "StoryLine");

                // Instantiate  DragControllers and Grid Constrained 
DropControllers
                        //chrono
                        //PickupDragController chronoDragController = new
PickupDragController(chronoPanel, true);
                        //GridConstrainedDropController chronoDropController =
new                   GridConstrainedDropController(chronoPanel,
265,167);
                        //chronoDragController.registerDropController
(chronoDropController);
                        // story
                        //PickupDragController storyDragController = new
PickupDragController(chronoPanel, true);
GridConstrainedDropController storyDropController = new
                        //GridConstrainedDropController(chronoPanel,
265,167);
                        
//storyDragController.registerDropController(storyDropController);


                cardPanel.selectTab(0);

                // create a few   draggable cards
            for (int i = 1; i <= 5; i++) {

                WWCard card = new WWCard();
                card.addStyleName(CSS_WWCARD_HEADER);

                storyPanel.add(card);
                //storyDragController.makeDraggable(card, card.cardHeader);

                chronoPanel.add(card);
                //chronoDragController.makeDraggable(card, card.cardHeader);


                 }
}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to