Exemplo n.º 1
0
  @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();
  }
Exemplo n.º 2
0
 @Override
 public void call(final IEntity pEntity) {
   pEntity.setParent(null);
   pEntity.onDetached();
 }