/** 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()); }
/** {@inheritDoc} */ @Override public void setCustomIconStyle(String customIconStyle) { icon.addStyleName(customIconStyle); }