org.rhq.enterprise.gui.legacy.taglib.display
Class GroupMetricsDecorator
java.lang.Object
org.rhq.enterprise.gui.legacy.taglib.display.Decorator
org.rhq.enterprise.gui.legacy.taglib.display.ColumnDecorator
org.rhq.enterprise.gui.legacy.taglib.display.BaseDecorator
org.rhq.enterprise.gui.legacy.taglib.display.GroupMetricsDecorator
- All Implemented Interfaces:
- Cloneable, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class GroupMetricsDecorator
- extends BaseDecorator
This class acts as a decorator for tables, displaying "YES" "NO" or "SOME", depending if total is 0, equal to, or
less than active.
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
setPageContext |
locale
protected String locale
bundle
protected String bundle
GroupMetricsDecorator
public GroupMetricsDecorator()
decorate
public String decorate(Object obj)
- Compares active and total, and outputs "YES" "NO" or "SOME"
- Specified by:
decorate in class BaseDecorator
- Parameters:
obj - Does not use this value
- Returns:
- formatted date
release
public void release()
- Specified by:
release in interface javax.servlet.jsp.tagext.Tag- Overrides:
release in class BaseDecorator
getActive
public String getActive()
- Getter for property active.
- Returns:
- Value of property active.
setActive
public void setActive(String active)
- Setter for property active.
- Parameters:
active - New value of property active.
getTotal
public String getTotal()
- Getter for property total.
- Returns:
- Value of property total.
setTotal
public void setTotal(String total)
- Setter for property total.
- Parameters:
total - New value of property total.
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.