jfb.tools.activitymgr.ui.dialogs
Class AbstractDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by jfb.tools.activitymgr.ui.dialogs.AbstractDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
Direct Known Subclasses:
ContributionsViewerDialog, TaskChooserDialog, TaskChooserTreeWithHistoryDialog, TasksChooserDialog

public abstract class AbstractDialog
extends org.eclipse.jface.dialogs.Dialog

Dialogue père des dialogues asociés à la page de configuration.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, dialogArea, DLG_IMG_ERROR, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
protected AbstractDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, org.eclipse.swt.graphics.Image icon, java.lang.Object initialValue)
          Constructeur par défaut.
 
Method Summary
protected  void cancelPressed()
           
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
 java.lang.Object getInitialValue()
          Retourne la valeur initiale du dialogue.
 java.lang.Object getValue()
          Retourne la valeur saisie au travers du dialogue.
protected  void okPressed()
           
 void setValue(java.lang.Object value)
          Définit la valeur sélectionnée par le dialogue.
protected abstract  java.lang.Object validateUserEntry()
          Valide la saisie de l'utilisateur.
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createButtonsForButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getInitialLocation, getInitialSize, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDialog

protected AbstractDialog(org.eclipse.swt.widgets.Shell parentShell,
                         java.lang.String title,
                         org.eclipse.swt.graphics.Image icon,
                         java.lang.Object initialValue)
Constructeur par défaut.

Parameters:
parentShell - le shell parent.
title - titre du dialogue.
icon - icone du dialogue.
initialValue - valeur initiale du dialogue.
Method Detail

cancelPressed

protected void cancelPressed()
Overrides:
cancelPressed in class org.eclipse.jface.dialogs.Dialog

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class org.eclipse.jface.dialogs.Dialog

getInitialValue

public java.lang.Object getInitialValue()
Retourne la valeur initiale du dialogue.

Returns:
la valeur initiale du dialogue.

getValue

public java.lang.Object getValue()
Retourne la valeur saisie au travers du dialogue.

Returns:
la valeur saisie au travers du dialogue.

okPressed

protected void okPressed()
Overrides:
okPressed in class org.eclipse.jface.dialogs.Dialog

setValue

public void setValue(java.lang.Object value)
Définit la valeur sélectionnée par le dialogue.

Parameters:
value - la nouvelle valeur.

validateUserEntry

protected abstract java.lang.Object validateUserEntry()
                                               throws DialogException
Valide la saisie de l'utilisateur.

Returns:
la nouvelle valeur du dialogue.
Throws:
DialogException - levé en cas de détection d'anomalie dans la saisie de l'utilisateur.