public final class ValueLinkValidators
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <K> void |
addFormattedValidator(K key,
javax.swing.text.JTextComponent textComponent,
ValueMapEditModel<K,?> editModel,
java.awt.Color invalidBackgroundColor,
java.lang.String defaultToolTip)
Adds a validator to the given text component, based on the given value link and edit model
|
static <K> void |
addFormattedValidator(K key,
javax.swing.text.JTextComponent textComponent,
ValueMapEditModel<K,java.lang.Object> editModel)
Adds a validator to the given text component, based on the given value link and edit model
|
static <K> void |
addValidator(K key,
javax.swing.text.JTextComponent textComponent,
ValueMapEditModel<K,?> editModel)
Adds a validator to the given text component, based on the given value link and edit model
|
static <K> void |
addValidator(K key,
javax.swing.text.JTextComponent textComponent,
ValueMapEditModel<K,?> editModel,
java.awt.Color invalidBackgroundColor,
java.lang.String defaultToolTip)
Adds a validator to the given text component, based on the given value link and edit model
|
public static <K> void addValidator(K key, javax.swing.text.JTextComponent textComponent, ValueMapEditModel<K,?> editModel)
K
- the type of the edit model value keyskey
- the key of the value to validatetextComponent
- the text componenteditModel
- the edit modelpublic static <K> void addFormattedValidator(K key, javax.swing.text.JTextComponent textComponent, ValueMapEditModel<K,java.lang.Object> editModel)
K
- the type of the edit model value keyskey
- the key of the value to validatetextComponent
- the text componenteditModel
- the edit modelpublic static <K> void addValidator(K key, javax.swing.text.JTextComponent textComponent, ValueMapEditModel<K,?> editModel, java.awt.Color invalidBackgroundColor, java.lang.String defaultToolTip)
K
- the type of the edit model value keyskey
- the key of the value to validatetextComponent
- the text componenteditModel
- the edit modelinvalidBackgroundColor
- the background color indicating in invalid valuedefaultToolTip
- the tooltip to use while the value is validpublic static <K> void addFormattedValidator(K key, javax.swing.text.JTextComponent textComponent, ValueMapEditModel<K,?> editModel, java.awt.Color invalidBackgroundColor, java.lang.String defaultToolTip)
K
- the type of the edit model value keyskey
- the key of the value to validatetextComponent
- the text componenteditModel
- the edit modelinvalidBackgroundColor
- the background color indicating in invalid valuedefaultToolTip
- the tooltip to use while the value is valid