Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » CTabFolder - vertical tabs
CTabFolder - vertical tabs [message #718763] Thu, 25 August 2011 09:22 Go to next message
Sam Missing name is currently offline Sam Missing nameFriend
Messages: 14
Registered: May 2011
Junior Member
Hi,

In our application we use a special implementation of CTabFolder to display the tabs on the right side of the folder.
As the implementation of CTabFolder in SWT and RAP differ very much it is not working because we used paintlisteners and GC (GC can only be used on Canvas, am i right?).
So i searched how the Control is implemented on the javascript side. There i found the "barTop" state and searched for it, but it is only used in AppearancesBase for drawing borders.
I looked over the custom widget example in the rap tooling help but i didnt find helpful information there either.
Thanks in advance
Re: CTabFolder - vertical tabs [message #718784 is a reply to message #718763] Thu, 25 August 2011 10:32 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 Sam,
the client-side widget of CTabFolder (CVS HEAD) is
org.eclipse.rap.rwt\js\org\eclipse\swt\custom\CTabFolder.js. Or if you
are using 1.4 release it is
org.eclipse.rap.rwt.q07\js\org\eclipse\swt\custom\CTabFolder.js. I doubt
that you can easily implement the CTabFolder with the tabs on left or
right in RAP without creating your own custom widget.
Best,
Ivan

On 8/25/2011 12:22 PM, Sam wrote:
> Hi,
>
> In our application we use a special implementation of CTabFolder to
> display the tabs on the right side of the folder.
> As the implementation of CTabFolder in SWT and RAP differ very much it
> is not working because we used paintlisteners and GC (GC can only be
> used on Canvas, am i right?).
> So i searched how the Control is implemented on the javascript side.
> There i found the "barTop" state and searched for it, but it is only
> used in AppearancesBase for drawing borders.
> I looked over the custom widget example in the rap tooling help but i
> didnt find helpful information there either.
> Thanks in advance
>
Re: CTabFolder - vertical tabs [message #718809 is a reply to message #718784] Thu, 25 August 2011 12:00 Go to previous messageGo to next message
Sam Missing name is currently offline Sam Missing nameFriend
Messages: 14
Registered: May 2011
Junior Member
I found the CTabFolder.js already, there i found the barTop state.
My question was where the layouting takes place. The custom widget example has no layouting. I would be interested in where for example is the distinction between top and bottom tabbar in CTabFolder when it really comes to painting. As i said i found these states, but i didnt find where the really said: "Ok, state is top, so whe paint the CTabItems before the body". I didnt find documentation on layouting complex widgets like Tabfolders.
Thank you for your help.
Re: CTabFolder - vertical tabs [message #718829 is a reply to message #718809] Thu, 25 August 2011 12:25 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Sam,
there is a field in the CTabFolder onBottom witch is rendered on the
client trough the CTabFolderLCA#writeTabPosition. Than the actual layout
take place in CTabFolder.js#_updateLayout. The actual CTabItem client
side widget is CTabItem.js and the corresponding LCA is CTabItemLCA.
HTH,
Ivan

On 8/25/2011 3:00 PM, Sam wrote:
> I found the CTabFolder.js already, there i found the barTop state.
> My question was where the layouting takes place. The custom widget
> example has no layouting. I would be interested in where for example
> is the distinction between top and bottom tabbar in CTabFolder when it
> really comes to painting. As i said i found these states, but i didnt
> find where the really said: "Ok, state is top, so whe paint the
> CTabItems before the body". I didnt find documentation on layouting
> complex widgets like Tabfolders.
> Thank you for your help.
Previous Topic:GlazedList and Rich Ajax Platform
Next Topic:Edit table from Selenium
Goto Forum:
  


Current Time: Thu Apr 25 14:37:10 GMT 2024

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

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

Back to the top