Class EliteProgressTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.format.UserSettingsTag
org.deltava.taglib.format.EliteProgressTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
A JSP tag to display Elite level progress bars.
- Since:
- 9.2
- Version:
- 9.2
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
doEndTag()
void
release()
void
setClassName
(String cn) Sets the completed progress bar CSS class name.void
setLevel
(EliteLevel lvl) Sets the Elite level progress to render.void
setPageContext
(PageContext ctxt) Sets the tag's JSP context and loads the user data.void
setPercent
(boolean isPct) Sets whether the width of the progress bar is in percent.void
setPrev
(EliteLevel lvl) Sets the previous Elite level.void
setProgress
(int p) Sets the Elite level progress.void
Sets the remaining progress bar CSS class name.void
setShowUnits
(boolean showUnits) Sets whether to display units in the progress bar text.void
Sets the units to display.void
setWidth
(int w) Sets the progress bar width base.void
setWidthType
(String wt) Sets the total bar width type.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Constructor Details
-
EliteProgressTag
public EliteProgressTag()
-
-
Method Details
-
setProgress
public void setProgress(int p) Sets the Elite level progress.- Parameters:
p
- the progress in units
-
setWidth
public void setWidth(int w) Sets the progress bar width base.- Parameters:
w
- the base width
-
setWidthType
Sets the total bar width type.- Parameters:
wt
- P for proportional, F for fixed or L for log5
-
setPercent
public void setPercent(boolean isPct) Sets whether the width of the progress bar is in percent.- Parameters:
isPct
- TRUE if percent, FALSE if pixels
-
setShowUnits
public void setShowUnits(boolean showUnits) Sets whether to display units in the progress bar text.- Parameters:
showUnits
- TRUE if units displayed, otherwise FALSE
-
setUnits
-
setLevel
Sets the Elite level progress to render.- Parameters:
lvl
- the EliteLevel
-
setPrev
Sets the previous Elite level.- Parameters:
lvl
- the previous EliteLevel
-
setClassName
Sets the completed progress bar CSS class name.- Parameters:
cn
- the class name
-
setRemainingClassName
Sets the remaining progress bar CSS class name.- Parameters:
cn
- the class name
-
setPageContext
Description copied from class:UserSettingsTag
Sets the tag's JSP context and loads the user data.- Specified by:
setPageContext
in interfaceTag
- Overrides:
setPageContext
in classUserSettingsTag
- Parameters:
ctxt
- the JSP context
-
doEndTag
- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Throws:
JspException
-
release
public void release()- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-