org.mailster.gui.prefs
Class LanguageTableLabelProvider

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.viewers.BaseLabelProvider
          extended by org.eclipse.jface.viewers.LabelProvider
              extended by org.mailster.gui.prefs.LanguageTableLabelProvider
All Implemented Interfaces:
org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.ILabelProvider, org.eclipse.jface.viewers.ITableLabelProvider

public class LanguageTableLabelProvider
extends org.eclipse.jface.viewers.LabelProvider
implements org.eclipse.jface.viewers.ITableLabelProvider

Converts the data for the TableFieldEditor used in the LanguageConfigurationPage to ui representations.

Author:
Sebastian Machhausen, Edouard De Oliveira

Constructor Summary
LanguageTableLabelProvider()
           
 
Method Summary
 void dispose()
          Disposes all resources claimed by this LanguageTableLabelProvider.
 org.eclipse.swt.graphics.Image getColumnImage(java.lang.Object element, int columnIndex)
          Gets the image for the specified element at the specified column index.
 java.lang.String getColumnText(java.lang.Object element, int columnIndex)
          Gets the textual representation of the element at the specified column index.
 
Methods inherited from class org.eclipse.jface.viewers.LabelProvider
getImage, getText
 
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, fireLabelProviderChanged, isLabelProperty, removeListener
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
addListener, isLabelProperty, removeListener
 

Constructor Detail

LanguageTableLabelProvider

public LanguageTableLabelProvider()
Method Detail

getColumnImage

public org.eclipse.swt.graphics.Image getColumnImage(java.lang.Object element,
                                                     int columnIndex)
Gets the image for the specified element at the specified column index.

Specified by:
getColumnImage in interface org.eclipse.jface.viewers.ITableLabelProvider
Parameters:
element - the element to obtain the image for
columnIndex - the index of the column to obtain the image for
Returns:
the image for the specified element/columnIndex combination

getColumnText

public java.lang.String getColumnText(java.lang.Object element,
                                      int columnIndex)
Gets the textual representation of the element at the specified column index.

Specified by:
getColumnText in interface org.eclipse.jface.viewers.ITableLabelProvider
Parameters:
element - the element to get the text for
columnIndex - the index of the column to get the text for
Returns:
the textual representation of the specified element/columnIndex combination

dispose

public void dispose()
Disposes all resources claimed by this LanguageTableLabelProvider.

Specified by:
dispose in interface org.eclipse.jface.viewers.IBaseLabelProvider
Overrides:
dispose in class org.eclipse.jface.viewers.BaseLabelProvider