public class DefaultValidatorMessageMixin extends Object implements ValidatorMessageMixin
<replace-with class="...CustomValidatorMessageMixin">
<when-type-is class="org.gwtbootstrap3.client.ui.form.validator.ValidatorMessageMixin" />
</replace-with>
| Modifier and Type | Field and Description |
|---|---|
protected ValidationMessages |
messages |
| Constructor and Description |
|---|
DefaultValidatorMessageMixin() |
| Modifier and Type | Method and Description |
|---|---|
String |
lookup(String key)
Lookup the message using the supplied key.
|
String |
lookup(String key,
Object[] msgValues)
Lookup a message using the given key and replace the arguments in the given message with the supplied
values.
|
protected ValidationMessages messages
public DefaultValidatorMessageMixin()
public String lookup(String key)
lookup in interface ValidatorMessageMixinkey - the key.public String lookup(String key, Object[] msgValues)
Message:
{1} is a {2}
Call:
lookup("key", "This", "test.");
Returns:
This is a test.
lookup in interface ValidatorMessageMixinkey - the keymsgValues - the values used in the message.Copyright © 2017. All rights reserved.