Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Reparent Composite in RAP 2.1. ?
Reparent Composite in RAP 2.1. ? [message #1162648] Wed, 30 October 2013 14:21 Go to next message
Milko Krastev is currently offline Milko Krastev
Messages: 17
Registered: July 2013
Junior Member
Is it possible to change the parent of a composite in RAP via the setParent() method? I tried, but it returns false. Any workaround?
Re: Reparent Composite in RAP 2.1. ? [message #1163917 is a reply to message #1162648] Thu, 31 October 2013 09:56 Go to previous messageGo to next message
UmaShankar Subramani is currently offline UmaShankar Subramani
Messages: 136
Registered: December 2011
Location: SWEDEN
Senior Member
I am using WindowsBuilder for designing my Views. I just drag and drop it to that parent. Then I get the code generated Wink.

But I don't know anything about Reparenting Rolling Eyes

[Updated on: Thu, 31 October 2013 11:23]

Report message to a moderator

Re: Reparent Composite in RAP 2.1. ? [message #1165950 is a reply to message #1162648] Fri, 01 November 2013 17:15 Go to previous messageGo to next message
Markus Knauer is currently offline Markus Knauer
Messages: 107
Registered: July 2009
Senior Member

The short answer is: no

isReparentable() -> false


But what's your use case, or what did you have in mind? Maybe you can describe your problem and there's another solution for it.



--
Markus Knauer

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Reparent Composite in RAP 2.1. ? [message #1175216 is a reply to message #1165950] Thu, 07 November 2013 15:53 Go to previous message
Milko Krastev is currently offline Milko Krastev
Messages: 17
Registered: July 2013
Junior Member
The use case is rather straightforward. It is basically an attempt to achieve a StackPanel (GWT) - like widget

http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/StackPanel.html

within RAP. Imagine 55 rectangular boxes with stock market bid/ask quotes, each of which can be expanded on mouse click. The expanded client area is a composite showing some data. The user can arbitrarily expand and collapse such boxes.

What I want is a single client area that can be simply reparented to the appropriate expanded widget and initialized instead of being destroyed and recreated each time. It would be awesome if I could also use ClientScripting for that task Smile
Previous Topic:Mnemonic behavior
Next Topic:Communication between Server and Client secure?
Goto Forum:
  


Current Time: Sat Sep 20 10:07:01 GMT 2014

Powered by FUDForum. Page generated in 0.01954 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software