开发者

using gwt-dnd with new layout panels of gwt 2.0

开发者 https://www.devze.com 2023-01-07 04:11 出处:网络
I\'d like to use gwt-dnd within an application that uses the new 2.0 layout panels. however, gwt-dnd only accepts AbsolutePanel as its container for drag and drop.

I'd like to use gwt-dnd within an application that uses the new 2.0 layout panels.

however, gwt-dnd only accepts AbsolutePanel as its container for drag and drop.

is it possible to use AbsolutePanel within, say, a Dock开发者_运维问答LayoutPanel?


No, you cannot use AbsolutePanel or DockPanel in gwt-dnd. But you can use FocusPanel. So you have to put FocusPanels whenever you want dnd available.
Eg. you put: DockPanel -> north -> FocusPanel -> AbsolutePanel

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号