Placement through CSS

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Placement through CSS

Postby sisam » Sun May 20, 2007 8:58 pm

One of the requirements on my current project is that all widgets are placed via RELATIVE placement in CSS. Placements cannot be coded into the Jsp or html.

The layouts that I have created all hardcode the placements into the Java rather than doing it through css. I manually removed the coordinates and sizes that are in pixels and recalculated relative values to put in css.

Is there a setting in GWT that I am missing that will do this for me? If not, is this an upcoming planned feature?
sisam
 
Posts: 1
Joined: Fri May 18, 2007 10:46 am

Re: Placement through CSS

Postby Eric Clayberg » Tue May 22, 2007 4:44 am

sisam wrote:Is there a setting in GWT that I am missing that will do this for me?
No.
sisam wrote:If not, is this an upcoming planned feature?

No. We have no plans to support anything like that.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Placement through CSS

Postby SoulDad57 » Thu May 24, 2007 5:42 am

Eric Clayberg wrote:
sisam wrote:Is there a setting in GWT that I am missing that will do this for me?
No.
sisam wrote:If not, is this an upcoming planned feature?

No. We have no plans to support anything like that.


This is probably a very popular requirement. It's considered bad form to hard-code positioning information, all layout should go in the CSS.

At a conceptual level it doesn't seem to be that big of a stretch, if widget/panel has a style name, optionally store the positioning info in the style sheet.

Food for thought...

Ciao,

Rick
"Fanaticism consists in redoubling your effort when you have forgotten your aim."

— George Santayana
SoulDad57
 
Posts: 15
Joined: Wed May 16, 2007 4:44 am
Location: Texas

Re: Placement through CSS

Postby Eric Clayberg » Thu May 24, 2007 6:53 am

SoulDad57 wrote:This is probably a very popular requirement. It's considered bad form to hard-code positioning information, all layout should go in the CSS. At a conceptual level it doesn't seem to be that big of a stretch, if widget/panel has a style name, optionally store the positioning info in the style sheet.

In effect, all you are doing is pushing the hard coded positioning info from your Java code to your CSS code. If each widget ends up needing is own unique style in CSS to capture its own unique positioning, where is the benefit in that?

GWT already provides numerous layout types / panels that you can use layout widgets relative to one another without hard coding positions. You don't need to use AbsolutePanel at all, if you don't want to.

GWT Designer also provides a nice CSS editor, if you do want to create custom styles for various widget types.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests