cz.cuni.amis.nb.util.editors
Class URIEditorSupport

Package class diagram package URIEditorSupport
java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by cz.cuni.amis.nb.util.editors.URIEditorSupport
All Implemented Interfaces:
PropertyEditor

public class URIEditorSupport
extends PropertyEditorSupport

Editor for URIs.

Author:
Ik

Constructor Summary
URIEditorSupport()
          Creates a new instance of InMessageSetEditor
URIEditorSupport(String protocol)
           
 
Method Summary
 String getAsText()
           
 void setAsText(String s)
           
 boolean supportsCustomEditor()
           
protected  URI translateURI(String uriStr)
          Check for protocol in URI, if missing then add ut://
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIEditorSupport

public URIEditorSupport()
Creates a new instance of InMessageSetEditor


URIEditorSupport

public URIEditorSupport(String protocol)
Method Detail

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

setAsText

public void setAsText(String s)
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport

translateURI

protected URI translateURI(String uriStr)
                    throws URISyntaxException
Check for protocol in URI, if missing then add ut://

Throws:
URISyntaxException

supportsCustomEditor

public boolean supportsCustomEditor()
Specified by:
supportsCustomEditor in interface PropertyEditor
Overrides:
supportsCustomEditor in class PropertyEditorSupport


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.