JIDE 3.5.15

com.jidesoft.rss
Class FeedReader

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.jidesoft.rss.FeedReader
All Implemented Interfaces:
FeedEventListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class FeedReader
extends JPanel
implements FeedEventListener

The main component for FeedReader.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static String EVENT_LOGGER_NAME
          The logger name for the logger used by FeedReader to log FeedEvents.
protected  EventListenerList listenerList
          A list of event listeners for this component.
static String LOGGER_NAME
          The logger name for the logger used by FeedReader.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
FeedReader()
          Creates a FeedReader using the default FeedDatabasePersistenceLayer.
FeedReader(PersistenceManagerIF layer, FeedPreference preference, boolean allowGroup, String localFolder, String[] defaultChannels)
           
FeedReader(PersistenceManagerIF layer, FeedPreference preference, boolean allowGroup, String localFolder, String[] defaultChannels, String defaultSelectedChannel)
           
FeedReader(String localFolder)
           
FeedReader(String[] defaultChannels)
          Creates a FeedReader using the default FeedDatabasePersistenceLayer with an array of default channels.
FeedReader(String[] defaultChannels, boolean allowGroup)
           
FeedReader(String[] defaultChannels, String defaultSelectedChannel)
           
FeedReader(String[] defaultChannels, String localFolder, boolean allowGroup)
           
FeedReader(String localFolder, String[] defaultChannels)
           
FeedReader(String localFolder, String[] defaultChannels, String defaultSelectedChannel)
           
 
Method Summary
 void addChannel(String url)
           
 void addChannelGroup(String groupName)
           
 void addFeedEventListener(FeedEventListener eventListener)
          Adds FeedEventListener to listen to FeedEvent.
protected  void clearHtmlBrowser()
          Clears the html browser.
 void clearSelectedChannelHistory()
           
protected  JPopupMenu createChannelPopupMenu()
          Creates the popup menu when user right clicks on a channel.
protected  JTree createChannelTree(TreeModel model)
          Creates a JTree for the channel tree.
protected  Component createEditorLinkLabel()
          Creates the link label appears below the html browser.
protected  Component createEditorTitleLabel()
          Creates the title label appears above the html browser.
protected  FeedPreference createFeedPreference()
          Creates the FeedPreference.
protected  Component createHtmlBrowser()
          Creates the html browser.
protected  JPopupMenu createItemPopupMenu()
          Creates the popup menu when user right clicks on a feed item.
protected  JComponent createScrollPaneForHtmlBrowser(Component browser)
           
protected  AbstractButton createToolBarButton(AbstractAction action)
          Creates the button that will be used on the toolbar.
protected  JComponent createToolBarComponent()
          Creates the tool bar component.
protected  void customizeChannelTree(JTree tree)
          Customizes the tree used for the channels.
protected  void displayHtmlBrowser(String content, ItemIF item)
          Displays the content in the html browser.
 void dispose()
          Dispose the component especially the persistence layer.
 void enableChannelActionMenu()
           
 void enableDefaultActionMenu()
           
 void enableGroupActionMenu()
           
 void eventHappened(FeedEvent e)
          Indicates a FeedEvent happened.
 void fireChannelEvent(int id, ChannelIF channel)
          Fires channel event.
 void fireChannelItemEvent(int id, ItemIF item)
          Fires a feed event that the item read status changed.
 void fireChannelMovedEvent(ChannelIF channel, ChannelGroupIF channelGroup)
          Fires CHANNEL_MOVED event.
 void fireFeedEvent(FeedEvent event)
          Fires a generic feed event.
 void fireGroupEvent(int id, ChannelGroupIF group)
          Fires channel event.
 void firePreferenceChangedEvent(FeedPreference preference)
          Fires a feed event that the preference is changed.
 void fireStatusChangedEvent(String message)
          Fires status changed event.
 ImageIcon getChannelIcon(ChannelIF channel)
           
 JPopupMenu getChannelPopupMenu()
          Gets the popup menu for the channel.
 String[] getDefaultChannels()
          Gets the default channels.
 String getDefaultSelectedChannel()
          Gets the default channel that is selected when FeedReader created.
 Component getEditor()
           
 Component getEditorLinkLabel()
           
 Component getEditorTitleLabel()
           
 FeedEventListener[] getFeedEventListeners()
          Gets the registered FeedEventListeners.
 PersistenceManagerIF getFeedPersistenceManager()
          Gets the FeedPersistenceLayer.
 FeedPreference getFeedPreference()
           
 JTable getFeedTable()
          Gets the table that contains the feeds from a channel.
 JTree getFeedTree()
          Gets the tree containing the channels.
 JPopupMenu getGroupPopupMenu()
           
 Component getHtmlBrowser()
           
