TelnetD at SF

net.wimpi.telnetd.io.toolkit
Interface InputValidator


public interface InputValidator

Interface that has to be implemented by any class that should be registerable as input validator for Editfield instances.

Version:
2.0 (13/03/2005)
Author:
Dieter Wimberger

Method Summary
 boolean validate(java.lang.String str)
          Method that is called by the Editfield the InputValidator instance has been registered with on the Users signal that he finished editing his/her input.
 

Method Detail

validate

public boolean validate(java.lang.String str)
Method that is called by the Editfield the InputValidator instance has been registered with on the Users signal that he finished editing his/her input. This gives the InputValidator the opportunity to check if the users input is valid.

Parameters:
str - String representing the Editfields value.
Returns:
boolean representing if input was valid or not (and user has to reedit).

TelnetD at SF

Copyright 2000-2005 Dieter Wimberger.