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
_userFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()voidrelease()voidsetClassName(String cn) Sets the completed progress bar CSS class name.voidsetLevel(EliteLevel lvl) Sets the Elite level progress to render.voidsetPageContext(PageContext ctxt) Sets the tag's JSP context and loads the user data.voidsetPercent(boolean isPct) Sets whether the width of the progress bar is in percent.voidsetPrev(EliteLevel lvl) Sets the previous Elite level.voidsetProgress(int p) Sets the Elite level progress.voidSets the remaining progress bar CSS class name.voidsetShowUnits(boolean showUnits) Sets whether to display units in the progress bar text.voidSets the units to display.voidsetWidth(int w) Sets the progress bar width base.voidsetWidthType(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:UserSettingsTagSets the tag's JSP context and loads the user data.- Specified by:
setPageContextin interfaceTag- Overrides:
setPageContextin classUserSettingsTag- Parameters:
ctxt- the JSP context
-
doEndTag
- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Throws:
JspException
-
release
public void release()- Specified by:
releasein interfaceTag- Overrides:
releasein classTagSupport
-