protected  ImageIcon getImageIcon(String name)
          Gets the image icon.
 JPopupMenu getItemPopupMenu()
          Gets the popup menu for the feed item.
static Logger getLogger()
          Gets the logger used by FeedReader to log the error and warning message.
 int getMaxCacheItems()
           
 ResourceBundle getResourceBundle()
          Gets the resource bundle used by this component.
protected  String getResourceString(String key)
          Gets the localized string from resource bundle.
 String getTitle()
          Gets the title of the component.
 int getUnReadItemCountForAllChannels()
          Gets the total # of unread items.
 String getUserDataPath()
           
 String getUserIconPath()
           
 void initialize()
           
 boolean isAllowGroup()
           
protected  JComponent layoutComponents(Component toolBar, Component channelPane, Component itemPane, Component browserPane)
          Layout the major panels.
 void loadChannelInTable(ChannelIF channel)
          Reloads the specified channel in the feed table.
 void makeSelectedChannelRead(boolean read)
          Makes the selected channel all items as read or unread.
 void moveChannel(ChannelIF channel, ChannelGroupIF destGroup)
          Moves the channel to another group.
 void moveSelectedChannel(ChannelGroupIF destGroup)
          Moves the selected channel to another group.
 void openChannelInBrowser()
          Opens the channel in external web browser.
 void openInBrowser(String url)
          Opens the URL in the web browser configured in the FeedPreference.
 void openItemInBrowser()
          Opens the feed item in external web browser.
 void openSelectedChannel()
          Opens the selected channel.
 void openSelectedItem()
          Opens the selected feed item in content preview panel.
 void reloadAllChannels()
          Reloads all channels.
 ChannelIF reloadChannel(ChannelIF channel)
          Reloads the channel.
 void reloadSelectedChannel()
          Reloads the selected channel.
 void removeFeedEventListener(FeedEventListener eventListener)
          Removes the FeedEventListener that was added before.
 void removeSelectedChannel()
          Removes the selected channel.
 void removeSelectedGroup()
          Removes the selected group.
 void setFeedPersistenceManager(PersistenceManagerIF layer)
          Sets the FeedPersistenceLayer.
 void setMaxCacheItems(int maxItems)
           
 void setRefreshDelay(int delay)
          Sets the delay in ms between each refresh event.
 void toggleSelectedItemReadStatus()
          Toggles the selected feed item read status.
 void updateSelectedChannel()
          Uses a dialog to edit the channel property.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOGGER_NAME

public static String LOGGER_NAME
The logger name for the logger used by FeedReader.


EVENT_LOGGER_NAME

public static String EVENT_LOGGER_NAME
The logger name for the logger used by FeedReader to log FeedEvents.


listenerList

protected EventListenerList listenerList
A list of event listeners for this component.

Constructor Detail

FeedReader

public FeedReader()
Creates a FeedReader using the default FeedDatabasePersistenceLayer.


FeedReader

public FeedReader(String localFolder)

FeedReader

public FeedReader(String[] defaultChannels)
Creates a FeedReader using the default FeedDatabasePersistenceLayer with an array of default channels.

Parameters:
defaultChannels - the default channels. Those channels will be there when user runs for the first time.

FeedReader

public FeedReader(String[] defaultChannels,
                  String defaultSelectedChannel)
