Package tripleplay.ui
Class Field.MaxLength
java.lang.Object
tripleplay.ui.Field.MaxLength
- All Implemented Interfaces:
Field.Validator
- Enclosing class:
Field
Blocks keypresses for a native text field when the length is at a given maximum.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
max
public final int maxThe maximum length accepted.
-
-
Constructor Details
-
MaxLength
public MaxLength(int max)
-
-
Method Details
-
isValid
Description copied from interface:Field.Validator
Return false if the keypress causing this text should be blocked.- Specified by:
isValid
in interfaceField.Validator
-