net.sourceforge.java.feednread.frontend.components.newstable
Class NewsFeedTableViewerUnreadFilter
java.lang.Object
org.eclipse.jface.viewers.ViewerFilter
net.sourceforge.java.feednread.frontend.components.newstable.NewsFeedTableViewerUnreadFilter
- public class NewsFeedTableViewerUnreadFilter
- extends ViewerFilter
Selects all unread NewsFeedEntry objects, i.e. filters out all
read NewsFeedEntry objects.
- Author:
- Sebastian Machhausen
|
Method Summary |
boolean |
select(Viewer viewer,
Object parentElement,
Object element)
Decides whether or not the element in the
parentElement structure displayed in the specified
Viewer has to be selected.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NewsFeedTableViewerUnreadFilter
public NewsFeedTableViewerUnreadFilter()
select
public boolean select(Viewer viewer,
Object parentElement,
Object element)
Decides whether or not the element in the
parentElement structure displayed in the specified
Viewer has to be selected.
The selection is based on the read status of the
NewsFeedEntry element. An unread news
element is selected whereas a read news
element is rejected.
- Parameters:
viewer - the Viewer for which selection is doneparentElement - the parent elementelement - the element to potentially select
- Returns:
true if the specified element
was selected; false it was rejected