public class SerialAddressEditor extends AbstractPropertyEditor
PropertyEditor
which converts a String
into a
SerialAddress
and vice versa. Valid values specify 6 address
components separated by colon (e.g. COM1:9600:7:1:even:rtscts-in);
port name, bauds, data bits, stop bits, parity and flow control respectively.Constructor and Description |
---|
SerialAddressEditor() |
Modifier and Type | Method and Description |
---|---|
protected String |
toText(Object value)
Returns a String representation of the given value
|
protected Object |
toValue(String text)
Returns an instance from a String representation of an object
|
defaultText, defaultValue, getAsText, getValue, setAsText, setTrimText, setValue
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
protected String toText(Object value)
AbstractPropertyEditor
toText
in class AbstractPropertyEditor
value
- The valueprotected Object toValue(String text) throws IllegalArgumentException
AbstractPropertyEditor
toValue
in class AbstractPropertyEditor
text
- The String representation to convertIllegalArgumentException
Copyright © 2004–2018 Apache MINA Project. All rights reserved.