How to move a panel across a common ancestor region/panel

4 views
Skip to first unread message

ranjmis

unread,
May 2, 2010, 4:43:18 PM5/2/10
to GWT-FX
First of all thanks for all your energy and efforts by providing a
beautiful library which seamlessly gives effects to any object present
on a GWT panel.

To Brief My Problem Statement:
---------------------------------------------

I have a widget (A) which is wrapped N levels deep inside nested
Composite Widgets with respect to an AbsolutePanel (AP), which I call
my ancestor panel. There is a region (B) which is located as a child
of the mentioned ancestor (i.e. AP) such that AP becomes least common
ancestor of A and B.

I want to move A to B's region.
I have tried NMorphStyle as follows:
..........................
NMorphStyle morph = new NMorphStyle(
new Rule("start {left:0px; top:0px;}"),
new Rule("end {left:"+(Window.getClientWidth()-100)+"px; top:
0px;}")
);
..........................
It works in a way that it moves A in its parent's region. What I
intend to achieve is instead of A's parent I want to move it across
A's and B's least common ancestor region. I have handle to AP, A and B
across my class scope.

Hope the problem is clear. Let me know otherwise. Please advice how to
proceed.

Thanks,
Ranjeet

Adam T

unread,
May 9, 2010, 2:02:56 AM5/9/10
to GWT-FX
Hi Ranjeet,

Can you provide a diagram of what you are trying to do, I'm not fully
following from your text, sorry!

Cheers,

//Adam
Reply all
Reply to author
Forward
0 new messages