All Packages Class Hierarchy This Package Previous Next Index
Interface semper.preferences.StringConstraints
- public interface StringConstraints
- extends Serializable
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.6 $ $Date: 1997/09/26 16:29:43 $
- Author:
- Louis Salvail
- See Also:
- PrefFieldString, NoStringConstraints, IntegerStringConstraints
-
convert(String)
-
This convert a string to internal representation.
-
isSatisfied(String)
-
This returns whether or not a string satisfies the constraints.
-
showInfo(Frame, String)
-
This method is used to display information to the user when
the string does not satisfy the constraints.
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
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.
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