Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Stylesheets
SWT Stylesheets [message #448929] Fri, 14 January 2005 21:37 Go to next message
Avneesh Jain is currently offline Avneesh JainFriend
Messages: 11
Registered: July 2009
Junior Member
Is there any framework out there which brings the concept of stylesheets for
SWT. Currently my SWT code has a lot of setFont(), setBackGround(),
setForeGround() kind of calls. Is there a framework which lets one keep the
style elements sepearte from code.

Also, is there a framework which lets user create SWT views using XML. I
come from a web development background and I am looking for a Servlet:JSP ::
SWT:???? analogy. I have heard that Apache's JellySWT or XUL might be a
solution. Has anyone ever used it or knows how flexible and configurable it
is. Are these frameworks are documented well enough so that someone new can
start coding in a relatively short period of time?

Thanks
Avneesh
Re: SWT Stylesheets [message #448938 is a reply to message #448929] Sat, 15 January 2005 12:06 Go to previous messageGo to next message
Stefan Zeiger is currently offline Stefan ZeigerFriend
Messages: 102
Registered: July 2009
Senior Member
Avneesh Jain wrote:

> Is there any framework out there which brings the concept of stylesheets for
> SWT. Currently my SWT code has a lot of setFont(), setBackGround(),
> setForeGround() kind of calls. Is there a framework which lets one keep the
> style elements sepearte from code.
>
> Also, is there a framework which lets user create SWT views using XML. I
> come from a web development background and I am looking for a Servlet:JSP ::
> SWT:???? analogy. I have heard that Apache's JellySWT or XUL might be a

Have a look at my Novocode Application Framework
(http://www.novocode.com/swt). It allows you to specify SWT GUIs in XML,
with the possible addition of XSLT style sheets which could be used to
separate all style elements from the GUI structure.

I've also thought about adding CSS (easier to use and more readable than
XSLT) but CSS does not separate the CSS file structure and datatypes
from the styles that can be set and from the layout model (Please
correct me if I'm wrong; I didn't find any separation in the CSS specs
which allows me to use the first layer but not the second one). I'll
probably have to create a CSS-like style language on my own.

--
Stefan Zeiger http://www.szeiger.de http://www.novocode.com
My SWT controls: http://www.novocode.com/swt
Re: SWT Stylesheets [message #448997 is a reply to message #448929] Mon, 17 January 2005 15:36 Go to previous messageGo to next message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
Avneesh Jain wrote:
> Is there any framework out there which brings the concept of stylesheets for
> SWT. Currently my SWT code has a lot of setFont(), setBackGround(),
> setForeGround() kind of calls. Is there a framework which lets one keep the
> style elements sepearte from code.
>
> Also, is there a framework which lets user create SWT views using XML. I
> come from a web development background and I am looking for a Servlet:JSP ::
> SWT:???? analogy. I have heard that Apache's JellySWT or XUL might be a
> solution. Has anyone ever used it or knows how flexible and configurable it
> is. Are these frameworks are documented well enough so that someone new can
> start coding in a relatively short period of time?

XSWT (xswt.sourceforge.net) lets you define your GUIs in XML. It
doesn't have style sheet support yet, but there is a proposal for how to
do it and an active developer community.


Regards,

Dave Orme

--
Visual Editor Project leader
db4objects Senior Engineer (www.db4o.com)
Essential Data Project maintainer (essentialdata.sf.net)
Re: SWT Stylesheets [message #449014 is a reply to message #448929] Mon, 17 January 2005 18:37 Go to previous messageGo to next message
Avneesh Jain is currently offline Avneesh JainFriend
Messages: 11
Registered: July 2009
Junior Member
Thank you Stefan and David for pointing in the right direction. I will have
a look at the two frameworks you have mentioned

Avneesh
"Avneesh Jain" <avneesh.jain@epiphany.com> wrote in message
news:cs9e1b$ji3$1@www.eclipse.org...
> Is there any framework out there which brings the concept of stylesheets
for
> SWT. Currently my SWT code has a lot of setFont(), setBackGround(),
> setForeGround() kind of calls. Is there a framework which lets one keep
the
> style elements sepearte from code.
>
> Also, is there a framework which lets user create SWT views using XML. I
> come from a web development background and I am looking for a Servlet:JSP
::
> SWT:???? analogy. I have heard that Apache's JellySWT or XUL might be a
> solution. Has anyone ever used it or knows how flexible and configurable
it
> is. Are these frameworks are documented well enough so that someone new
can
> start coding in a relatively short period of time?
>
> Thanks
> Avneesh
>
>
Re: SWT Stylesheets [message #449016 is a reply to message #448929] Mon, 17 January 2005 19:22 Go to previous messageGo to next message
Mark Phippard is currently offline Mark PhippardFriend
Messages: 129
Registered: July 2009
Senior Member
Avneesh Jain wrote:

> Also, is there a framework which lets user create SWT views using
> XML. I come from a web development background and I am looking for a
> Servlet:JSP :: SWT:???? analogy. I have heard that Apache's JellySWT
> or XUL might be a solution. Has anyone ever used it or knows how
> flexible and configurable it is. Are these frameworks are documented
> well enough so that someone new can start coding in a relatively
> short period of time?

You might want to check this out:

http://www.alphaworks.ibm.com/tech/rib

Mark
Re: SWT Stylesheets [message #449017 is a reply to message #448929] Mon, 17 January 2005 19:28 Go to previous message
Eclipse UserFriend
Originally posted by: l.mimoun.chello.fr

I personnaly developp for my project (an event driven web browser) something
that allow you to display an xml page with "html like" tag.

The aim is to obtain the same lookfield that the lookfield of a browser.
If you want, i can give you the source but you will have to work to adapt
with your projet.


"Avneesh Jain" <avneesh.jain@epiphany.com> a
Previous Topic:setLocation() problem
Next Topic:path to images?
Goto Forum:
  


Current Time: Thu Apr 18 02:03:27 GMT 2024

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

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

Back to the top