2017-04-22 9 views

答えて

0

ない最良の方法が、それは動作します:

<b:PanelBody ui:field="test"> 
    <b:Button ui:field="buttonTest"> 
    s 
    </b:Button> 
    <b:Image type="THUMBNAIL" url="https://cdn2.iconfinder.com/data/icons/drf/PNG/color.png" ui:field="img1"/> 
    <b:Image type="THUMBNAIL" url="http://codeissue.com/images/check_icon_small.png" ui:field="img2"/> 
</b:PanelBody> 

実行時間内:

decleration: 
    @UiField Button buttonTest; 
    @UiField Image img1; 
    @UiField Image img2; 
    @UiField PanelBody test; 

In the constructor: 
    test.setStyleName("fa-stack fa-lg"); 
    img1.setStyleName("fa fa-stack-2x"); 
    buttonTest.setStyleName("fa fa-stack-2x"); 
    img2.setStyleName("fa fa-stack-1x"); 

結果: result

関連する問題