public interface ITextArea
JTextArea.IGuiFactory.newTextArea(),
IGuiFactory.newTextArea(String),
IGuiFactory.newTextArea(String, int, int)| Modifier and Type | Method and Description |
|---|---|
javax.swing.JTextArea |
asTextArea()
Casts this instance to
JTextArea. |
ITextField.IValidator |
getValidator()
Returns the validator of the text field.
|
void |
setText(java.lang.String text)
Sets the specified text if it's different from the current text.
|
void |
setValidator(ITextField.IValidator validator)
Sets a simple real-time validator to the text field.
|
javax.swing.JTextArea asTextArea()
JTextArea.this as a JTextAreavoid setText(java.lang.String text)
text - text to be setvoid setValidator(ITextField.IValidator validator)
The validator will be called each time the text of the text field changes, and if the validator returns false, red background will indicate
the failure.
If a validator has been previously set, it will be removed first. You can set a null validator to remove the current validator.
validator - validator to be added, may be nullITextField.IValidatorITextField.IValidator getValidator()
ITextField.IValidator
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.