public final void setOwner(Component comp) { if (_owner != null) throw new IllegalStateException("owner can be set only once"); _owner = comp; if (_owner instanceof Includer) ((Includer) _owner).setChildPage(this); }
/** Resets the child page of the owner, if any. */ /*package*/ static void resetOwner() { final Execution exec = Executions.getCurrent(); if (exec != null) { final Component comp = ((ExecutionCtrl) exec).getVisualizer().getOwner(); if (comp instanceof Includer) ((Includer) comp).setChildPage(null); } }