public abstract class ValidatorTextAdapter extends TextAdapter
defaultBGColor, defaultToolTip, errorColor, modelUpdateDisabled, textComponent, undoableListener| Constructor and Description |
|---|
ValidatorTextAdapter(JTextArea textArea) |
ValidatorTextAdapter(JTextArea textArea,
boolean liveCheckEnabled) |
ValidatorTextAdapter(JTextField textField) |
ValidatorTextAdapter(JTextField textField,
boolean liveCheckEnabled) |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodeHTMLAttribute(String str)
Encodes a string so that it can be used as an attribute value in an HMTL document.
|
protected void |
install(JTextComponent textComponent) |
boolean |
isLiveCheckEnabled() |
void |
setLiveCheckEnabled(boolean b)
Enables/disables live-checking
|
protected void |
validate() |
protected abstract void |
validate(String text)
Live-checks if text is correct
|
protected String |
wrapTooltip(String tooltip)
Wraps the tooltip, making it multi-lined if needed.
|
clear, getComponent, setText, updateModel, updateModelpublic ValidatorTextAdapter(JTextField textField)
public ValidatorTextAdapter(JTextField textField, boolean liveCheckEnabled)
public ValidatorTextAdapter(JTextArea textArea)
public ValidatorTextAdapter(JTextArea textArea, boolean liveCheckEnabled)
protected void install(JTextComponent textComponent)
protected abstract void validate(String text) throws ValidationException
ValidationException - if the text is incorrectpublic boolean isLiveCheckEnabled()
public void setLiveCheckEnabled(boolean b)
protected void validate()
protected String wrapTooltip(String tooltip)
tooltip - single-line tooltippublic static String encodeHTMLAttribute(String str)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.