Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.io.util
Class URLFieldEditor

java.lang.Object
  extended by org.eclipse.jface.preference.FieldEditor
      extended by org.eclipse.jface.preference.StringFieldEditor
          extended by eu.esdihumboldt.hale.ui.io.util.URLFieldEditor

public class URLFieldEditor
extends org.eclipse.jface.preference.StringFieldEditor

A field editor for URLs. Does validation based on the URL syntax and available protocols.

Author:
Simon Templer

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
URLFieldEditor()
          Default constructor
URLFieldEditor(String name, String labelText, org.eclipse.swt.widgets.Composite parent)
           
 
Method Summary
protected  boolean checkState()
           
protected  boolean doCheckState()
           
 URL getURL()
          Get the URL value.
 
Methods inherited from class org.eclipse.jface.preference.StringFieldEditor
adjustForNumColumns, doFillIntoGrid, doLoad, doLoadDefault, doStore, getErrorMessage, getNumberOfControls, getStringValue, getTextControl, getTextControl, isEmptyStringAllowed, isValid, refreshValidState, setEmptyStringAllowed, setEnabled, 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

URLFieldEditor

public URLFieldEditor()
Default constructor


URLFieldEditor

public URLFieldEditor(String name,
                      String labelText,
                      org.eclipse.swt.widgets.Composite parent)
See Also:
StringFieldEditor.StringFieldEditor(String, String, Composite)
Method Detail

checkState

protected boolean checkState()
Overrides:
checkState in class org.eclipse.jface.preference.StringFieldEditor
See Also:
StringFieldEditor.checkState()

doCheckState

protected boolean doCheckState()
Overrides:
doCheckState in class org.eclipse.jface.preference.StringFieldEditor
See Also:
StringFieldEditor.doCheckState()

getURL

public URL getURL()
Get the URL value.

Returns:
the URL or null if the content is no valid URL.

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d