Package org.deltava.taglib.format
Class AirportTypeTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.format.UserSettingsTag
org.deltava.taglib.format.AirportTypeTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to determine whether the user wants to display ICAO or IATA airport codes, and saves the result in a page
attribute.
- Since:
- 2.7
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class org.deltava.taglib.format.UserSettingsTag
_user
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
Writes whether the user wishes to view ICAO codes to a page attribute.final void
setPageContext
(PageContext ctxt) Sets the tag's JSP context and loads the code type to display from the user's preferences.void
Sets the page attribute name.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
-
Constructor Details
-
AirportTypeTag
public AirportTypeTag()
-
-
Method Details
-
setVar
Sets the page attribute name.- Parameters:
attrName
- the attribute name
-
setPageContext
Sets the tag's JSP context and loads the code type to display from the user's preferences.- Specified by:
setPageContext
in interfaceTag
- Overrides:
setPageContext
in classUserSettingsTag
- Parameters:
ctxt
- the JSP context- See Also:
-
doEndTag
Writes whether the user wishes to view ICAO codes to a page attribute.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an error occurs
-