public class NacosCustomBooleanEditor extends PropertyEditorSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
VALUE_0 |
static String |
VALUE_1 |
static String |
VALUE_FALSE |
static String |
VALUE_NO |
static String |
VALUE_OFF |
static String |
VALUE_ON |
static String |
VALUE_TRUE |
static String |
VALUE_YES |
| Constructor and Description |
|---|
NacosCustomBooleanEditor(boolean allowEmpty) |
NacosCustomBooleanEditor(String trueString,
String falseString,
boolean allowEmpty) |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(String text) |
String |
getAsText() |
void |
setValue(Object value) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, supportsCustomEditorpublic static final String VALUE_TRUE
public static final String VALUE_FALSE
public static final String VALUE_ON
public static final String VALUE_OFF
public static final String VALUE_YES
public static final String VALUE_NO
public static final String VALUE_1
public static final String VALUE_0
public void setValue(Object value)
setValue in interface PropertyEditorsetValue in class PropertyEditorSupportpublic Object convert(String text) throws IllegalArgumentException
IllegalArgumentExceptionpublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportCopyright © 2020. All rights reserved.