org.noos.xing.mydoggy.event
Class ContentManagerEvent
java.lang.Object
java.util.EventObject
org.noos.xing.mydoggy.event.ContentManagerEvent
- All Implemented Interfaces:
- Serializable
public class ContentManagerEvent
- extends EventObject
An event which indicates that an action occurred in the content manager.
- Since:
- 1.0.0
- Author:
- Angelo De Caro (angelo.decaro@gmail.com)
- See Also:
- Serialized Form
ContentManagerEvent
public ContentManagerEvent(ContentManager source,
ContentManagerEvent.ActionId actionId,
Content content)
- Constructs a
ContentManagerEvent object with the
specified source content manager, actionId, content.
Creating an invalid event (such as by using ActionId.ADD_CONTENT with a null content)
results in unspecified behavior.
This method throws an
IllegalArgumentException if source
is null.
- Parameters:
source - the content manager where the action has occurred.actionId - the action identifiercontent - the content subject of the action.- See Also:
ContentManager,
ContentManagerEvent.ActionId,
Content
getId
public ContentManagerEvent.ActionId getId()
- Returns the action identifier.
- Returns:
- the action identifier.
getContent
public Content getContent()
- Returns the content subject of the action.
- Returns:
- the content.
toString
public String toString()
- Overrides:
toString in class EventObject
Copyright © 2012. All Rights Reserved.