net.sourceforge.java.util.gui.jface.preference
Class DirectoryFieldEditor
java.lang.Object
org.eclipse.jface.preference.FieldEditor
org.eclipse.jface.preference.StringFieldEditor
org.eclipse.jface.preference.StringButtonFieldEditor
org.eclipse.jface.preference.DirectoryFieldEditor
net.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
| 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 |
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 onlabelText - the label text of the field editorparent - the parent of the field editor's controlstrategy - 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