|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSelectionAdapter
net.sourceforge.rssowl.controller.sort.SortingSelectionAdapter
public class 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 java.util.Vector |
newsItemInfos
Holds the identifiers for the info type |
private java.util.Vector |
newsItemOrder
Holds the current ordering of the RSSNewsItems |
private java.util.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 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(Table table,
java.util.Hashtable newsItems,
java.util.Vector newsItemOrder,
java.util.Vector newsItemInfos,
boolean performSearch)
Creates a new instance of SortingSelectionAdapter. |
|
| Method Summary | |
|---|---|
boolean |
sort(java.lang.String field)
Sort the News using a Sorter that is identified by the given field value. |
void |
widgetSelected(SelectionEvent se)
Handle the sorting corresponding to the header clicked |
void |
widgetSelected(TableColumn tc)
Handle the sorting corresponding to the header clicked |
| 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 java.util.Vector newsItemInfos
private java.util.Vector newsItemOrder
private java.util.Hashtable newsItems
private boolean performSearch
private boolean publisherAscending
private boolean pudDateAscending
private boolean statusAscending
private Table table
private boolean titleAscending
| Constructor Detail |
|---|
public SortingSelectionAdapter(Table table,
java.util.Hashtable newsItems,
java.util.Vector newsItemOrder,
java.util.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 boolean sort(java.lang.String field)
field - The identifier of the Sorter to use.
public void widgetSelected(SelectionEvent se)
se - the SelectionEventpublic void widgetSelected(TableColumn tc)
tc - The selected TableColumn
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||