Class AirportCodeTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.html.ElementTag
org.deltava.taglib.html.FormElementTag
org.deltava.taglib.html.InputTag
org.deltava.taglib.html.AirportCodeTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
A JSP tag to render airport code text boxes.
- Since:
- 6.0
- Version:
- 8.1
- Author:
- Luke
- See Also:
-
Field Summary
Fields 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
Modifier and TypeMethodDescriptionintSets default tag options and opens the tag.voidrelease()Releases the tag's state variables.voidSets the airport choice.voidSets the airport selection combobox name.voidsetPageContext(jakarta.servlet.jsp.PageContext ctxt) Fetches the airport code type from the authenticated user, if present.Methods inherited from class InputTag
doEndTag, setAutoComplete, setAutofill, setDisabled, setMax, 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.voidsetMax(int maxLen) Sets the maximum length of this field.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
-
AirportCodeTag
public AirportCodeTag()
-
-
Method Details
-
setCombo
Sets the airport selection combobox name.- Parameters:
fName- the combobox name
-
setAirport
-
setPageContext
public void setPageContext(jakarta.servlet.jsp.PageContext ctxt) Fetches the airport code type from the authenticated user, if present.- Specified by:
setPageContextin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
setPageContextin classElementTag- Parameters:
ctxt- the PageContext
-
release
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionSets default tag options and opens the tag.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classElementTag- Returns:
- EVAL_BODY_INCLUDE always
- Throws:
jakarta.servlet.jsp.JspException- if an error occurs
-