Thanks Thomas,
your piece of advice removed the cobwebs from my thoughts. The
solution is made as follows:
header.ui.xml (extract):
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:style src="resource/header.css"
type="appgui.client.ui.widgets.header.resource.Resource.HeaderCss"/>
<ui:image field="headerBG" src='./resource/headerBG.png'/>
<ui:image field="fade" src='./resource/fade.png'
repeatStyle='Horizontal'/>
<ui:image field="fadeSelected" src='./resource/fade_selected.png'
repeatStyle='Horizontal'/>
.....
header.css (extract):
@sprite .headerBanner {
gwt-image: 'headerBG';
height: 100px;
width: 100%;
margin: 0px;
}
resource.java:
public interface Resource extends ClientBundle {
public interface HeaderCss extends CssResource{
public String headerBanner();
public String menuItem ();
public String selected ();
public String hovered();
public String langswitch();
public String nav();
}
@Source("header.css")
public HeaderCss css();
}
This way each widget can get its own package with the occorind
resources, which in my case vastly improves reusability.
Thanks.
Tsu
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.