1
(https://code.google.com/p/mgwt/wiki/Styling) 다음과 같이 나는 사용자 지정 스타일을 사용하는 것을 시도하고있다 :mgwt 사용자 정의 스타일
: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.