Use gwt-dnd with StackLayoutPanel

15 views
Skip to first unread message

Anna Wałach

unread,
Oct 19, 2014, 12:00:20 PM10/19/14
to gwt...@googlegroups.com
Hello,
Lately, I started playing with dnd and new GWT layout panels 2.0. I wanted to use StackLayoutPanel(http://www.gwtproject.org/doc/latest/DevGuideUiPanels.html) to display headers and some child widgets(HTML text).
I want to use dnd to change the header order (similar functionality like in Demo 6 with FlexTable). I tried to follow advices from the Demo 6 and I designed my own drag and drop controllers, but I'm stuck with the drop controller. I wanted to extend AbsolutePositionDropController, but in constructor:
public StackLayoutHeaderDropController(StackLayoutPanel stackPanel) {
    super(stackPanel);
    this.stackPanel = stackPanel;
}
It says I cant call the super constructor with a Layout Panel. 

I want to ask what is the proper schema for dealing with Layout Panels drag-and-drop for inner widgets' order changes?
Cheers,
Anna

Reply all
Reply to author
Forward
0 new messages