Class MaxSizable
java.lang.Object
fc.web.forms.Field
fc.web.forms.AbstractText
fc.web.forms.MaxSizable
Represents an HTML field that accepts a 'maxlength' html
attribute
-
Nested Class Summary
Nested classes/interfaces inherited from class Field
Field.Type -
Method Summary
Modifier and TypeMethodDescriptionsetMaxSize(int maxlen) Specifies the maximum number of characters a text box can accept.setSize(int size) Specifies the size of this text box.Methods inherited from class AbstractText
getBooleanValue, getDoubleValue, getFloatValue, getIntValue, getShortValue, getStringValue, getValue, isFilled, reset, setValue, setValue, setValueFromSubmit, toString, trimValuesMethods inherited from class Field
add, addError, addLabel, addString, disable, disable, enable, enable, getLabel, getName, getType, getValidateErrors, isEnabled, render, render, render, renderError, renderError, renderImpl, renderStyleTag, setStyleTag, validate
-
Method Details
-
setSize
Specifies the size of this text box. This value (if set) is rendered as the html SIZE tag.- Returns:
- this object for method chaining convenience
-
setMaxSize
Specifies the maximum number of characters a text box can accept. This value (if set) is rendered as the html MAXLENGTH tag.- Returns:
- this object for method chaining convenience
-