public Object getAttribute(String name, boolean recurse) { Object val = getAttribute(name); if (val != null || !recurse || hasAttribute(name)) return val; if (_parent != null) return _parent.getAttribute(name, true); if (_page != null) return _page.getAttribute(name, true); return null; }
public Object getAttributeOrFellow(String name, boolean recurse) { Object val = getAttribute(name); if (val != null || hasAttribute(name)) return val; if (this instanceof IdSpace) { //fellow last val = getFellowIfAny(name); if (val != null) return val; } if (recurse) { if (_parent != null) return _parent.getAttributeOrFellow(name, true); if (_page != null) return _page.getAttributeOrFellow(name, true); if (this instanceof ShadowElement) { Component shadowHost = ((ShadowElement) this).getShadowHost(); if (shadowHost != null) return shadowHost.getAttributeOrFellow(name, true); } if (!(this instanceof IdSpace)) return getVirtualIdSpace().getFellowIfAny(name); } return null; }
Object o = getAttribute("org.zkoss.zk.ui.updateByClient"); if (!(o instanceof Boolean && ((Boolean) o).booleanValue()) && !(o instanceof String && "true".equals(o))) { log.warn("Ignore update of " + name + "=" + value + " from client for " + this.getClass());
if (this instanceof IdSpace && this.getAttribute("z$is") == null) // Used by Window and others to minimize number of bytes renderer.render("z$is", true); Object o = getAttribute("$composer"); if (o != null) renderer.render("$ZKAUS$", Boolean.TRUE); o = getAttribute(Attributes.CLIENT_ROD); if (o != null) renderer.render("z$rod", (o instanceof Boolean && ((Boolean) o).booleanValue()) || !"false".equals(o));
protected Object getShadowVariable0(Component baseChild, String name, boolean recurse) { try { _variableSeeking = true; Object val = getAttribute(name); if (val != null || hasAttribute(name)) return val;