jfb.tools.activitymgr.ui
Class CollaboratorsUI

java.lang.Object
  extended by jfb.tools.activitymgr.ui.util.AbstractTableMgr
      extended by jfb.tools.activitymgr.ui.CollaboratorsUI
All Implemented Interfaces:
java.util.EventListener, DatabaseUI.IDbStatusListener, org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.ICellModifier, org.eclipse.jface.viewers.IContentProvider, org.eclipse.jface.viewers.IStructuredContentProvider, org.eclipse.jface.viewers.ITableLabelProvider, org.eclipse.swt.events.MenuListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class CollaboratorsUI
extends AbstractTableMgr
implements DatabaseUI.IDbStatusListener, org.eclipse.jface.viewers.ICellModifier, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.events.MenuListener

IHM de gestion des collaborateurs.


Nested Class Summary
static interface CollaboratorsUI.ICollaboratorListener
          Interface utilisée pour permettre l'écoute de la suppression ou de l'ajout de collaborateurs.
 
Field Summary
static int FIRST_NAME_COLUMN_IDX
           
static int IDENTIFIER_COLUMN_IDX
           
static int IS_ACTIVE_COLUMN_IDX
          Constantes associées aux colonnes
static int LAST_NAME_COLUMN_IDX
           
 
Fields inherited from class jfb.tools.activitymgr.ui.util.AbstractTableMgr
ROOT_NODE
 
Constructor Summary
CollaboratorsUI(org.eclipse.swt.widgets.Composite parentComposite)
          Constructeur par défaut.
CollaboratorsUI(org.eclipse.swt.widgets.TabItem tabItem)
          Constructeur permettant de placer l'IHM dans un onglet.
 
Method Summary
 void addCollaboratorListener(CollaboratorsUI.ICollaboratorListener listener)
          Ajoute un listener.
 boolean canModify(java.lang.Object element, java.lang.String property)
           
 void databaseClosed()
          Notifie de l'ouverture de la fermeture.
 void databaseOpened()
          Notifie de l'ouverture de l'accès à la base de données.
 org.eclipse.swt.graphics.Image getColumnImage(java.lang.Object element, int columnIndex)
           
 java.lang.String getColumnText(java.lang.Object element, int columnIndex)
           
 java.lang.Object[] getElements(java.lang.Object inputElement)
           
 java.lang.Object getValue(java.lang.Object element, java.lang.String property)
           
 void menuHidden(org.eclipse.swt.events.MenuEvent e)
           
 void menuShown(org.eclipse.swt.events.MenuEvent e)
           
 void modify(java.lang.Object element, java.lang.String property, java.lang.Object value)
           
 void removeCollaboratorListener(CollaboratorsUI.ICollaboratorListener listener)
          Ajoute un listener.
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
           
 void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
           
 
Methods inherited from class jfb.tools.activitymgr.ui.util.AbstractTableMgr
addListener, dispose, inputChanged, isLabelProperty, notifyLabelProviderListener, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIRST_NAME_COLUMN_IDX

public static final int FIRST_NAME_COLUMN_IDX
See Also:
Constant Field Values

IDENTIFIER_COLUMN_IDX

public static final int IDENTIFIER_COLUMN_IDX
See Also:
Constant Field Values

IS_ACTIVE_COLUMN_IDX

public static final int IS_ACTIVE_COLUMN_IDX
Constantes associées aux colonnes

See Also:
Constant Field Values

LAST_NAME_COLUMN_IDX

public static final int LAST_NAME_COLUMN_IDX
See Also:
Constant Field Values
Constructor Detail

CollaboratorsUI

public CollaboratorsUI(org.eclipse.swt.widgets.Composite parentComposite)
Constructeur par défaut.

Parameters:
parentComposite - composant parent.

CollaboratorsUI

public CollaboratorsUI(org.eclipse.swt.widgets.TabItem tabItem)
Constructeur permettant de placer l'IHM dans un onglet.

Parameters:
tabItem - item parent.
Method Detail

addCollaboratorListener

public void addCollaboratorListener(CollaboratorsUI.ICollaboratorListener listener)
Ajoute un listener.

Parameters:
listener - le nouveau listener.

canModify

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

databaseClosed

public void databaseClosed()
Description copied from interface: DatabaseUI.IDbStatusListener
Notifie de l'ouverture de la fermeture.

Specified by:
databaseClosed in interface DatabaseUI.IDbStatusListener

databaseOpened

public void databaseOpened()
Description copied from interface: DatabaseUI.IDbStatusListener
Notifie de l'ouverture de l'accès à la base de données.

Specified by:
databaseOpened in interface DatabaseUI.IDbStatusListener

getColumnImage

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

getColumnText

public java.lang.String getColumnText(java.lang.Object element,
                                      int columnIndex)
Specified by:
getColumnText in interface org.eclipse.jface.viewers.ITableLabelProvider

getElements

public java.lang.Object[] getElements(java.lang.Object inputElement)
Specified by:
getElements in interface org.eclipse.jface.viewers.IStructuredContentProvider

getValue

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

menuHidden

public void menuHidden(org.eclipse.swt.events.MenuEvent e)
Specified by:
menuHidden in interface org.eclipse.swt.events.MenuListener

menuShown

public void menuShown(org.eclipse.swt.events.MenuEvent e)
Specified by:
menuShown in interface org.eclipse.swt.events.MenuListener

modify

public void modify(java.lang.Object element,
                   java.lang.String property,
                   java.lang.Object value)
Specified by:
modify in interface org.eclipse.jface.viewers.ICellModifier

removeCollaboratorListener

public void removeCollaboratorListener(CollaboratorsUI.ICollaboratorListener listener)
Ajoute un listener.

Parameters:
listener - le nouveau listener.

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener