public class EqualsDecorator extends BaseDecorator implements Cloneable
columnTag| Constructor and Description |
|---|
EqualsDecorator() |
| Modifier and Type | Method and Description |
|---|---|
String |
decorate(Object columnValue)
The main method to override here.
|
int |
doStartTag() |
void |
release() |
void |
setFlagKey(String theFlagKey)
Sets the message prefix that respresents a boolean result
|
void |
setValue(String theValue) |
doEndTag, evalAttr, generateErrorComment, getName, getParent, setName, setParentgetColumnTag, setColumnTagfinish, finishRow, getList, getListIndex, getObject, getPageContext, getViewIndex, init, initRow, setPageContextpublic void setFlagKey(String theFlagKey)
theFlagKey - a String that will have "true" or "false" appended to it to look up in the application
propertiespublic void setValue(String theValue)
public String decorate(Object columnValue)
BaseDecoratorString 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()decorate in class BaseDecoratorpublic int doStartTag()
throws javax.servlet.jsp.JspTagException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class BaseDecoratorjavax.servlet.jsp.JspTagExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class BaseDecoratorCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.