fable.gui
Class StatusBar

java.lang.Object
  extended by fable.gui.StatusBar
All Implemented Interfaces:
FableListener, ArticleReadListener, CensorshipChangedListener, FeedDeletedListener, FeedSelectedListener, FolderDeletedListener, FolderSelectedListener, java.util.EventListener

public class StatusBar
extends java.lang.Object
implements FeedDeletedListener, FeedSelectedListener, FolderSelectedListener, FolderDeletedListener, CensorshipChangedListener, ArticleReadListener

This class is for status bar, which is at the very bottom. This class consists some sub-components in composite. This class also implements several listeners, to get message from main GUI.

Author:
Yongjin Kim
See Also:
FableGUI, FableManager

Method Summary
 void articleRead(ArticleReadEvent are)
          If articles read, that is, a certain article is selected in feed view, the status bar will catch this selection and then notify the user that this article is being selected currently.
 void censorshipChanged(CensorshipChangedEvent cce)
          If censorship changed, the status bar will catch this change, and then notify the user the current status.
 void feedDeleted(FeedDeletedEvent fde)
          If a certain feed is deleted, then the deleted feed informatino will appear by the status bar.
 void feedSelected(FeedSelectedEvent fse)
          If a certain feed is selected, then this event will let the status bar knows which one is being selected now.
 void folderDeleted(FolderDeletedEvent fde)
          If a certain category(folder) is deleted, then the deleted feed informatino will appear by the status bar.
 void folderSelected(FolderSelectedEvent fse)
          If a certain category(folder) is selected, then this event will let the status bar knows which one is being selected now.
 void stopClock()
          Stop the clock in status bar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stopClock

public void stopClock()
Stop the clock in status bar.

Effects:
make status clock to stop.

feedSelected

public void feedSelected(FeedSelectedEvent fse)
If a certain feed is selected, then this event will let the status bar knows which one is being selected now. The status bar will provide this information to the user.

Specified by:
feedSelected in interface FeedSelectedListener
Parameters:
fse -
Effects:
change the status bar according to the event.

feedDeleted

public void feedDeleted(FeedDeletedEvent fde)
If a certain feed is deleted, then the deleted feed informatino will appear by the status bar.

Specified by:
feedDeleted in interface FeedDeletedListener
Parameters:
fde -
Effects:
change the status bar when a feed is deleted.

folderSelected

public void folderSelected(FolderSelectedEvent fse)
If a certain category(folder) is selected, then this event will let the status bar knows which one is being selected now. The status bar will provide this information to the user.

Specified by:
folderSelected in interface FolderSelectedListener
Parameters:
fse -
Effects:
change the status bar when a category(folder) is selected.

folderDeleted

public void folderDeleted(FolderDeletedEvent fde)
If a certain category(folder) is deleted, then the deleted feed informatino will appear by the status bar.

Specified by:
folderDeleted in interface FolderDeletedListener
Parameters:
fde - an event object contains relevant information about the event.
Effects:
change the status bar when a category(folder) is deleted.

articleRead

public void articleRead(ArticleReadEvent are)
If articles read, that is, a certain article is selected in feed view, the status bar will catch this selection and then notify the user that this article is being selected currently.

Specified by:
articleRead in interface ArticleReadListener
Parameters:
are -
Effects:
change the status bar when an articles is selected.

censorshipChanged

public void censorshipChanged(CensorshipChangedEvent cce)
If censorship changed, the status bar will catch this change, and then notify the user the current status.

Specified by:
censorshipChanged in interface CensorshipChangedListener
Parameters:
cce -
Effects:
change the status bar when a censorship setting is changed.