Home » struts-2.1.8.1-src » org.apache » struts2 » components » table » renderer » [javadoc | source]
org.apache.struts2.components.table.renderer
public class: LinkCellRenderer [javadoc | source]
java.lang.Object
   org.apache.struts2.components.table.renderer.AbstractCellRenderer
      org.apache.struts2.components.table.renderer.LinkCellRenderer

All Implemented Interfaces:
    CellRenderer

Field Summary
protected  CellRenderer _delegateRenderer    this is the actual renderer tha will be used to display the text 
protected  String _cssClass    the CSS class this link belongs to. Optional 
protected  String _cssId    the id attribute this link belongs to. Optional 
protected  String _link    this is the link we are setting (required) 
protected  String _onclick    the (Java)script/ function to execute when the link is clicked. Optional 
protected  String _ondblclick    the (Java)script/ function to execute when the link is clicked twice. Optional 
protected  String _onmouseout    the (Java)script/ function to execute when cursor is away from the link. Optional 
protected  String _onmouseover    the (Java)script/ function to execute when cursor is over the link. Optional 
protected  String _param    if set there will be a parameter attached to link. (optional) This should be extended to allow multiple parameters 
protected  String _paramValue    directly set the value for the param. Will overide paramColumn if set. optional. Either this or paramColumn must be set if param is used. Will be ignored if param not used 
protected  String _target    the target frame to open in. Optional 
protected  String _title    the title attribute this link belongs to. Optional 
protected  String _trailParams    additional parameters after the above parameter is generated. Optional 
protected  int _paramColumn    if used the param value will be taken from another column in the table. Useful if each row needs a different paramter. The paramter can be taken from a hidden cell. if paramValue is also set it will overrid this. (option either this or paramValue must be set if param is used. Will be ignored if param not used 
Fields inherited from org.apache.struts2.components.table.renderer.AbstractCellRenderer:
_alignment
Constructor:
 public LinkCellRenderer() 
Method from org.apache.struts2.components.table.renderer.LinkCellRenderer Summary:
getCellValue,   setCssClass,   setCssId,   setLink,   setOnclick,   setOndblclick,   setOnmouseout,   setOnmouseover,   setParam,   setParamColumn,   setParamValue,   setRenderer,   setTarget,   setTitle,   setTrailParams
Methods from org.apache.struts2.components.table.renderer.AbstractCellRenderer:
getAlignment,   getCellValue,   isAligned,   renderCell,   setAlignment
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts2.components.table.renderer.LinkCellRenderer Detail:
 public String getCellValue(WebTable table,
    Object data,
    int row,
    int col) 
    should the link data be encodeed?
 public  void setCssClass(String cssClass) 
 public  void setCssId(String cssId) 
 public  void setLink(String link) 
 public  void setOnclick(String onclick) 
 public  void setOndblclick(String ondblclick) 
 public  void setOnmouseout(String onmouseout) 
 public  void setOnmouseover(String onmouseover) 
 public  void setParam(String param) 
 public  void setParamColumn(int paramColumn) 
 public  void setParamValue(String paramValue) 
 public  void setRenderer(CellRenderer delegateRenderer) 
    used to set the renderer to delgate to. if the render is an AbstractCellRenderer then it will take the alignment from the delegate renderer and set it that way.
 public  void setTarget(String target) 
 public  void setTitle(String title) 
 public  void setTrailParams(String trailParams)