|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.ocap.hn.content.ContentListEvent
public class ContentListEvent
Event which will be sent to registered ContentListListeners when ContentItems have been added/removed.
Field Summary | |
---|---|
static int |
CONTENT_ADDED
Event ID indicating that content got added to a ContentList |
static int |
CONTENT_REMOVED
Event ID indicating that content got removed from a ContentList |
Constructor Summary | |
---|---|
ContentListEvent(Object source)
Creates a new ContentListEvent with the given object as the source |
|
ContentListEvent(Object source,
ContentItem content,
int evt)
Creates a new ContentListEvent with the given source object, the ContentItem involved and an event ID indicating whether the content got added or removed. |
Method Summary | |
---|---|
ContentItem |
getContent()
Returns the ContentItem involved in this event. |
ContentList |
getContentList()
Returns the ContentList. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CONTENT_ADDED
public static final int CONTENT_REMOVED
Constructor Detail |
---|
public ContentListEvent(Object source)
source
- The source of this event. This must be a ContentList.public ContentListEvent(Object source, ContentItem content, int evt)
source
- The source of this event. This must be a ContentList.content
- the ContentItem involved.evt
- the Event ID, either CONTENT_ADDED or CONTENT_REMOVED.Method Detail |
---|
public ContentItem getContent()
public ContentList getContentList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |