|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.events.SelectionAdapter
net.sourceforge.rssowl.controller.sort.SortingSelectionAdapter
SelectionAdapter implementing widgetSelected(...) to sort the table when a header is clicked and update it.
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 |
private boolean authorAscending
private boolean categoryAscending
private boolean newsfeedAscending
private Vector newsItemInfos
private Vector newsItemOrder
private Hashtable newsItems
private boolean performSearch
private boolean publisherAscending
private boolean pudDateAscending
private boolean statusAscending
private org.eclipse.swt.widgets.Table table
private boolean titleAscending
Constructor Detail |
public SortingSelectionAdapter(org.eclipse.swt.widgets.Table table, Hashtable newsItems, Vector newsItemOrder, Vector newsItemInfos, boolean performSearch)
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 |
public void widgetSelected(org.eclipse.swt.events.SelectionEvent se)
se
- the SelectionEventpublic void widgetSelected(org.eclipse.swt.widgets.TableColumn tc)
tc
- The selected TableColumn
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |