@Override public void showEmptyState(EmptyState emptyState) { indexingInfo.className = "blank-slate-pf"; indexingInfo.innerHTML = emptyState.getElement().getOuterHTML(); }
private void showEmptyState() { indexingInfo.setClassName("blank-slate-pf"); indexingInfo.getStyle() .setProperty("height", "100%"); indexingInfo.getStyle() .setProperty("width", "100%"); indexingInfo.getStyle() .setProperty("visibility", "visible"); indexingInfo.setInnerHTML(emptyState.getElement().getOuterHTML()); }
@JsOverlay public static CustomGroupItem createAnchor(final String text, final IconType iconType, final Command command) { final CustomGroupItem anchor = (CustomGroupItem) Window.getDocument().createElement("a"); anchor.setClassName(Styles.LIST_GROUP_ITEM); if (iconType != null) { final HTMLElement icon = Window.getDocument().createElement("i"); icon.getClassList().add("fa"); icon.getClassList().add(iconType.getCssName()); anchor.setInnerHTML(icon.getOuterHTML() + " " + text); } else { anchor.setTextContent(checkNotEmpty("text", text)); } anchor.setHref("#"); //can't use lambda here; GWT limitation (bug!)! anchor.setOnclick(new EventListener() { @Override public void call(final Event event) { command.execute(); } }); return anchor; }
@JsOverlay public static CustomGroupItem createAnchor(final String text, final IconType iconType, final Command command) { final CustomGroupItem anchor = (CustomGroupItem) Window.getDocument().createElement("a"); anchor.setClassName(Styles.LIST_GROUP_ITEM); if (iconType != null) { final HTMLElement icon = Window.getDocument().createElement("i"); icon.getClassList().add("fa"); icon.getClassList().add(iconType.getCssName()); anchor.setInnerHTML(icon.getOuterHTML() + " " + text); } else { anchor.setTextContent(checkNotEmpty("text", text)); } anchor.setHref("#"); //can't use lambda here; GWT limitation (bug!)! anchor.setOnclick(new EventListener() { @Override public void call(final Event event) { command.execute(); } }); return anchor; }