|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjfb.tools.activitymgr.ui.util.AbstractTableMgr
jfb.tools.activitymgr.ui.util.SelectableCollaboratorPanel
public class SelectableCollaboratorPanel
IHM de gestion des collaborateurs.
| Field Summary | |
|---|---|
static int |
FIRST_NAME_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 | |
|---|---|
SelectableCollaboratorPanel(org.eclipse.swt.widgets.Composite parentComposite,
java.lang.Object layoutData)
Constructeur par défaut. |
|
| Method Summary | |
|---|---|
void |
addSelectionListener(ICollaboratorSelectionListener listener)
Ajoute un listener de sélection. |
void |
collaboratorActivationStatusChanged(Collaborator collaborator)
Indique que l'état d'activation d'un collaborateur a été désactivé dans le référentiel. |
void |
collaboratorAdded(Collaborator collaborator)
Indique qu'un collaborateur a été ajouté au référentiel. |
void |
collaboratorRemoved(Collaborator collaborator)
Indique qu'un collaborateur a été supprimé du référentiel. |
void |
collaboratorUpdated(Collaborator collaborator)
Indique qu'un collaborateur a été modifié du référentiel. |
void |
databaseClosed()
Notifie de l'ouverture de la fermeture. |
void |
databaseOpened()
Notifie de l'ouverture de l'accès à la base de données. |
int |
getCollaboratorsCount()
Retourne le nombre de collaborateurs présentés dans le tableau. |
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)
|
Collaborator |
getSelectedCollaborator()
Retourne le collaborateur sélectionné. |
void |
initialize()
Initialise l'IHM. |
void |
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Supprime un listener de sélection. |
void |
setSelectedCollaborator(Collaborator collaborator)
Définit le collaborateur sélectionné. |
void |
setSelectedIndex(int idx)
Définit le collaborateur sélectionné. |
| 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 |
|---|
public static final int FIRST_NAME_COLUMN_IDX
public static final int LAST_NAME_COLUMN_IDX
| Constructor Detail |
|---|
public SelectableCollaboratorPanel(org.eclipse.swt.widgets.Composite parentComposite,
java.lang.Object layoutData)
parentComposite - composant parent.| Method Detail |
|---|
public void addSelectionListener(ICollaboratorSelectionListener listener)
listener - le nouveau listener.public void collaboratorActivationStatusChanged(Collaborator collaborator)
CollaboratorsUI.ICollaboratorListener
collaboratorActivationStatusChanged in interface CollaboratorsUI.ICollaboratorListenercollaborator - le collaborateur modifié.public void collaboratorAdded(Collaborator collaborator)
CollaboratorsUI.ICollaboratorListener
collaboratorAdded in interface CollaboratorsUI.ICollaboratorListenercollaborator - le collaborateur ajouté.public void collaboratorRemoved(Collaborator collaborator)
CollaboratorsUI.ICollaboratorListener
collaboratorRemoved in interface CollaboratorsUI.ICollaboratorListenercollaborator - le collaborateur supprimé.public void collaboratorUpdated(Collaborator collaborator)
CollaboratorsUI.ICollaboratorListener
collaboratorUpdated in interface CollaboratorsUI.ICollaboratorListenercollaborator - le collaborateur modifié.public void databaseClosed()
DatabaseUI.IDbStatusListener
databaseClosed in interface DatabaseUI.IDbStatusListenerpublic void databaseOpened()
DatabaseUI.IDbStatusListener
databaseOpened in interface DatabaseUI.IDbStatusListenerpublic int getCollaboratorsCount()
public org.eclipse.swt.graphics.Image getColumnImage(java.lang.Object element,
int columnIndex)
getColumnImage in interface org.eclipse.jface.viewers.ITableLabelProvidergetColumnImage in class AbstractTableMgr
public java.lang.String getColumnText(java.lang.Object element,
int columnIndex)
getColumnText in interface org.eclipse.jface.viewers.ITableLabelProviderpublic java.lang.Object[] getElements(java.lang.Object inputElement)
getElements in interface org.eclipse.jface.viewers.IStructuredContentProviderpublic Collaborator getSelectedCollaborator()
public void initialize()
public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
listener - le listener.public void setSelectedCollaborator(Collaborator collaborator)
collaborator - le collaborateur.public void setSelectedIndex(int idx)
idx - index du collaborateur sélectionné.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||