|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jminor.common.ui.valuemap.ValueLinkValidators
public final class ValueLinkValidators
A factory class for adding validators to components.
Method Summary | ||
---|---|---|
static
|
addValidator(TextValueLink<K> valueLink,
JTextComponent textComponent,
ValueChangeMapEditModel<K,Object> editModel)
Adds a validator to the given text component, based on the given value link and edit model |
|
static
|
addValidator(TextValueLink<K> valueLink,
JTextComponent textComponent,
ValueChangeMapEditModel<K,Object> editModel,
Color validBackgroundColor,
Color invalidBackgroundColor,
String defaultToolTip)
Adds a validator to the given text component, based on the given value link and edit model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <K> void addValidator(TextValueLink<K> valueLink, JTextComponent textComponent, ValueChangeMapEditModel<K,Object> editModel)
K
- the type of the edit model value keysvalueLink
- the value linktextComponent
- the text componenteditModel
- the edit modelpublic static <K> void addValidator(TextValueLink<K> valueLink, JTextComponent textComponent, ValueChangeMapEditModel<K,Object> editModel, Color validBackgroundColor, Color invalidBackgroundColor, String defaultToolTip)
K
- the type of the edit model value keysvalueLink
- the value linktextComponent
- the text componenteditModel
- the edit modelvalidBackgroundColor
- the background color indicating a valid valueinvalidBackgroundColor
- the background color indicating in invalid valuedefaultToolTip
- the tooltip to use while the value is valid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |