jfb.tools.activitymgr.ui.dialogs
Class ContributionsViewerTable

java.lang.Object
  extended by jfb.tools.activitymgr.ui.util.AbstractTableMgr
      extended by jfb.tools.activitymgr.ui.dialogs.ContributionsViewerTable
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.viewers.IBaseLabelProvider, 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 ContributionsViewerTable
extends AbstractTableMgr
implements org.eclipse.swt.events.SelectionListener, org.eclipse.swt.events.MenuListener


Field Summary
static int COLLABORATOR_COLUMN_IDX
           
static int DATE_COLUMN_IDX
          Constantes associées aux colonnes
static int DURATION_COLUMN_IDX
           
static int TASK_CODE_PATH_COLUMN_IDX
           
static int TASK_NAME_COLUMN_IDX
           
 
Fields inherited from class jfb.tools.activitymgr.ui.util.AbstractTableMgr
ROOT_NODE
 
Constructor Summary
ContributionsViewerTable(org.eclipse.swt.widgets.Composite parentComposite, java.lang.Object layoutData)
          Constructeur par défaut.
 
Method Summary
 java.lang.String getColumnText(java.lang.Object element, int columnIndex)
           
 java.lang.Object[] getElements(java.lang.Object inputElement)
           
 void menuHidden(org.eclipse.swt.events.MenuEvent e)
           
 void menuShown(org.eclipse.swt.events.MenuEvent e)
           
 void setFilter(Task task, Collaborator contributor, java.lang.Integer year, java.lang.Integer month, java.lang.Integer day)
          Initialise le filtre de recherche des contributions.
 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, getColumnImage, inputChanged, isLabelProperty, notifyLabelProviderListener, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLLABORATOR_COLUMN_IDX

public static final int COLLABORATOR_COLUMN_IDX
See Also:
Constant Field Values

DATE_COLUMN_IDX

public static final int DATE_COLUMN_IDX
Constantes associées aux colonnes

See Also:
Constant Field Values

DURATION_COLUMN_IDX

public static final int DURATION_COLUMN_IDX
See Also:
Constant Field Values

TASK_CODE_PATH_COLUMN_IDX

public static final int TASK_CODE_PATH_COLUMN_IDX
See Also:
Constant Field Values

TASK_NAME_COLUMN_IDX

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

ContributionsViewerTable

public ContributionsViewerTable(org.eclipse.swt.widgets.Composite parentComposite,
                                java.lang.Object layoutData)
Constructeur par défaut.

Parameters:
parentComposite - composant parent.
layoutData - données associées au layout.
Method Detail

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

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

setFilter

public void setFilter(Task task,
                      Collaborator contributor,
                      java.lang.Integer year,
                      java.lang.Integer month,
                      java.lang.Integer day)
Initialise le filtre de recherche des contributions.

Parameters:
task - la tache.
contributor - le collaborateur.
year - l'année.
month - le mois.
day - le jour.

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