Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Manipulate Composite/View dynamically(Refreshing/Redrawing the UI by force)
Manipulate Composite/View dynamically [message #845027] Sat, 14 April 2012 17:03 Go to next message
Hans Missing name is currently offline Hans Missing nameFriend
Messages: 14
Registered: August 2010
Junior Member
Hi,

Im stuck to a problem I couldn't find a solution for. Following scenario:
I have a viewpart or composite that is created when the application is started. Everything works fine but now I want to add a new gui item (e.g. labels or other composites) to the view/composite when the user clicks on a button.

How can I achieve this goal? Everything I tried didn't work. I could just see something *new* when I refreshed the application by pressing f5 in the browser. I guess RAP renders the ui once when it's initialized. Is there a workaround for? It is possible to force RAP to refresh/redraw the ui?


Hope you can help me Smile

Sincerely
Superhans
Re: Manipulate Composite/View dynamically [message #846695 is a reply to message #845027] Mon, 16 April 2012 09:09 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Superhans,

Widgets that are added in direct response to a user interaction are
rendered immediately. But without re-layouting they will not become
visible. Try to call layout() on the widget's parent after adding.

Regards, Ralf


--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Manipulate Composite/View dynamically [message #848799 is a reply to message #846695] Wed, 18 April 2012 15:32 Go to previous message
Hans Missing name is currently offline Hans Missing nameFriend
Messages: 14
Registered: August 2010
Junior Member
hi,

thanks it worked!
Previous Topic:oeju.UrlEncoded:maxFormKeys limit exceeded keys>1000
Next Topic:Strange behavior with CLabel and his client area
Goto Forum:
  


Current Time: Fri Apr 26 18:29:06 GMT 2024

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

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

Back to the top