public void beforeParentChanged(Component parent) { if (parent != null && !(parent instanceof Imagemap)) throw new UiException("Area's parent must be imagemap, not " + parent); super.beforeParentChanged(parent); }
public void beforeParentChanged(Component parent) { if (parent != null) { if (!(parent instanceof ShadowElement)) throw new UiException("Unsupported parent for shadow element: " + parent); if (_host != null) { throw new UiException("Unsupported parent for shadow root: " + this); } } super.beforeParentChanged(parent); }
beforeParentChanged(parent); triggerBeforeHostParentChanged(parent);