org.entityfs.event
Class EntityRenamedEvent
java.lang.Object
org.entityfs.event.AbstractEntityEvent<EntityRenamedEvent>
org.entityfs.event.EntityRenamedEvent
- All Implemented Interfaces:
- EntityEvent<EntityRenamedEvent>
public final class EntityRenamedEvent
- extends AbstractEntityEvent<EntityRenamedEvent>
This event is sent when an entity or entity view has been renamed.
- Since:
- 1.0
- Author:
- Karl Gustafsson
EntityRenamedEvent
public EntityRenamedEvent(EntityView sender,
String oldName)
copy
public EntityRenamedEvent 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.
getOldName
public String getOldName()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object