Parameters:
defaultChannels - the default channels. Those channels will be there when user runs for the first time.
defaultSelectedChannel - the default selected channel when FeedReader is created.

FeedReader

public FeedReader(String[] defaultChannels,
                  boolean allowGroup)

FeedReader

public FeedReader(String localFolder,
                  String[] defaultChannels)

FeedReader

public FeedReader(String localFolder,
                  String[] defaultChannels,
                  String defaultSelectedChannel)

FeedReader

public FeedReader(String[] defaultChannels,
                  String localFolder,
                  boolean allowGroup)

FeedReader

public FeedReader(PersistenceManagerIF layer,
                  FeedPreference preference,
                  boolean allowGroup,
                  String localFolder,
                  String[] defaultChannels)

FeedReader

public FeedReader(PersistenceManagerIF layer,
                  FeedPreference preference,
                  boolean allowGroup,
                  String localFolder,
                  String[] defaultChannels,
                  String defaultSelectedChannel)
Method Detail

createFeedPreference

protected FeedPreference createFeedPreference()
Creates the FeedPreference. By default, we will create DefaultFeedPreference which uses java.utils.pref to save the data.

Returns:
FeedPreference.

getTitle

public String getTitle()
Gets the title of the component.

Returns:
the title of the component.

initialize

public void initialize()

layoutComponents

protected JComponent layoutComponents(Component toolBar,
                                      Component channelPane,
                                      Component itemPane,
                                      Component browserPane)
Layout the major panels.

Parameters:
toolBar - the tool bar component
channelPane - the channel list component
itemPane - the item table component
browserPane - the browser component
Returns:
the container contains all the major panels.

dispose

public void dispose()
Dispose the component especially the persistence layer.


getDefaultSelectedChannel

public String getDefaultSelectedChannel()
Gets the default channel that is selected when FeedReader created.

Returns:
the default selected channel.

eventHappened

public void eventHappened(FeedEvent e)
Description copied from interface: FeedEventListener
Indicates a FeedEvent happened.

Specified by:
eventHappened in interface FeedEventListener
Parameters:
e - the FeedEvent.

createEditorLinkLabel

protected Component createEditorLinkLabel()
Creates the link label appears below the html browser. By default, it is actually a JideButton with HYPERLINK_STYLE, not a JLabel.

Returns:
the link label appears below the html browser.

createEditorTitleLabel

protected Component createEditorTitleLabel()
Creates the title label appears above the html browser.

Returns:
the title label appears above the html browser.

createScrollPaneForHtmlBrowser

protected JComponent createScrollPaneForHtmlBrowser(Component browser)

createHtmlBrowser

protected Component createHtmlBrowser()
Creates the html browser. Subclass can override this method to provide your own html browser. If so, you should also override clearHtmlBrowser() and displayHtmlBrowser(String,ItemIF) to clear and display the html browser respectively.

Returns:
the html browser. By default, JEditorPane will be used.

clearHtmlBrowser

protected void clearHtmlBrowser()
Clears the html browser. If you provide your own html browser using createHtmlBrowser(), you should also override this method to clear the content. You can call getEditor(),getEditorTitleLabel(),getEditorLinkLabel() to get the three components which display the content, the title and the link respectively.


getHtmlBrowser

public Component getHtmlBrowser()

displayHtmlBrowser

protected void displayHtmlBrowser(String content,
                                  ItemIF item)
Displays the content in the html browser. If you provide your own html browser using createHtmlBrowser(), you should also override this method to display the content. You can call getEditor(),getEditorTitleLabel(),getEditorLinkLabel() to get the three components which display the content, the title and the link respectively.

Parameters:
content - the html content.
item - the feed item

customizeChannelTree

protected void customizeChannelTree(JTree tree)
Customizes the tree used for the channels.

Parameters:
tree - the channel tree.

createChannelTree

protected JTree createChannelTree(TreeModel model)
Creates a JTree for the channel tree.

Parameters:
model - TreeModel.
Returns:
a JTree

createToolBarComponent

protected JComponent createToolBarComponent()
Creates the tool bar component. By default, it contains five buttons.

