net.sourceforge.java.util.gui.jface.preference
Class DirectoryFieldEditor

java.lang.Object
  extended byorg.eclipse.jface.preference.FieldEditor
      extended byorg.eclipse.jface.preference.StringFieldEditor
          extended byorg.eclipse.jface.preference.StringButtonFieldEditor
              extended byorg.eclipse.jface.preference.DirectoryFieldEditor
                  extended bynet.sourceforge.java.util.gui.jface.preference.DirectoryFieldEditor

public class DirectoryFieldEditor
extends 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

Field Summary
 
Fields inherited from class org.eclipse.jface.preference.StringButtonFieldEditor
 
Fields inherited from class org.eclipse.jface.preference.StringFieldEditor
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(String name, String labelText, Composite parent, int strategy)
           Creates a new DirectoryFieldEditor.
 
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(String name,
                            String labelText,
                            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