2013-03-24 2 views
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. 

답변

3

이것은 CSS에서 선언되지 않은 CSS 파일에 CSS 클래스가있는 깨진 테마를 사용하고있는 것처럼 보입니다. 자바 인터페이스. 당신이 mgwt 스타일을 시작하려면

당신은 쉽게 themebase 프로젝트를 복제하고 거기에서 시작할 수 있습니다

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

관련 문제