Class ValidationSupport<T>

  • Type Parameters:
    T - the class of the value being validated

    public class ValidationSupport<T>
    extends java.lang.Object
    A helper class for sending notifications to validation listeners.
    • Constructor Detail

      • ValidationSupport

        public ValidationSupport​(javax.swing.JComponent source)
      • ValidationSupport

        public ValidationSupport​(javax.swing.JComponent source,
                                 Validator<T> validator)
    • Method Detail

      • setValidator

        public java.lang.String setValidator​(Validator<T> validator,
                                             T value)
      • validateValue

        public java.lang.String validateValue​(T value)
      • getMessages

        public java.lang.String getMessages()
      • addValidationListener

        public void addValidationListener​(java.beans.PropertyChangeListener listener)
      • removeValidationListener

        public void removeValidationListener​(java.beans.PropertyChangeListener listener)