public class BoolEditor extends ExPropertyEditorSupport
env.getFeatureDescriptor().getValue()
. These
string values will then be used for getAsText, setAsText, and getTags.
These strings should be correctly internationalized if supplied
by a module. String value matching in setAsText is non-case-sensitive
("TRUE" and "tRue" are equivalent).ExPropertyEditorSupport.EnvException
PROP_VALUE_VALID, PROPERTY_HELP_ID
Constructor and Description |
---|
BoolEditor()
Creates a new instance of BoolEditor
|
Modifier and Type | Method and Description |
---|---|
protected void |
attachEnvImpl(PropertyEnv env)
Perform the actual attaching of the PropertyEnv.
|
String |
getAsText() |
String |
getJavaInitializationString() |
String[] |
getTags() |
void |
setAsText(String txt) |
protected void |
validateEnv(PropertyEnv env)
Throws an EnvException if the stringValues key is not 2 items in length.
|
arrToStr, attachEnv
addPropertyChangeListener, firePropertyChange, getCustomEditor, getSource, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getCustomEditor, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
protected void attachEnvImpl(PropertyEnv env)
ExPropertyEditorSupport
attachEnvImpl
in class ExPropertyEditorSupport
protected void validateEnv(PropertyEnv env)
validateEnv
in class ExPropertyEditorSupport
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
getJavaInitializationString
in class PropertyEditorSupport
public String[] getTags()
getTags
in interface PropertyEditor
getTags
in class PropertyEditorSupport
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public void setAsText(String txt)
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport