Package org.deltava.taglib.format
Class AirportFormatTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.format.UserSettingsTag
org.deltava.taglib.format.AirportFormatTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to selectively display airport codes.
- Since:
- 1.0
- 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 the specific code type to the JSP output stream.void
Sets the airport to display.void
Sets the code type to display.final void
setPageContext
(PageContext ctxt) Sets the tag's JSP context and loads the code type to display from the user's preferences.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
-
Constructor Details
-
AirportFormatTag
public AirportFormatTag()
-
-
Method Details
-
setAirport
Sets the airport to display.- Parameters:
a
- the Airport to display
-
setCode
Sets the code type to display.- Parameters:
codeType
- a code type constant
-
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 the specific code type to the JSP output stream.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- TagSupport.EVAL_PAGE
- Throws:
JspException
- if an error occurs
-