static class OTSControlPanel.RegexFormatter extends DefaultFormatter
$LastChangedDate: 2015-12-29 03:56:14 +0100 (Tue, 29 Dec 2015) $, @version $Revision: 1668 $, by $Author: averbraeck $,
initial version 2 dec. 2014
Constructor and Description |
---|
RegexFormatter(String pattern)
Create a new RegexFormatter.
|
Modifier and Type | Method and Description |
---|---|
Object |
stringToValue(String text) |
clone, getAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getNavigationFilter, getOverwriteMode, getValueClass, install, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClass, valueToString
getActions, getFormattedTextField, invalidEdit, setEditValid, uninstall
public RegexFormatter(String pattern)
pattern
- String; regular expression pattern that defines what this RexexFormatter will acceptpublic Object stringToValue(String text) throws ParseException
stringToValue
in class DefaultFormatter
ParseException
Copyright © 2014–2016 Delft University of Technology. All rights reserved.