|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.InputVerifier
public abstract class InputVerifier
Verifies the user input on a component before the focus is shifted.
It is sometimes necessary that input components have a valid state before
they loose focus. Such components can have a InputVerifier
subclass registered, that permits or vetos a focus change request.
Constructor Summary | |
---|---|
InputVerifier()
Creates a InputVerifier |
Method Summary | |
---|---|
boolean |
shouldYieldFocus(JComponent component)
shouldYieldFocus |
abstract boolean |
verify(JComponent component)
verify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputVerifier()
InputVerifier
Method Detail |
---|
public abstract boolean verify(JComponent component)
component
- the component to verify
true
if valid, false
otherwise.public boolean shouldYieldFocus(JComponent component)
component
- the component to verify
true
if valid, false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |