JIDE 3.5.15

com.jidesoft.rss
Class FeedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jidesoft.rss.FeedEvent
All Implemented Interfaces:
Serializable

public class FeedEvent
extends EventObject

Event for FeedReader.

See Also:
Serialized Form

Field Summary
static int CHANNEL_ADDED
          A channel is added.
static int CHANNEL_CHANGED
          A channel's title is changed.
static int CHANNEL_CLEARED
          A channel's history is cleared.
static int CHANNEL_MOVED
          A channel is moved to another group.
static int CHANNEL_RELOADED
          A channel is reloaded.
static int CHANNEL_REMOVED
          A channel is removed.
static int FEED_EVENT_FIRST
          The first event id.
static int GROUP_ADDED
          A group is added.
static int GROUP_CHANGED
          A group's title is changed.
static int GROUP_REMOVED
          A group is removed.
static int ITEM_CHANGED
          An item's read status is changed.
static int PREFERENCE_CHANGED
          The user preference is updated.
static int STATUS_CHANGED
          Status is updated.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FeedEvent(Object source, FeedPreference feedPreference)
          Creates a FeedEvent to notify FeedPreference is changed.
FeedEvent(Object source, int id)
           
FeedEvent(Object source, int id, ChannelGroupIF channelGroup)
          Creates a FeedEvent about a change to the group.
FeedEvent(Object source, int id, ChannelIF channel)
          Creates a FeedEvent about a change to the Channel.
FeedEvent(Object source, int id, ChannelIF channel, ChannelGroupIF channelGroup)
          Creates a FeedEvent about a channel is moved to another channel.
FeedEvent(Object source, int id, ItemIF item)
          Creates a FeedEvent about a change to the item.
FeedEvent(Object source, String eventMsg)
          Creates a FeedEvent to notify a status change.
 
Method Summary
 ChannelIF getChannel()
           
 ChannelGroupIF getChannelGroup()
           
 FeedPreference getFeedPreference()
           
 int getID()
           
 ItemIF getItem()
           
 String getMessage()
           
 String paramString()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FEED_EVENT_FIRST

public static final int FEED_EVENT_FIRST
The first event id.

See Also:
Constant Field Values

CHANNEL_ADDED

public static final int CHANNEL_ADDED
A channel is added. getChannel() will tell you the channel.

See Also:
Constant Field Values

CHANNEL_CHANGED

public static final int CHANNEL_CHANGED
A channel's title is changed. getChannel() will tell you the channel.

See Also:
Constant Field Values

CHANNEL_REMOVED

public static final int CHANNEL_REMOVED
A channel is removed. getChannel() will tell you the channel.

See Also:
Constant Field Values

CHANNEL_MOVED

public static final int CHANNEL_MOVED
A channel is moved to another group. getChannel() will tell you the channel.

See Also:
Constant Field Values

CHANNEL_CLEARED

public static final int CHANNEL_CLEARED
A channel's history is cleared. getChannel() will tell you the channel.

See Also:
Constant Field Values

CHANNEL_RELOADED

public static final int CHANNEL_RELOADED
A channel is reloaded. getChannel() will tell you the channel.

See Also:
Constant Field Values

GROUP_ADDED

public static final int GROUP_ADDED
A group is added. getChannelGroup() will tell you the group.

See Also:
Constant Field Values

GROUP_CHANGED

public static final int GROUP_CHANGED
A group's title is changed. getChannelGroup() will tell you the group.

See Also:
Constant Field Values

GROUP_REMOVED

public static final int GROUP_REMOVED
A group is removed. getChannelGroup() will tell you the group.

See Also:
Constant Field Values

ITEM_CHANGED

public static final int ITEM_CHANGED
An item's read status is changed. getItem() will tell you the item.

See Also:
Constant Field Values

PREFERENCE_CHANGED

public static final int PREFERENCE_CHANGED
The user preference is updated. getFeedPreference() will tell you the current preference.

See Also:
Constant Field Values

STATUS_CHANGED

public static final int STATUS_CHANGED
Status is updated. getMessage() will tell you the message. You can listen to this event to get all status updates so that you can display the message on the status bar if you have one.

See Also:
Constant Field Values
Constructor Detail

FeedEvent

public FeedEvent(Object source,
                 int id)

FeedEvent

public FeedEvent(Object source,
                 int id,
                 ChannelIF channel)
Creates a FeedEvent about a change to the Channel.

Parameters:
source - the source.
id - the event id
channel - the channel that is added/removed/updated etc.

FeedEvent

public FeedEvent(Object source,
                 int id,
                 ChannelIF channel,
                 ChannelGroupIF channelGroup)
Creates a FeedEvent about a channel is moved to another channel.

Parameters:
source - the source.
id - the event id
channel - the channel that is moved.
channelGroup - the group where the channel is moved to.

FeedEvent

public FeedEvent(Object source,
                 int id,
                 ChannelGroupIF channelGroup)
Creates a FeedEvent about a change to the group.

Parameters:
source - the source.
id - the event id
channelGroup - the group that is added/removed/updated etc.

FeedEvent

public FeedEvent(Object source,
                 String eventMsg)
Creates a FeedEvent to notify a status change. The id is always FeedEvent.STATUS_CHANGED.

Parameters:
source - the source.
eventMsg - the message.

FeedEvent

public FeedEvent(Object source,
                 int id,
                 ItemIF item)
Creates a FeedEvent about a change to the item.

Parameters:
source - the source.
id - the event id
item - the item that is changed.

FeedEvent

public FeedEvent(Object source,
                 FeedPreference feedPreference)
Creates a FeedEvent to notify FeedPreference is changed. The event id is always FeedEvent.PREFERENCE_CHANGED.

Parameters:
source - the source.
feedPreference - the new feed preference.
Method Detail

getMessage

public String getMessage()

getChannel

public ChannelIF getChannel()

getChannelGroup

public ChannelGroupIF getChannelGroup()

getID

public int getID()

getItem

public ItemIF getItem()

getFeedPreference

public FeedPreference getFeedPreference()

paramString

public String paramString()

JIDE 3.5.15