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