
package uk.co.wingpath.gui;

import javax.swing.*;
import uk.co.wingpath.event.*;
import uk.co.wingpath.util.*;

/**
* This interface is implemented by {@code WComponent}s that allow the user
* to enter a single value by typing text (WTextField, WEditableComboBox, etc.).
* It defines a single method, which allows a verifier to be set that will
* check the user input.
*/
public interface Verifiable
{
    /**
    * Sets the verifier for this component.
    * @param verifier the new verifier
    * @see Verifier
    * @see TextEditor#checkValue
    */
    void setVerifier (Verifier verifier);
}
