org.mailster.gui.prefs.widgets
Class DirectoryFieldEditor

java.lang.Object
  extended by org.eclipse.jface.preference.FieldEditor
      extended by org.eclipse.jface.preference.StringFieldEditor
          extended by org.eclipse.jface.preference.StringButtonFieldEditor
              extended by org.eclipse.jface.preference.DirectoryFieldEditor
                  extended by org.mailster.gui.prefs.widgets.DirectoryFieldEditor

public class DirectoryFieldEditor
extends org.eclipse.jface.preference.DirectoryFieldEditor

Extends the original JFace DirectoryFieldEditor to enable the configuration of the validation strategy via constructor. This can either be VALIDATE_ON_KEY_STROKE to perform on the fly checking (the default), or VALIDATE_ON_FOCUS_LOST to perform validation only after the text has been typed in.

Author:
Sebastian Machhausen, Edouard De Oliveira

Field Summary
 
Fields inherited from class org.eclipse.jface.preference.StringFieldEditor
oldValue, UNLIMITED, VALIDATE_ON_FOCUS_LOST, VALIDATE_ON_KEY_STROKE
 
Fields inherited from class org.eclipse.jface.preference.FieldEditor
HORIZONTAL_GAP, IS_VALID, VALUE
 
Constructor Summary
DirectoryFieldEditor(java.lang.String name, java.lang.String labelText, org.eclipse.swt.widgets.Composite parent, int strategy)
          Creates a new DirectoryFieldEditor.
 
Method Summary
 
Methods inherited from class org.eclipse.jface.preference.DirectoryFieldEditor
changePressed, doCheckState
 
Methods inherited from class org.eclipse.jface.preference.StringButtonFieldEditor
adjustForNumColumns, doFillIntoGrid, getChangeControl, getNumberOfControls, getShell, setChangeButtonText, setEnabled
 
Methods inherited from class org.eclipse.jface.preference.StringFieldEditor
checkState, doLoad, doLoadDefault, doStore, getErrorMessage, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, refreshValidState, setEmptyStringAllowed, setErrorMessage, setFocus, setStringValue, setTextLimit, setValidateStrategy, showErrorMessage, valueChanged
 
Methods inherited from class org.eclipse.jface.preference.FieldEditor
applyFont, checkParent, clearErrorMessage, clearMessage, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, createControl, dispose, fillIntoGrid, fireStateChanged, fireValueChanged, getFieldEditorFontName, getLabelControl, getLabelControl, getLabelText, getPage, getPreferenceName, getPreferencePage, getPreferenceStore, init, load, loadDefault, presentsDefaultValue, setButtonLayoutData, setLabelText, setPage, setPreferenceName, setPreferencePage, setPreferenceStore, setPresentsDefaultValue, setPropertyChangeListener, showErrorMessage, showMessage, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryFieldEditor

public DirectoryFieldEditor(java.lang.String name,
                            java.lang.String labelText,
                            org.eclipse.swt.widgets.Composite parent,
                            int strategy)
Creates a new DirectoryFieldEditor.

Parameters:
name - the name of the preference this field editor works on
labelText - the label text of the field editor
parent - the parent of the field editor's control
strategy - either VALIDATE_ON_KEY_STROKE to perform on the fly checking (the default), or VALIDATE_ON_FOCUS_LOST to perform validation only after the text has been typed in