net.sourceforge.java.util.gui.jface.viewers
Interface ITableContentProvider

All Superinterfaces:
IContentProvider, IStructuredContentProvider
All Known Implementing Classes:
LanguageTableContentProvider, NewsFeedTableContentProvider, NewsFeedWatchesTreeContentProvider, WatchSettingsTableContentProvider

public interface ITableContentProvider
extends IStructuredContentProvider

Interface to be implemented by IContentProviders to enable generic sorting support for JFace TableViewer instances by the help of the TableViewerSorter class.

Author:
Sebastian Machhausen
See Also:
TableViewerSorter

Method Summary
 Object getColumnValue(Object element, int columnIndex)
           Gets the column value for the specified element at the given columnIndex.
 
Methods inherited from interface org.eclipse.jface.viewers.IStructuredContentProvider
getElements
 
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
dispose, inputChanged
 

Method Detail

getColumnValue

public Object getColumnValue(Object element,
                             int columnIndex)

Gets the column value for the specified element at the given columnIndex.

Parameters:
element - the model element for which to query the colum value
columnIndex - the index of the column to query the value for
Returns:
the value for the element at the given columnIndex