Package ca.phon.ui

Class AbstractVerifier

java.lang.Object
javax.swing.InputVerifier
ca.phon.ui.AbstractVerifier
All Implemented Interfaces:
KeyListener, EventListener

public abstract class AbstractVerifier extends InputVerifier implements KeyListener
Abstract verifier for text fields.
  • Constructor Details

    • AbstractVerifier

      public AbstractVerifier()
  • Method Details

    • addVerificationListener

      public void addVerificationListener(VerifierListener listener)
      Add listener
    • removeVerificationListener

      public void removeVerificationListener(VerifierListener listener)
      Remove listener
    • fireVerificationPassed

      public void fireVerificationPassed(JComponent c)
      Fire events
    • fireVerificationFailed

      public void fireVerificationFailed(JComponent c)
    • fireVerificationReset

      public void fireVerificationReset(JComponent c)
    • verification

      public abstract boolean verification(JComponent c)
      Perform actual verification.
      Returns:
      true if verification passes, false otherwise
    • verify

      public boolean verify(JComponent input)
      Specified by:
      verify in class InputVerifier
    • keyPressed

      public void keyPressed(KeyEvent e)
      Specified by:
      keyPressed in interface KeyListener
    • keyReleased

      public void keyReleased(KeyEvent e)
      Specified by:
      keyReleased in interface KeyListener
    • keyTyped

      public void keyTyped(KeyEvent e)
      Specified by:
      keyTyped in interface KeyListener