/** * If popup specified as a child, set it as the associated popup component. * * @see org.fujion.component.BaseComponent#afterAddChild(org.fujion.component.BaseComponent) */ @Override protected void afterAddChild(BaseComponent child) { super.afterAddChild(child); if (getPage() != null) { setPopup((Popup) child); } }
/** * If popup specified as a child, set it as the associated popup component. * * @see org.fujion.component.BaseComponent#onAttach(org.fujion.component.Page) */ @Override protected void onAttach(Page page) { super.onAttach(page); if (getChildCount() > 0) { setPopup((Popup) getFirstChild()); } }