org.rhq.enterprise.gui.legacy.taglib.display
Class ImageDecorator

java.lang.Object
  extended by org.rhq.enterprise.gui.legacy.taglib.display.Decorator
      extended by org.rhq.enterprise.gui.legacy.taglib.display.ColumnDecorator
          extended by org.rhq.enterprise.gui.legacy.taglib.display.BaseDecorator
              extended by org.rhq.enterprise.gui.legacy.taglib.display.ImageDecorator
All Implemented Interfaces:
Cloneable, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class ImageDecorator
extends BaseDecorator

The ImageDecorator is nice for when the images are within a table and may have attributes that would need to reflect the changing values in iteration loop


Field Summary
 
Fields inherited from class org.rhq.enterprise.gui.legacy.taglib.display.ColumnDecorator
columnTag
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ImageDecorator()
           
 
Method Summary
 String decorate(Object columnValue)
          The main method to override here.
 String getBorder()
          Returns the border_el.
 String getOnmouseout()
          Returns the onmouseout_el.
 String getOnmouseover()
          Returns the onmouseover_el.
 String getSrc()
          Returns the src_el.
 void release()
           
 void setBorder(String border_el)
          Sets the border_el.
 void setOnmouseout(String onmouseout_el)
          Sets the onmouseout_el.
 void setOnmouseover(String onmouseover_el)
          Sets the onmouseover_el.
 void setSrc(String src_el)
          Sets the src_el.
 
Methods inherited from class org.rhq.enterprise.gui.legacy.taglib.display.BaseDecorator
doEndTag, doStartTag, evalAttr, generateErrorComment, getName, getParent, setName, setParent
 
Methods inherited from class org.rhq.enterprise.gui.legacy.taglib.display.ColumnDecorator
getColumnTag, setColumnTag
 
Methods inherited from class org.rhq.enterprise.gui.legacy.taglib.display.Decorator
finish, finishRow, getList, getListIndex, getObject, getPageContext, getViewIndex, init, initRow, setPageContext
 
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
 

Constructor Detail

ImageDecorator

public ImageDecorator()
Method Detail

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

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BaseDecorator

getBorder

public String getBorder()
Returns the border_el.

Returns:
String

getOnmouseover

public String getOnmouseover()
Returns the onmouseover_el.

Returns:
String

getOnmouseout

public String getOnmouseout()
Returns the onmouseout_el.

Returns:
String

getSrc

public String getSrc()
Returns the src_el.

Returns:
String

setBorder

public void setBorder(String border_el)
Sets the border_el.

Parameters:
border_el - The border_el to set

setOnmouseover

public void setOnmouseover(String onmouseover_el)
Sets the onmouseover_el.

Parameters:
onmouseover_el - The onmouseover_el to set

setOnmouseout

public void setOnmouseout(String onmouseout_el)
Sets the onmouseout_el.

Parameters:
onmouseout_el - The onmouseout_el to set

setSrc

public void setSrc(String src_el)
Sets the src_el.

Parameters:
src_el - The src_el to set


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.