org.entityfs.event
Class EntityDeletedEvent

java.lang.Object
  extended by org.entityfs.event.AbstractEntityEvent<EntityDeletedEvent>
      extended by org.entityfs.event.EntityDeletedEvent
All Implemented Interfaces:
EntityEvent<EntityDeletedEvent>

public final class EntityDeletedEvent
extends AbstractEntityEvent<EntityDeletedEvent>

This event is sent by an entity or an entity view when the viewed entity has been deleted. The sender entity is not valid, but some methods can still be called on it (such as Named.getName()).

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
EntityDeletedEvent(EntityView sender)
           
 
Method Summary
 EntityDeletedEvent copy(EntityView sender)
          Copy this event, but set the given entity view as sender.
 boolean equals(Object o)
           
 int hashCode()
           
 
Methods inherited from class org.entityfs.event.AbstractEntityEvent
getSender, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityDeletedEvent

public EntityDeletedEvent(EntityView sender)
Method Detail

copy

public EntityDeletedEvent copy(EntityView sender)
Description copied from interface: EntityEvent
Copy this event, but set the given entity view as sender. This is used by views to send events to their listeners.

Parameters:
sender - The entity view to set as sender.
Returns:
An EntityEvent of the same type, but with a new sender.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object