All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gwt.material.design.client.base.validator.ValidatorMessageMixin Maven / Gradle / Ivy

There is a newer version: 2.8.3
Show newest version
/*
 * #%L
 * GwtBootstrap3
 * %%
 * Copyright (C) 2015 GwtBootstrap3
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package gwt.material.design.client.base.validator;

/**
 * Mixin for looking up validation messages. This can be replaced with your own version by using a
 * "replace-with" statment in the gwt module file.
 * 

* Example: *

*

 * {@code
 * 
 *     
 * 
 * }
 * 
* * @author Steven Jardine */ public interface ValidatorMessageMixin { /** * Lookup the message using the supplied key. * * @param key the key. * @return the message associated with the given key. */ String lookup(String key); /** * Lookup a message using the given key and replace the arguments in the given message with the supplied * values. *

*

     * {@code
     * Message:
     * {1} is a {2}
     *
     * Call:
     * lookup("key", "This", "test.");
     *
     * Returns:
     * This is a test.
     * }
     * 
* * @param key the key * @param msgValues the values used in the message. * @return the message associated with the given key with the message values replaced. */ String lookup(String key, Object[] msgValues); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy