org.noos.xing.mydoggy.event
Class ContentManagerEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Nested Class Summary
static class ContentManagerEvent.ActionId
          Action Identifier Enum.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContentManagerEvent(ContentManager source, ContentManagerEvent.ActionId actionId, Content content)
          Constructs a ContentManagerEvent object with the specified source content manager, actionId, content.
 
Method Summary
 Content getContent()
          Returns the content subject of the action.
 ContentManagerEvent.ActionId getId()
          Returns the action identifier.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 identifier
content - the content subject of the action.
See Also:
ContentManager, ContentManagerEvent.ActionId, Content
Method Detail

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.