Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Change layout in rap client
Change layout in rap client [message #874811] Mon, 21 May 2012 15:35 Go to next message
Filippo Rossoni is currently offline Filippo RossoniFriend
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 20:12 Go to previous messageGo to next message
Ivan Motsch is currently offline Ivan MotschFriend
Messages: 154
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 20:18 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 124
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 20:20]

Report message to a moderator

Re: Change layout in rap client [message #876306 is a reply to message #874929] Thu, 24 May 2012 10:51 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
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 15:33 Go to previous message
Filippo Rossoni is currently offline Filippo RossoniFriend
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: Fri Apr 19 23:00:16 GMT 2024

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

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

Back to the top