public class PatternEditor extends PropertyEditorSupport
java.util.regex.Pattern
, to directly populate a Pattern property.
Expects the same syntax as Pattern's compile
method.Pattern
,
Pattern.compile(String)
Constructor and Description |
---|
PatternEditor()
Create a new PatternEditor with default settings.
|
PatternEditor(int flags)
Create a new PatternEditor with the given settings.
|
Modifier and Type | Method and Description |
---|---|
String |
getAsText() |
void |
setAsText(String text) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public PatternEditor()
public PatternEditor(int flags)
flags
- the java.util.regex.Pattern
flags to applyPattern.compile(String, int)
,
Pattern.CASE_INSENSITIVE
,
Pattern.MULTILINE
,
Pattern.DOTALL
,
Pattern.UNICODE_CASE
,
Pattern.CANON_EQ
public void setAsText(@Nullable String text)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport