Interface semper.preferences.StringConstraints
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface semper.preferences.StringConstraints

public interface StringConstraints
extends Object
extends Streamable
String fields are formed by a label followed by a text input component. The StringConstraints interface allows to define constraints for the text input the user may specified.
Version:
$Revision: 1.3 $ $Date: 1997/01/17 19:53:16 $
Author:
Louis Salvail
See Also:
PrefFieldString, NoStringConstraints, IntegerStringConstraints

Method Index

 o convert(String)
This convert a string to internal representation.
 o isSatisfied(String)
This returns whether or not a string satisfies the constraints.
 o showInfo(Frame, String)
This method is used to display information to the user when the string does not satisfy the constraints.

Methods

 o isSatisfied
  public abstract boolean isSatisfied(String s)
This returns whether or not a string satisfies the constraints.
Parameters:
s - is a string for testing that the constraints are satisfied
Returns:
true if and only if the string satisfies the constraint.
See Also:
PrefFieldString
 o convert
  public abstract Object convert(String s) throws StringConversionException
This convert a string to internal representation.
Parameters:
s - is the string to convert.
Returns:
the internal value of the input string.
Throws: StringConversionException
if the input string is not allowed.
 o showInfo
  public abstract void showInfo(Frame parent,
                                String fieldName)
This method is used to display information to the user when the string does not satisfy the constraints.
Parameters:
frame - is the parent frame for the information window.
fieldName - is the name of the erroneous field
Returns:
none.

All Packages  Class Hierarchy  This Package  Previous  Next  Index