Package org.deltava.taglib.content
Class OSFilterTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.content.OSFilterTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to filter content based on the client operating system.
- Since:
- 2.2
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
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()
Closes the JSP, and releases state.int
Determines whether the enclosed content should be rendered to the JSP output stream.void
release()
Clears state by reseting the display list.void
setIOS
(boolean show) Sets whether the tag body should be displayed to a browser running iOS.void
setLinux
(boolean show) Sets whether the tag body should be displayed to a browser running Linux.void
setMac
(boolean show) Sets whether the tag body should be displayed to a browser running Mac OS.void
setWindows
(boolean show) Sets whether the tag body should be displayed to a browser running Microsoft Windows.Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
OSFilterTag
public OSFilterTag()
-
-
Method Details
-
setWindows
public void setWindows(boolean show) Sets whether the tag body should be displayed to a browser running Microsoft Windows.- Parameters:
show
- TRUE if the body should be displayed, otherwise FALSE
-
setMac
public void setMac(boolean show) Sets whether the tag body should be displayed to a browser running Mac OS.- Parameters:
show
- TRUE if the body should be displayed, otherwise FALSE
-
setIOS
public void setIOS(boolean show) Sets whether the tag body should be displayed to a browser running iOS.- Parameters:
show
- TRUE if the body should be displayed, otherwise FALSE
-
setLinux
public void setLinux(boolean show) Sets whether the tag body should be displayed to a browser running Linux.- Parameters:
show
- TRUE if the body should be displayed, otherwise FALSE
-
release
public void release()Clears state by reseting the display list.- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
doStartTag
public int doStartTag()Determines whether the enclosed content should be rendered to the JSP output stream.- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
- Returns:
- TagSupport.EVAL_BODY_INCLUDE or TagSupport.SKIP_BODY
-
doEndTag
public int doEndTag()Closes the JSP, and releases state.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- EVAL_PAGE
-