Package ca.phon.ui
Class AbstractVerifier
java.lang.Object
javax.swing.InputVerifier
ca.phon.ui.AbstractVerifier
- All Implemented Interfaces:
KeyListener
,EventListener
Abstract verifier for text fields.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addVerificationListener
(VerifierListener listener) Add listenervoid
void
Fire eventsvoid
void
void
void
void
removeVerificationListener
(VerifierListener listener) Remove listenerabstract boolean
Perform actual verification.boolean
verify
(JComponent input) Methods inherited from class javax.swing.InputVerifier
shouldYieldFocus, shouldYieldFocus, verifyTarget
-
Constructor Details
-
AbstractVerifier
public AbstractVerifier()
-
-
Method Details
-
addVerificationListener
Add listener -
removeVerificationListener
Remove listener -
fireVerificationPassed
Fire events -
fireVerificationFailed
-
fireVerificationReset
-
verification
Perform actual verification.- Returns:
- true if verification passes, false otherwise
-
verify
- Specified by:
verify
in classInputVerifier
-
keyPressed
- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
- Specified by:
keyReleased
in interfaceKeyListener
-
keyTyped
- Specified by:
keyTyped
in interfaceKeyListener
-