ru.goodidea.df.constructor
Class FieldInputVerifier

java.lang.Object
  extended by javax.swing.InputVerifier
      extended by ru.goodidea.df.constructor.FieldInputVerifier

public class FieldInputVerifier
extends javax.swing.InputVerifier

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
Konstantin Pupkov

Constructor Summary
FieldInputVerifier(PanelBuildable field)
           
 
Method Summary
 Constraint getConstraint()
           
 void setConstraint(Constraint constraint)
           
 boolean shouldYieldFocus(javax.swing.JComponent input)
          Calls verify(input) to ensure that the input is valid.
 boolean verify(javax.swing.JComponent input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldInputVerifier

public FieldInputVerifier(PanelBuildable field)
Method Detail

verify

public boolean verify(javax.swing.JComponent input)
Specified by:
verify in class javax.swing.InputVerifier

getConstraint

public Constraint getConstraint()

setConstraint

public void setConstraint(Constraint constraint)

shouldYieldFocus

public boolean shouldYieldFocus(javax.swing.JComponent input)
Calls verify(input) to ensure that the input is valid.

Overrides:
shouldYieldFocus in class javax.swing.InputVerifier
Parameters:
input - the JComponent to verify
Returns:
true when valid, false when invalid


Copyright © 2009. All Rights Reserved.