public Component getFellowIfAny(String compId) { if (this instanceof IdSpace) return _auxinf.spaceInfo.fellows.get(compId); final IdSpace idspace = getSpaceOwner(); return idspace == null ? null : idspace.getFellowIfAny(compId); }
public Component getFellowIfAny(String compId, boolean recurse) { if (!recurse) return getFellowIfAny(compId); for (IdSpace idspace = getSpaceOwner(); idspace != null;) { Component f = idspace.getFellowIfAny(compId); if (f != null) return f; idspace = Components.getParentIdSpace(idspace); } return null; }
} else if (space.getFellowIfAny(id) == comp) { if (sb.length() > 0) sb.append('/');
return null; final Component c = is.getFellowIfAny(nm); if (k < 0 || c == null) return c;
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; }