public class HtmlDecorator extends BaseDecorator
columnTag| Constructor and Description |
|---|
HtmlDecorator() |
| Modifier and Type | Method and Description |
|---|---|
String |
decorate(Object obj)
The main method to override here.
|
doEndTag, doStartTag, evalAttr, generateErrorComment, getName, getParent, release, setName, setParentgetColumnTag, setColumnTagfinish, finishRow, getList, getListIndex, getObject, getPageContext, getViewIndex, init, initRow, setPageContextpublic String decorate(Object obj)
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 BaseDecoratorCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.