Tuesday, December 24, 2013

organizing modules and CSS resources

Hi,

up to now, I am using one central CSS file per project, which is the default one located under the war directory.
Currently, I am outsourcing parts of my projects into a separate library, so that I can reuse them in multiple projects.
The library is included in my project like this:

 myProject.gwt.xml:
...
  <inherits name='myLib'/>
...

Now there is a class that uses a style from the central CSS file of a project:

public class TitleBar ...
{
 ...
 public TitleBar ()
 {
  ...
  setStyleName ("myTitleBar");
  ...
 }
 ...
}

If I move this class into the library, it will not be part of the current project anymore. So it makes no sense to access from within the library a CSS file in the project.

It would be nice if there could be a separate CSS file in the library, which is used only within the library.
Is this possible?

Thanks
Magnus

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment