|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.model.TableData
Model class to store Data in a Table. All columns and sorters of the Table are stored in two Hashtables.
Field Summary | |
private Hashtable |
columnSorter
|
private Hashtable |
tableColumns
|
Constructor Summary | |
private |
TableData()
Private constructor which is used by the factory methods. |
Method Summary | |
void |
addColumn(org.eclipse.swt.widgets.TableColumn column,
String key)
Add a table column to the list of table columns |
void |
addColumnSorter(SortingSelectionAdapter sorter,
String key)
Add a sorter to the list of sorters |
static TableData |
createTableData()
Create a new TableData to store columns and sorters. |
org.eclipse.swt.widgets.TableColumn |
getColumn(String key)
Get a table column from the list of columns |
SortingSelectionAdapter |
getColumnSorter(String key)
Get a sorter from the list of sorters |
boolean |
hasColumnSorter(Object key)
Check if this model contains the desired sorter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Hashtable columnSorter
private Hashtable tableColumns
Constructor Detail |
private TableData()
Method Detail |
public static TableData createTableData()
public void addColumn(org.eclipse.swt.widgets.TableColumn column, String key)
column
- The table column to addkey
- The unique name of the table columnpublic void addColumnSorter(SortingSelectionAdapter sorter, String key)
sorter
- The sorter to addkey
- The unique name of the sorterpublic org.eclipse.swt.widgets.TableColumn getColumn(String key)
key
- The unique key of the table column
public SortingSelectionAdapter getColumnSorter(String key)
key
- The unique key of the sorter
public boolean hasColumnSorter(Object key)
key
- The unique name of the sorter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |