|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.rhq.enterprise.gui.legacy.taglib.MetricDisplayTag
public class MetricDisplayTag
This is a locale aware tag for displaying metrics and units. Suppose you have a metricDisplaySummary.setMin(9234289)
and metricDisplaySummary.setUnit("bytes") set in the bean, this tag allows you to say:
| Field Summary | |
|---|---|
protected String |
bundle
|
protected String |
locale
|
static org.apache.commons.logging.Log |
log
|
| 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 | |
|---|---|
MetricDisplayTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
|
int |
doStartTag()
|
String |
getDefaultKey()
Returns the defaultKey. |
String |
getLongDate()
Returns the flag for whether or not the metric is a long/date |
String |
getMetric()
Returns the metric. |
String |
getSpan()
Returns the span. |
String |
getUnit()
Returns the unit. |
void |
release()
|
void |
setDefaultKey(String defaultKey)
Sets the defaultKey. |
void |
setLongDate(String longDate)
|
void |
setMetric(String metric)
Sets the metric. |
void |
setSpan(String span)
Sets the span. |
void |
setUnit(String unit)
Sets the unit. |
void |
validate()
|
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static org.apache.commons.logging.Log log
protected String locale
protected String bundle
| Constructor Detail |
|---|
public MetricDisplayTag()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public void validate()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupport
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic String getMetric()
public void setMetric(String metric)
metric - The metric to setpublic String getSpan()
public void setDefaultKey(String defaultKey)
defaultKey - The defaultKey to setpublic String getDefaultKey()
public void setSpan(String span)
span - The span to setpublic String getUnit()
public void setLongDate(String longDate)
longDate - public String getLongDate()
public void setUnit(String unit)
unit - The unit to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||