org.rhq.enterprise.gui.legacy.taglib.display
Class MeasurementDataTypeDecorator
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.MeasurementDataTypeDecorator
- All Implemented Interfaces:
- Cloneable, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
public class MeasurementDataTypeDecorator
- extends BaseDecorator
This decorator is used to show the DataType of an entry and then depending on it the
MeasurementCategory of entries.
- Author:
- Heiko W. Rupp
| 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 |
MeasurementDataTypeDecorator
public MeasurementDataTypeDecorator()
decorate
public String decorate(Object columnValue)
- Description copied from class:
BaseDecorator
- The main method to override here. This should look something like this:
String name = null; try { name =
(String) evalAttr("name", this.name, String.class); } catch (NullAttributeException ne) { log.debug("bean " +
this.name + " not found"); return ""; } catch (JspException je) { log.debug("can't evaluate name [" + this.name +
"]: ", je); return ""; } StringBuffer buf = new StringBuffer(1024); buf.append("
| "); buf.append(obj.toString()); buf.append(" | "); return buf.toString()
- Specified by:
decorate in class BaseDecorator
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.