Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Bordered Grid Layout
icon5.gif  Bordered Grid Layout [message #1419338] Mon, 08 September 2014 08:57 Go to next message
Eclipse UserFriend
I am developing an RAP application. It has a composite which is supposed to have a table like structure(sample is attached: Expected UI).

I am using Grid layout for developing this composite. How can I have the borders for the GridLayout cells?

Since there is no way to set the borders for the grid's cells, I try to set the borders for the labels(which are inside the cells). But they do not look as expected. See the attached image of how it looks now (Current UI). There is always gap between adjacent cells.

Is there any othe way?

[Updated on: Mon, 08 September 2014 08:58] by Moderator

Re: Bordered Grid Layout [message #1419855 is a reply to message #1419338] Tue, 09 September 2014 03:19 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
nice to that see such a complex Table (based on GridLayout) is possible
to achieve in RAP. GridLayout has some non zero (5px) values for
horizontalSpacing/verticalSpacing/marginWidth/marginHeight. Try to set
all of them to zero. Afterwards the label borders approach should look fine.
HTH,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Bordered Grid Layout [message #1419940 is a reply to message #1419855] Tue, 09 September 2014 05:16 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ivan,

Thanks for your answer. I did that already. But the problem is that I was using labels to fill up the grid cells. Labels does not fill the entire space of the grid cells. Now I am using Text, which works great.

But still I want the borders to be Dark(Black) and not Grey as always in RAP. How can I do that?
Re: Bordered Grid Layout [message #1419944 is a reply to message #1419940] Tue, 09 September 2014 05:24 Go to previous message
Eclipse UserFriend
Hi,
you can change the border color with themeing [1].

[1]
http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.rap.doc%2Fguide%2Freference%2Ftheming%2FText.html
HTH,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Cut/Copy/Paste support in RAP
Next Topic:Running Eclipse JDT on top of Eclipse RAP
Goto Forum:
  


Current Time: Sun Aug 31 06:26:55 EDT 2025

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

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

Back to the top