Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Bordered Grid Layout
icon5.gif  Bordered Grid Layout [message #1419338] Mon, 08 September 2014 12:57 Go to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
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 12:58]

Report message to a moderator

Re: Bordered Grid Layout [message #1419855 is a reply to message #1419338] Tue, 09 September 2014 07:19 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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 09:16 Go to previous messageGo to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
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 09:24 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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: Thu Apr 25 09:34:11 GMT 2024

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

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

Back to the top