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 TypeMethodDescriptionint
Maximum number of characters (in Unicode code points) that the user can enter.int
Minimum number of characters (in Unicode code points) that the user can enter.void
setMaxLength
(int maxLength) Maximum number of characters (in Unicode code points) that the user can enter.void
setMinLength
(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
minlength
property 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
maxlength
property 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
-