Package io.jmix.flowui.component
Interface HasLengthLimited
- All Known Implementing Classes:
JmixEmailField,JmixTextArea,TypedTextField
public interface HasLengthLimited
A component that may have a limit on the number of characters (in Unicode code points) that the user can enter.
-
Method Summary
Modifier and TypeMethodDescriptionintMaximum number of characters (in Unicode code points) that the user can enter.intMinimum number of characters (in Unicode code points) that the user can enter.voidsetMaxLength(int maxLength) Maximum number of characters (in Unicode code points) that the user can enter.voidsetMinLength(int minLength) Minimum number of characters (in Unicode code points) that the user can enter.
-
Method Details
-
getMinLength
int getMinLength()Minimum number of characters (in Unicode code points) that the user can enter.- Returns:
- the
minlengthproperty from the webcomponent
-
setMinLength
void setMinLength(int minLength) Minimum number of characters (in Unicode code points) that the user can enter.- Parameters:
minLength- the minimum length
-
getMaxLength
int getMaxLength()Maximum number of characters (in Unicode code points) that the user can enter.- Returns:
- the
maxlengthproperty from the webcomponent
-
setMaxLength
void setMaxLength(int maxLength) Maximum number of characters (in Unicode code points) that the user can enter.- Parameters:
maxLength- the maximum length
-