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

jaxx.runtime.JAXXValidator Maven / Gradle / Ivy

There is a newer version: 3.0-alpha-6
Show newest version
/*
 * #%L
 * JAXX :: Validator
 * 
 * $Id: JAXXValidator.java 2444 2012-07-27 14:34:35Z tchemit $
 * $HeadURL: http://svn.nuiton.org/svn/jaxx/tags/jaxx-2.7/jaxx-validator/src/main/java/jaxx/runtime/JAXXValidator.java $
 * %%
 * Copyright (C) 2008 - 2010 CodeLutin, Tony Chemit
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as 
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public 
 * License along with this program.  If not, see
 * .
 * #L%
 */
package jaxx.runtime;


import jaxx.runtime.validator.swing.SwingValidator;

import javax.swing.JComponent;
import java.util.List;

/**
 * The contract of a validator-able object.
 *
 * @author tchemit 
 */
public interface JAXXValidator {

    /**
     * Obtain a validator from his id
     *
     * @param validatorId validator id
     * @return the associated validator, or null if not find
     */
    SwingValidator getValidator(String validatorId);

    /** @return the list of ids of all registred validator */
    List getValidatorIds();

    /**
     * Init the fields representation.
     * 

* This method is generated and should be called each time the context name * of a validator has changed, since when using method * {@link SwingValidator#setFieldRepresentation(String, JComponent)} * is invoked at init, if a field is not watched for the selected context, * then after when changing context name, the field will not be notified of any changed... * * @since 2.2.1 */ void registerValidatorFields(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy