net.sourceforge.rssowl.model
Class TableData

java.lang.Object
  extended bynet.sourceforge.rssowl.model.TableData

public class TableData
extends Object

Model class to store Data in a Table. All columns and sorters of the Table are stored in two Hashtables.

Version:
1.1.3
Author:
Benjamin Pasero

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

columnSorter

private Hashtable columnSorter

tableColumns

private Hashtable tableColumns
Constructor Detail

TableData

private TableData()
Private constructor which is used by the factory methods.

Method Detail

createTableData

public static TableData createTableData()
Create a new TableData to store columns and sorters.

Returns:
TableData An instance of TableData

addColumn

public void addColumn(org.eclipse.swt.widgets.TableColumn column,
                      String key)
Add a table column to the list of table columns

Parameters:
column - The table column to add
key - The unique name of the table column

addColumnSorter

public void addColumnSorter(SortingSelectionAdapter sorter,
                            String key)
Add a sorter to the list of sorters

Parameters:
sorter - The sorter to add
key - The unique name of the sorter

getColumn

public org.eclipse.swt.widgets.TableColumn getColumn(String key)
Get a table column from the list of columns

Parameters:
key - The unique key of the table column
Returns:
TableColumn The table column

getColumnSorter

public SortingSelectionAdapter getColumnSorter(String key)
Get a sorter from the list of sorters

Parameters:
key - The unique key of the sorter
Returns:
SortingSelectionAdapter The sorter

hasColumnSorter

public boolean hasColumnSorter(Object key)
Check if this model contains the desired sorter

Parameters:
key - The unique name of the sorter
Returns:
boolean TRUE if the model contains the desired sorter


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo