net.sourceforge.java.feednread.frontend.components.newstable
Class NewsFeedTable.SelectionHandler

java.lang.Object
  extended bynet.sourceforge.java.feednread.frontend.components.newstable.NewsFeedTable.SelectionHandler
All Implemented Interfaces:
ISelectionChangedListener
Enclosing class:
NewsFeedTable

private class NewsFeedTable.SelectionHandler
extends Object
implements ISelectionChangedListener

Event handler that attends to set the read status of a news depending on user selections.

Author:
Sebastian Machhausen

Field Summary
private  NewsFeedEntry lastTrackedEntry
           The NewsFeedEntry last tracked by the end-user
private  Runnable statusChangedRunnable
           The Runnable used to notify registered listeners of status changes
 
Constructor Summary
NewsFeedTable.SelectionHandler()
           Creates a new SelectionHandler.
 
Method Summary
 void selectionChanged(SelectionChangedEvent event)
           Handles the SelectionChangedEvent being triggered if a NewsFeedEntry has been selected.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

statusChangedRunnable

private Runnable statusChangedRunnable

The Runnable used to notify registered listeners of status changes


lastTrackedEntry

private NewsFeedEntry lastTrackedEntry

The NewsFeedEntry last tracked by the end-user

Constructor Detail

NewsFeedTable.SelectionHandler

public NewsFeedTable.SelectionHandler()

Creates a new SelectionHandler.

Method Detail

selectionChanged

public void selectionChanged(SelectionChangedEvent event)

Handles the SelectionChangedEvent being triggered if a NewsFeedEntry has been selected. The selected NewsFeedEntry gets marked as read. The default status is unselected which means unread.

Specified by:
selectionChanged in interface ISelectionChangedListener
Parameters:
event - the SelectionChangeEvent triggered