Interface EntityAddListener

  • All Known Implementing Classes:
    EntityChangeAdapter, EntityListEventAdapter

    public interface EntityAddListener
    A listener on an Entity which will be called before the Entity is added.
    Author:
    IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
    • Method Detail

      • onEntityAdd

        void onEntityAdd​(Entity parent,
                         Entity newEntity)
                  throws EntityAddException
        Called before the Entity is added. The listener should do the appropriate work and should throw an EntityAddException if there is any reason that prevents the addition. If no exception is thrown, the entity will be added to the parent.
        Parameters:
        parent - the parent.
        newEntity - the new entity to be added.
        Throws:
        EntityAddException - if there is any reason that prevents the addition.