net.sourceforge.rssowl.controller.sort
Class SortingSelectionAdapter

java.lang.Object
  extended byorg.eclipse.swt.events.SelectionAdapter
      extended bynet.sourceforge.rssowl.controller.sort.SortingSelectionAdapter
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class SortingSelectionAdapter
extends org.eclipse.swt.events.SelectionAdapter

SelectionAdapter implementing widgetSelected(...) to sort the table when a header is clicked and update it.

Version:
1.1.3
Author:
Ludovic Kim-Xuan Galibert

Field Summary
private  boolean authorAscending
          Holds the flag for ascending order for the author column
private  boolean categoryAscending
          Holds the flag for ascending order for the category column
private  boolean newsfeedAscending
          Holds the flag for ascending order for the newsfeed column
private  Vector newsItemInfos
          Holds the identifiers for the info type
private  Vector newsItemOrder
          Holds the current ordering of the RSSNewsItems
private  Hashtable newsItems
          Holds the Hashtable of RSSNewsItems
private  boolean performSearch
          Holds the flag for performing search
private  boolean publisherAscending
          Holds the flag for ascending order for the publisher column
private  boolean pudDateAscending
          Holds the flag for ascending order for the publication date column
private  boolean statusAscending
          Holds the flag for ascending order for the status column
private  org.eclipse.swt.widgets.Table table
          Holds the table where the RSSNewsItems will be displayed
private  boolean titleAscending
          Holds the flag for ascending order for the title column
 
Constructor Summary
SortingSelectionAdapter(org.eclipse.swt.widgets.Table table, Hashtable newsItems, Vector newsItemOrder, Vector newsItemInfos, boolean performSearch)
          Creates a new instance of SortingSelectionAdapter.
 
Method Summary
 void widgetSelected(org.eclipse.swt.events.SelectionEvent se)
          Handle the sorting corresponding to the header clicked
 void widgetSelected(org.eclipse.swt.widgets.TableColumn tc)
          Handle the sorting corresponding to the header clicked
 
Methods inherited from class org.eclipse.swt.events.SelectionAdapter
widgetDefaultSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authorAscending

private boolean authorAscending
Holds the flag for ascending order for the author column


categoryAscending

private boolean categoryAscending
Holds the flag for ascending order for the category column


newsfeedAscending

private boolean newsfeedAscending
Holds the flag for ascending order for the newsfeed column


newsItemInfos

private Vector newsItemInfos
Holds the identifiers for the info type


newsItemOrder

private Vector newsItemOrder
Holds the current ordering of the RSSNewsItems


newsItems

private Hashtable newsItems
Holds the Hashtable of RSSNewsItems


performSearch

private boolean performSearch
Holds the flag for performing search


publisherAscending

private boolean publisherAscending
Holds the flag for ascending order for the publisher column


pudDateAscending

private boolean pudDateAscending
Holds the flag for ascending order for the publication date column


statusAscending

private boolean statusAscending
Holds the flag for ascending order for the status column


table

private org.eclipse.swt.widgets.Table table
Holds the table where the RSSNewsItems will be displayed


titleAscending

private boolean titleAscending
Holds the flag for ascending order for the title column

Constructor Detail

SortingSelectionAdapter

public SortingSelectionAdapter(org.eclipse.swt.widgets.Table table,
                               Hashtable newsItems,
                               Vector newsItemOrder,
                               Vector newsItemInfos,
                               boolean performSearch)
Creates a new instance of SortingSelectionAdapter.

Parameters:
table - the Table to fill.
newsItems - the Hashtable of RSSNewsItems to be displayed.
newsItemOrder - the ordering of the RSSNewsItems as keys to retrieve the RSSNewsItems from the Hashtable.
newsItemInfos - a vector of identifiers for the type of info.
performSearch - true if a search should be performed, otherwise false.
Method Detail

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent se)
Handle the sorting corresponding to the header clicked

Parameters:
se - the SelectionEvent

widgetSelected

public void widgetSelected(org.eclipse.swt.widgets.TableColumn tc)
Handle the sorting corresponding to the header clicked

Parameters:
tc - The selected TableColumn


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo