public final class EntityComponentValidators extends Object
Modifier and Type | Method and Description |
---|---|
static <T> void |
addFormattedValidator(Attribute<T> attribute,
JTextComponent textComponent,
EntityEditModel editModel)
Adds a validator to the given text component, based on the given value link and edit model
|
static <T> void |
addFormattedValidator(Attribute<T> attribute,
JTextComponent textComponent,
EntityEditModel editModel,
String defaultToolTip)
Adds a validator to the given text component, based on the given value link and edit model
|
static <T> void |
addValidator(Attribute<T> attribute,
JTextComponent textComponent,
EntityEditModel editModel)
Adds a validator to the given text component, based on the given value link and edit model
|
static <T> void |
addValidator(Attribute<T> attribute,
JTextComponent textComponent,
EntityEditModel editModel,
String defaultToolTip)
Adds a validator to the given text component, based on the given value link and edit model
|
public static <T> void addValidator(Attribute<T> attribute, JTextComponent textComponent, EntityEditModel editModel)
T
- the value typeattribute
- the attribute of the value to validatetextComponent
- the text componenteditModel
- the edit modelpublic static <T> void addFormattedValidator(Attribute<T> attribute, JTextComponent textComponent, EntityEditModel editModel)
T
- the value typeattribute
- the attribute of the value to validatetextComponent
- the text componenteditModel
- the edit modelpublic static <T> void addValidator(Attribute<T> attribute, JTextComponent textComponent, EntityEditModel editModel, String defaultToolTip)
T
- the value typeattribute
- the attribute of the value to validatetextComponent
- the text componenteditModel
- the edit modeldefaultToolTip
- the tooltip to use while the value is validpublic static <T> void addFormattedValidator(Attribute<T> attribute, JTextComponent textComponent, EntityEditModel editModel, String defaultToolTip)
T
- the value typeattribute
- the attribute of the value to validatetextComponent
- the text componenteditModel
- the edit modeldefaultToolTip
- the tooltip to use while the value is valid