我正在尝试使用此处显示的自定义样式(https://code.google.com/p/mgwt/wiki/Styling):
public class MGWTColorTheme implements MGWTTheme {
private MGWTClientBundle bundle;
public MGWTColorTheme() {
if (MGWT.getOsDetection().isIOs()) {
if (MGWT.getOsDetection().isRetina()) {
bundle = (MGWTColorBundleRetina) GWT.create(MGWTColorBundleRetina.class);
} else {
bundle = (MGWTColorBundleNonRetina) GWT.create(MGWTColorBundleNonRetina.class);
}
} else {
bundle = (MGWTColorBundleNonRetina) GWT.create(MGWTColorBundleNonRetina.class);
}
}
@Override
public MGWTClientBundle getMGWTClientBundle() {
return bundle;
}
}
和
MGWTStyle.setTheme(new MGWTColorTheme());
当我加载我的应用程序时,我收到以下错误:
Rebinding com.googlecode.mgwt.ui.client.theme.mgwt.MGWTColorBundleNonRetina
Invoking generator com.google.gwt.resources.rebind.context.InlineClientBundleGenerator
Creating assignment for getButtonBarCss()
Replacing CSS class names
The following unobfuscated classes were present in a strict CssResource:
text
Fix by adding String accessor method(s) to the CssResource interface for obfuscated classes, or using an @external declaration for unobfuscated classes.