Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Change layout in rap client
Change layout in rap client [message #874811] Mon, 21 May 2012 11:35 Go to next message
Filippo Rossoni is currently offline Filippo Rossoni
Messages: 6
Registered: July 2009
Junior Member
How change page layout in rap client

for example I want to display SearchForm on top of table
it's possible?
Re: Change layout in rap client [message #874925 is a reply to message #874811] Mon, 21 May 2012 16:12 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan Motsch
Messages: 100
Registered: March 2010
Senior Member
position of views within the application can be set regardless of swt, swing, rap.
Each form has a displayViewId property.
Before showing a view (or a search form) in a page either call form.setDisplayViewId() using a IForm.DISPLAY_VIEW_ID value or in the scout sdk set the property "Display View ID".
Default placement of the search form is in South (S). By Choosing North (N) it is displayed above then table.

Does this help?
If this is not sufficient, please tell me, then i will post some code. At the moment i am just on my mobile...
Re: Change layout in rap client [message #874929 is a reply to message #874925] Mon, 21 May 2012 16:18 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 117
Registered: November 2010
Senior Member
You can set the position of a SearchForm with the property: "Display view id" of the SearchForm.

To have the Form at the top of the TablePage, select North.

index.php/fa/9826/0/

Corresponding Code:
  @Override
  protected String getConfiguredDisplayViewId() {
    return VIEW_ID_N;
  }


You will get something like this:
index.php/fa/9827/0/

This is not RAP specific. It also work with other UI Renderers.

Ivan was quicker...

[Updated on: Mon, 21 May 2012 16:20]

Report message to a moderator

Re: Change layout in rap client [message #876306 is a reply to message #874929] Thu, 24 May 2012 06:51 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie Bresson
Messages: 622
Registered: October 2011
Senior Member
I uploaded different example at: http://wiki.eclipse.org/Scout/Concepts/Search_Form#Properties
Re: Change layout in rap client [message #876433 is a reply to message #876306] Thu, 24 May 2012 11:33 Go to previous message
Filippo Rossoni is currently offline Filippo Rossoni
Messages: 6
Registered: July 2009
Junior Member
Thanks for the info
Previous Topic:Modelling the Eclipse Development Process: Scout
Next Topic:Scout and web-based GUIs
Goto Forum:
  


Current Time: Tue Jul 22 13:34:08 EDT 2014

Powered by FUDForum. Page generated in 0.01570 seconds