Пример #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();
  }
Пример #2
0
 @Override
 public void call(final IEntity pEntity) {
   pEntity.setParent(null);
   pEntity.onDetached();
 }