private Page getPage() { return Components.getCurrentPage(_comp); } }
private boolean containsVariable(Object x, String fdname) { //#feature 2770471 GenericAutowireComposer shall support wiring ZScript varible if (x instanceof Page) { final Page page = (Page) x; return (!_ignoreZScript && page.getZScriptVariable(fdname) != null) || page.hasAttributeOrFellow(fdname, true) || (!_ignoreXel && page.getXelVariable(null, null, fdname, true) != null); } else { final Component cmp = (Component) x; final Page page = Components.getCurrentPage(cmp); return (!_ignoreZScript && page != null && page.getZScriptVariable(cmp, fdname) != null) || cmp.hasAttributeOrFellow(fdname, true) || (!_ignoreXel && page != null && page.getXelVariable(null, null, fdname, true) != null); } }
page = getCurrentPage(comp);
private Object getVariable(Object x, String fdname) { //#feature 2770471 GenericAutowireComposer shall support wiring ZScript varible if (x instanceof Page) { final Page page = (Page) x; Object arg = _ignoreZScript ? null : page.getZScriptVariable(fdname); if (arg == null) { arg = page.getAttributeOrFellow(fdname, true); if (!_ignoreXel && arg == null) arg = page.getXelVariable(null, null, fdname, true); } return arg; } else { final Component cmp = (Component) x; final Page page = Components.getCurrentPage(cmp); Object arg = !_ignoreZScript && page != null ? page.getZScriptVariable(cmp, fdname) : null; if (arg == null) { arg = cmp.getAttributeOrFellow(fdname, true); if (!_ignoreXel && arg == null && page != null) arg = page.getXelVariable(null, null, fdname, true); } return arg; } }
return Components.getCurrentPage((Component) self); if (self instanceof Page) return self; if (comp instanceof ShadowElement) { final Component host = ((ShadowElement) comp).getShadowHost(); page = Components.getCurrentPage(host); if (page != null) { final Object o = page.getZScriptVariable(host, name); page = Components.getCurrentPage(comp); if (page != null) { final Object o = page.getZScriptVariable(comp, name);