我有一个客户端捆绑包:
public interface FirstClientBundle extends ClientBundle {
public static final FirstClientBundle INSTANCE =
GWT.create(FirstClientBundle.class);
@Source("panel-top-bg.png")
public ImageResource panelTopBg();
}我想使用来自first Bundle的图像作为另一个Bundle的样式。如下所示:
public interface SecondClientBundle extends ClientBundle {
public static final SecondClientBundle INSTANCE =
GWT.create(SecondClientBundle.class);
public interface Style extends CssResource {
@ClassName("panelTop")
String panelTop();
}
@Source({ "style.css" })
public Style style();
}CSS文件的结尾如下所示:
@sprite .panel-top {
gwt-image: "FirstClientBundle.panelTopBg";
height: 18px;
cursor: move;
}这有可能吗?或者我应该用不同的方式来做整个事情?
发布于 2014-03-14 22:28:21
你能把第二个ClientBundle写成第一个的子接口吗?
public interface SecondClientBundle extends FirstClientBundlehttps://stackoverflow.com/questions/22387168
复制相似问题