public class InetAddressEditor extends PropertyEditorSupport<InetAddress>
InetAddress.| Constructor and Description |
|---|
InetAddressEditor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsText()
Gets the property value as text.
|
void |
setAsText(String text)
Set the property value by parsing a given String.
|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getType, getValue, removePropertyChangeListener, removePropertyChangeListener, setValuefirePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, setSource, supportsCustomEditorpublic void setAsText(String text) throws IllegalArgumentException
PropertyEditorsetAsText in interface PropertyEditorsetAsText in class PropertyEditorSupport<InetAddress>text - The string to be parsed.IllegalArgumentExceptionpublic String getAsText()
PropertyEditorgetAsText in interface PropertyEditorgetAsText in class PropertyEditorSupport<InetAddress>Returns null if the value can't be expressed as an editable string.
If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.