org.noos.xing.mydoggy.event
Class ContentManagerUIEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.noos.xing.mydoggy.event.ContentManagerUIEvent
All Implemented Interfaces:
Serializable

public class ContentManagerUIEvent
extends EventObject

An event which indicates that an action occurred in the content manager.

Since:
1.2.0
Author:
Angelo De Caro (angelo.decaro@gmail.com)
See Also:
Serialized Form

Nested Class Summary
static class ContentManagerUIEvent.ActionId
          Action Identifier Enum.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContentManagerUIEvent(ContentManagerUI source, ContentManagerUIEvent.ActionId actionId, ContentUI content)
          Constructs a ContentManagerEvent object with the specified source content manager, actionId, content.
 
Method Summary
 ContentUI getContentUI()
          Returns the content subject of the action.
 ContentManagerUIEvent.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

ContentManagerUIEvent

public ContentManagerUIEvent(ContentManagerUI source,
                             ContentManagerUIEvent.ActionId actionId,
                             ContentUI 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 occured.
actionId - the action identifier
content - the content subject of the action.
See Also:
ContentManager, ContentManagerEvent.ActionId, Content
Method Detail

getId

public ContentManagerUIEvent.ActionId getId()
Returns the action identifier.

Returns:
the action identifier.

getContentUI

public ContentUI getContentUI()
Returns the content subject of the action.

Returns:
the content.

toString

public String toString()
Overrides:
toString in class EventObject


Copyright © 2012. All Rights Reserved.