public class JTextComponentTextProperty extends com.google.code.validationframework.base.property.AbstractReadableWritableProperty<String,String> implements com.google.code.validationframework.api.common.Disposable
JTextComponent (for instance, a textfield,
a text area, etc.).
This property will always be synchronized with the contents of the document. Also, it is possible to modify the
component text by calling its JTextComponent.setText(String) method, or by modifying the contents of its
Document, or by call the setValue(String) method. In all cases, this property will notify its
listeners of any change.| Constructor and Description |
|---|
JTextComponentTextProperty(JTextComponent textComponent)
Constructor specifying the text component to which the property applies.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
String |
getValue() |
void |
setValue(String value) |
addValueChangeListener, getValueChangeListeners, isInhibited, isNotifyingListeners, maybeNotifyListeners, removeValueChangeListener, setInhibitedpublic JTextComponentTextProperty(JTextComponent textComponent)
textComponent - Text component to which the property applies.public void dispose()
dispose in interface com.google.code.validationframework.api.common.DisposableDisposable.dispose()public String getValue()
getValue in interface com.google.code.validationframework.api.property.ReadableProperty<String>ReadableProperty.getValue()Copyright © 2014. All Rights Reserved.