예제 #1
0
 /** Changes its inner HTML while it is loading */
 protected void setLoading() {
   Icon icon = new Icon(IconType.COG);
   icon.addStyleName("icon-spin");
   icon.addStyleName(Resources.INSTANCE.css().iconupdating());
   this.setHTML(
       "<div class=\""
           + Resources.INSTANCE.css().innercomment()
           + "\">"
           + icon.toString()
           + "</div>");
   this.addStyleName(Resources.INSTANCE.css().updating());
 }
예제 #2
0
 /** {@inheritDoc} */
 @Override
 public void setCustomIconStyle(String customIconStyle) {
   icon.addStyleName(customIconStyle);
 }