Class IntegerInputTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
An HTML 5 JSP tag for integer input elements.
- Since:
- 5.0
- Version:
- 8.6
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class HTML5InputTag
_dateFmt, _timeFmtFields inherited from class FormElementTag
_valueFields inherited from class ElementTag
_classes, _data, _outModifier and TypeFieldDescriptionprotected final Collection<String> protected final XMLRendererprotected jakarta.servlet.jsp.JspWriterFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class NumberInputTag
doStartTagModifier and TypeMethodDescriptionintCreates a number input field if executing in an HTML5 browser.Methods inherited from class HTML5InputTag
isHTML5, release, removeHTML5Attributes, setPageContextModifier and TypeMethodDescriptionprotected booleanisHTML5()Helper method to determine whether HTML5 support is enabled and the browser is comptable.voidrelease()Releases the tag's state variables.protected voidStrips out HTML5-specific attributes.voidsetPageContext(jakarta.servlet.jsp.PageContext ctxt) Updates this tag's page context and extracts HTML4-specific formatting codes.Methods inherited from class InputTag
doEndTag, setAutoComplete, setAutofill, setDisabled, setOnBlur, setOnChange, setOnKeypress, setOnKeyup, setOnRightClick, setPlaceholder, setReadOnly, setSize, setSpellcheck, setTypeModifier and TypeMethodDescriptionintdoEndTag()Generates the HTML for this Input element.voidsetAutoComplete(boolean isAutoComplete) Disables or enables autocomplete support for this field.voidsetAutofill(String token) Sets the autofill token for this field.voidsetDisabled(boolean disabled) Marks this field as disabled.voidSets the JavaScript event for this element's onBlur() event.voidsetOnChange(String jsCode) Sets the JavaScript event for this element's onChange() event.voidsetOnKeypress(String jsCode) Sets the JavaScript event for this element's onKeyPress() event.voidsetOnKeyup(String jsCode) Sets the JavaScript event for this element's onKeyUp() event.voidSets the Javascript to execute when the element is right-clicked.voidsetPlaceholder(String ph) Sets the placeholder for this field.voidsetReadOnly(boolean readOnly) Marks this field as read-only.voidsetSize(int len) Sets the size of this field.voidsetSpellcheck(boolean sc) Marks this field as spellcheckable.voidSets the HTML field type.Methods inherited from class FormElementTag
setDelimValues, setIdx, setName, setRequired, setValue, validateStateModifier and TypeMethodDescriptionvoidsetDelimValues(String values) Sets multiple values for this input element.voidSets the tab index of this field.voidSets the name of this field.voidsetRequired(boolean isRequired) Sets this field as required for HTML5 browsers.voidSets the value of this input element.protected voidValidates tag state.Methods inherited from class ElementTag
getFormIndexCount, getName, getParentFormTag, setClassName, setID, setNumericAttr, setStyleModifier and TypeMethodDescriptionprotected intGets and increments the current tab index count for the parent form tag.protected StringgetName()Returns the type of HTML element this tag generated.protected FormTagReturns the parent form tag.voidsetClassName(String cName) Sets the CSS class name of this HTML element.voidSets the ID of this HTML element.protected voidsetNumericAttr(String attrName, int value, int minValue) Sets a numeric attribute.voidAssociates a CSS style with this HTML element.Methods inherited from class BrowserInfoTag
getBrowserContext, passedCAPTCHAModifier and TypeMethodDescriptionprotected HTTPContextDataFetches the browser data.protected booleanReturns whether the user has passed CAPTCHA validation.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
IntegerInputTag
public IntegerInputTag()
-
-
Method Details
-
setMax
-
setMin
public void setMin(int n) Sets the minimum value.- Parameters:
n- the value
-
setStep
public void setStep(int s) Sets the value stepping interval.- Parameters:
s- the interval
-