@Override public void attachChild(final IEntity pEntity) throws IllegalStateException { this.assertEntityHasNoParent(pEntity); if (this.mChildren == null) { this.allocateChildren(); } this.mChildren.add(pEntity); pEntity.setParent(this); pEntity.onAttached(); }
@Override public void call(final IEntity pEntity) { pEntity.setParent(null); pEntity.onDetached(); }