jfb.tools.activitymgr.ui.util
Class TableMgrBase

java.lang.Object
  extended by jfb.tools.activitymgr.ui.util.TableMgrBase
All Implemented Interfaces:
org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.IContentProvider, org.eclipse.jface.viewers.IStructuredContentProvider, org.eclipse.jface.viewers.ITableLabelProvider

public abstract class TableMgrBase
extends java.lang.Object
implements org.eclipse.jface.viewers.ITableLabelProvider, org.eclipse.jface.viewers.IStructuredContentProvider

Classe de base implémentant une partie des méthodes qui doivent être implémentées pour gérer des tableaux.


Field Summary
protected static java.lang.Object ROOT_NODE
          Noeud racine
 
Constructor Summary
TableMgrBase()
           
 
Method Summary
 void addListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
           
 void dispose()
           
 org.eclipse.swt.graphics.Image getColumnImage(java.lang.Object element, int columnIndex)
           
 void inputChanged(org.eclipse.jface.viewers.Viewer viewer, java.lang.Object oldInput, java.lang.Object newInput)
           
 boolean isLabelProperty(java.lang.Object element, java.lang.String property)
           
protected  void notifyLabelProviderListener(org.eclipse.jface.viewers.LabelProviderChangedEvent e)
          Notifie les listeners du changement de valeur d'un label.
 void removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
           
 
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.ITableLabelProvider
getColumnText
 
Methods inherited from interface org.eclipse.jface.viewers.IStructuredContentProvider
getElements
 

Field Detail

ROOT_NODE

protected static java.lang.Object ROOT_NODE
Noeud racine

Constructor Detail

TableMgrBase

public TableMgrBase()
Method Detail

addListener

public void addListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
Specified by:
addListener in interface org.eclipse.jface.viewers.IBaseLabelProvider

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.viewers.IBaseLabelProvider
Specified by:
dispose in interface org.eclipse.jface.viewers.IContentProvider

getColumnImage

public org.eclipse.swt.graphics.Image getColumnImage(java.lang.Object element,
                                                     int columnIndex)
Specified by:
getColumnImage in interface org.eclipse.jface.viewers.ITableLabelProvider

inputChanged

public void inputChanged(org.eclipse.jface.viewers.Viewer viewer,
                         java.lang.Object oldInput,
                         java.lang.Object newInput)
Specified by:
inputChanged in interface org.eclipse.jface.viewers.IContentProvider

isLabelProperty

public boolean isLabelProperty(java.lang.Object element,
                               java.lang.String property)
Specified by:
isLabelProperty in interface org.eclipse.jface.viewers.IBaseLabelProvider

notifyLabelProviderListener

protected void notifyLabelProviderListener(org.eclipse.jface.viewers.LabelProviderChangedEvent e)
Notifie les listeners du changement de valeur d'un label.

Parameters:
e - l'évènement.

removeListener

public void removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
Specified by:
removeListener in interface org.eclipse.jface.viewers.IBaseLabelProvider