Returns:
the tool bar component.

createToolBarButton

protected AbstractButton createToolBarButton(AbstractAction action)
Creates the button that will be used on the toolbar.

Parameters:
action - the action for the button.
Returns:
the button.

createItemPopupMenu

protected JPopupMenu createItemPopupMenu()
Creates the popup menu when user right clicks on a feed item.

Returns:
the popup menu for the feed item.

createChannelPopupMenu

protected JPopupMenu createChannelPopupMenu()
Creates the popup menu when user right clicks on a channel.

Returns:
the popup menu for the channel.

getFeedTree

public JTree getFeedTree()
Gets the tree containing the channels.

Returns:
the tree containing the channels.

getChannelPopupMenu

public JPopupMenu getChannelPopupMenu()
Gets the popup menu for the channel.

Returns:
the popup menu for the channel.

getItemPopupMenu

public JPopupMenu getItemPopupMenu()
Gets the popup menu for the feed item.

Returns:
the popup menu for the feed item.

getFeedTable

public JTable getFeedTable()
Gets the table that contains the feeds from a channel.

Returns:
the table that contains the feeds from a channel.

getEditor

public Component getEditor()

getEditorLinkLabel

public Component getEditorLinkLabel()

getEditorTitleLabel

public Component getEditorTitleLabel()

getImageIcon

protected ImageIcon getImageIcon(String name)
Gets the image icon. All names are defined in FeedIconsFactory. Subclass can override this method to provide your own icons.

Parameters:
name - the icon name.
Returns:
the image icon.

getResourceString

protected String getResourceString(String key)
Gets the localized string from resource bundle. Subclass can override it to provide its own string. Available keys are defined in dashboard.properties.

Parameters:
key - the resource key.
Returns:
the localized string.

getResourceBundle

public ResourceBundle getResourceBundle()
Gets the resource bundle used by this component.

Returns:
the resource bundle.

setFeedPersistenceManager

public void setFeedPersistenceManager(PersistenceManagerIF layer)
Sets the FeedPersistenceLayer.

Parameters:
layer - the FeedPersistenceLayer.

getFeedPersistenceManager

public PersistenceManagerIF getFeedPersistenceManager()
Gets the FeedPersistenceLayer.

Returns:
the FeedPersistenceLayer.

addFeedEventListener

public void addFeedEventListener(FeedEventListener eventListener)
Adds FeedEventListener to listen to FeedEvent.

Parameters:
eventListener - the FeedEventListener to be added.

removeFeedEventListener

public void removeFeedEventListener(FeedEventListener eventListener)
Removes the FeedEventListener that was added before.

Parameters:
eventListener - the FeedEventListener.

getFeedEventListeners

public FeedEventListener[] getFeedEventListeners()
Gets the registered FeedEventListeners.

Returns:
an array of FeedEventListeners.

fireStatusChangedEvent

public void fireStatusChangedEvent(String message)
Fires status changed event. The event id must be STATUS_CHANGED which it is set internally.

Parameters:
message - the message.

fireChannelEvent

public void fireChannelEvent(int id,
                             ChannelIF channel)
Fires channel event. The event id could be CHANNEL_ADDED, CHANNEL_REMOVED, CHANNEL_CHANGED, CHANNEL_CLEARED or CHANNEL_RELOADED.

Parameters:
id - the event id.
channel - the channel

fireChannelMovedEvent

public void fireChannelMovedEvent(ChannelIF channel,
                                  ChannelGroupIF channelGroup)
Fires CHANNEL_MOVED event.

Parameters:
channel - the channel is moved
channelGroup - the group where the channel is moved.

fireGroupEvent

public void fireGroupEvent(int id,
                           ChannelGroupIF group)
Fires channel event. The event id could be GROUP_ADDED, GROUP_REMOVED, and GROUP_CHANGED.

Parameters:
id - the event id.
group - the group

firePreferenceChangedEvent

public void firePreferenceChangedEvent(FeedPreference preference)
Fires a feed event that the preference is changed. The event id must be PREFERENCE_CHANGED which it is set internally.

