Humboldt Alignment Editor 2.5.0

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

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.URIFieldEditor

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

A field editor for URIs. Does validation based on the URI syntax.

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
URIFieldEditor()
          Default constructor
URIFieldEditor(String name, String labelText, org.eclipse.swt.widgets.Composite parent)
           
 
Method Summary
protected  boolean checkState()
           
protected  boolean doCheckState()
           
 URI getURI()
          Get the URI 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

URIFieldEditor

public URIFieldEditor()
Default constructor


URIFieldEditor

public URIFieldEditor(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()

getURI

public URI getURI()
Get the URI value.

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

Humboldt Alignment Editor 2.5.0

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