1

ここに示すようにカスタムスタイリングを使用しようとしています(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.
4

1 に答える 1

3

これは、Javaインターフェイスで宣言されていないcssファイルにcssクラスが存在する壊れたテーマを使用しているようです。

mgwtスタイリングを開始したい場合は、テーマベースプロジェクトのクローンを作成し、そこから開始できます。

https://code.google.com/p/mgwt/source/checkout?repo=themebase

于 2013-03-24T21:09:30.377 に答える