public String setClientDataAttribute(String name, String value) { String old = setClientAttribute("data-" + name, value); if (old != null) invalidate(); return old; }
public void invalidate() { if (!invalidateParent()) super.invalidate(); else if (getParent() != null) getParent().invalidate(); }
public void setMold(String mold) { if (mold != null && (DEFAULT.equals(mold) || mold.length() == 0)) mold = null; if (!Objects.equals(_auxinf != null ? _auxinf.mold : DEFAULT, mold)) { if (!_def.hasMold(mold != null ? mold : DEFAULT)) throw new UiException("Unknown mold: " + mold + "; allowed: " + _def.getMoldNames()); final String oldtype = getWidgetClass(); initAuxInfo().mold = mold; if (Objects.equals(oldtype, getWidgetClass())) smartUpdate("mold", getMold()); else invalidate(); } }