Parameters:
preference - the FeedPreference.

fireChannelItemEvent

public void fireChannelItemEvent(int id,
                                 ItemIF item)
Fires a feed event that the item read status changed. The event is must be ITEM_CHANGED. If the item parameter is null, it means all items are affected.

Parameters:
id - the vent id.
item - the feed item.

fireFeedEvent

public void fireFeedEvent(FeedEvent event)
Fires a generic feed event.

Parameters:
event - the feed event.

makeSelectedChannelRead

public void makeSelectedChannelRead(boolean read)
Makes the selected channel all items as read or unread.

Parameters:
read - true to make all items read. False to make unread.

toggleSelectedItemReadStatus

public void toggleSelectedItemReadStatus()
Toggles the selected feed item read status.


openItemInBrowser

public void openItemInBrowser()
Opens the feed item in external web browser.


openInBrowser

public void openInBrowser(String url)
Opens the URL in the web browser configured in the FeedPreference.

Parameters:
url - the URL.

openChannelInBrowser

public void openChannelInBrowser()
Opens the channel in external web browser.


removeSelectedChannel

public void removeSelectedChannel()
Removes the selected channel.


openSelectedChannel

public void openSelectedChannel()
Opens the selected channel.


openSelectedItem

public void openSelectedItem()
Opens the selected feed item in content preview panel.


clearSelectedChannelHistory

public void clearSelectedChannelHistory()

reloadSelectedChannel

public void reloadSelectedChannel()
Reloads the selected channel.


reloadChannel

public ChannelIF reloadChannel(ChannelIF channel)
Reloads the channel. A new ChannelIF will be created after reloading. So this method will return the new instance for you to use.

Parameters:
channel - the channel to be reloaded
Returns:
the new channel.

addChannelGroup

public void addChannelGroup(String groupName)

loadChannelInTable

public void loadChannelInTable(ChannelIF channel)
Reloads the specified channel in the feed table.

Parameters:
channel - the channel to be reloaded.

updateSelectedChannel

public void updateSelectedChannel()
Uses a dialog to edit the channel property.


removeSelectedGroup

public void removeSelectedGroup()
Removes the selected group.


moveSelectedChannel

public void moveSelectedChannel(ChannelGroupIF destGroup)
Moves the selected channel to another group.

Parameters:
destGroup - the destination group.

moveChannel

public void moveChannel(ChannelIF channel,
                        ChannelGroupIF destGroup)
Moves the channel to another group.

Parameters:
channel - the channel to be moved.
destGroup - the destination channel group.

setRefreshDelay

public void setRefreshDelay(int delay)
Sets the delay in ms between each refresh event.

Parameters:
delay - the delay in ms.

reloadAllChannels

public void reloadAllChannels()
Reloads all channels.


getUnReadItemCountForAllChannels

public int getUnReadItemCountForAllChannels()
Gets the total # of unread items.

Returns:
the total # of unread items from all channels.

getDefaultChannels

public String[] getDefaultChannels()
Gets the default channels. Default channels will appear when user uses this feed reader for the first time.

Returns:
the default channels.

getLogger

public static Logger getLogger()
Gets the logger used by FeedReader to log the error and warning message.

Returns:
the logger used by FeedReader.

getFeedPreference

public FeedPreference getFeedPreference()

isAllowGroup

public boolean isAllowGroup()

getUserDataPath

public String getUserDataPath()

getUserIconPath

public String getUserIconPath()

enableGroupActionMenu

public void enableGroupActionMenu()

enableChannelActionMenu

public void enableChannelActionMenu()

enableDefaultActionMenu

public void enableDefaultActionMenu()

getGroupPopupMenu

public JPopupMenu getGroupPopupMenu()

getChannelIcon

public ImageIcon getChannelIcon(ChannelIF channel)

addChannel

public void addChannel(String url)

setMaxCacheItems

public void setMaxCacheItems(int maxItems)

getMaxCacheItems

public int getMaxCacheItems()

JIDE 3.5.15