Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.gml.ui.wfs
Class WfsUrlFieldEditor

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 eu.esdihumboldt.hale.io.gml.ui.wfs.WfsUrlFieldEditor

public class WfsUrlFieldEditor
extends org.eclipse.jface.preference.StringButtonFieldEditor

This editor can be used to select a valid URL for a WFS to retrieve schema information from. It delegates all details to the WfsDescribeFeatureWizard and WfsGetFeatureWizard.

Author:
Thorsten Reitz, Jan Kolar, Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research, 02 / Intergraph CS

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
WfsUrlFieldEditor(String name, String labelText, org.eclipse.swt.widgets.Composite parent)
          Constructor
WfsUrlFieldEditor(String name, String labelText, org.eclipse.swt.widgets.Composite parent, String schemaNamespace, boolean getFeatures)
          Constructor
 
Method Summary
protected  String changePressed()
           
protected  boolean checkState()
           
protected  boolean doCheckState()
           
 URL getURL()
          Get the URL value.
 
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
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

WfsUrlFieldEditor

public WfsUrlFieldEditor(String name,
                         String labelText,
                         org.eclipse.swt.widgets.Composite parent)
Constructor

Parameters:
name - the preference name
labelText - the label text
parent - the parent composite

WfsUrlFieldEditor

public WfsUrlFieldEditor(String name,
                         String labelText,
                         org.eclipse.swt.widgets.Composite parent,
                         String schemaNamespace,
                         boolean getFeatures)
Constructor

Parameters:
name - the preference name
labelText - the label text
parent - the parent composite
schemaNamespace - the schema namespace, may be null
getFeatures - if the editor is for a GetFeature request instead of a DescribeFeature request
Method Detail

checkState

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

changePressed

protected String changePressed()
Specified by:
changePressed in class org.eclipse.jface.preference.StringButtonFieldEditor
See Also:
StringButtonFieldEditor.changePressed()

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