webwork.view.taglib.ui.table.renderer
Class LinkCellRenderer

java.lang.Object
  extended bywebwork.view.taglib.ui.table.renderer.AbstractCellRenderer
      extended bywebwork.view.taglib.ui.table.renderer.LinkCellRenderer
All Implemented Interfaces:
CellRenderer

public class LinkCellRenderer
extends AbstractCellRenderer


Field Summary
protected  java.lang.String _cssClass
          the CSS class this link belongs to.
protected  java.lang.String _cssId
          the id attribute this link belongs to.
protected  CellRenderer _delegateRenderer
          this is the actual renderer tha will be used to display the text
protected  java.lang.String _link
          this is the link we are setting (required)
protected  java.lang.String _onclick
          the (Java)script/ function to execute when the link is clicked.
protected  java.lang.String _ondblclick
          the (Java)script/ function to execute when the link is clicked twice.
protected  java.lang.String _onmouseout
          the (Java)script/ function to execute when cursor is away from the link.
protected  java.lang.String _onmouseover
          the (Java)script/ function to execute when cursor is over the link.
protected  java.lang.String _param
          if set there will be a parameter attached to link.
protected  int _paramColumn
          if used the param value will be taken from another column in the table.
protected  java.lang.String _paramValue
          directly set the value for the param.
protected  java.lang.String _target
          the target frame to open in.
protected  java.lang.String _title
          the title attribute this link belongs to.
protected  java.lang.String _trailParams
          additional parameters after the above parameter is generated.
 
Fields inherited from class webwork.view.taglib.ui.table.renderer.AbstractCellRenderer
_alignment
 
Constructor Summary
LinkCellRenderer()
           
 
Method Summary
 java.lang.String getCellValue(WebTable table, java.lang.Object data, int row, int col)
          should the link data be encodeed?
 void setCssClass(java.lang.String cssClass)
           
 void setCssId(java.lang.String cssId)
           
 void setLink(java.lang.String link)
           
 void setOnclick(java.lang.String onclick)
           
 void setOndblclick(java.lang.String ondblclick)
           
 void setOnmouseout(java.lang.String onmouseout)
           
 void setOnmouseover(java.lang.String onmouseover)
           
 void setParam(java.lang.String param)
           
 void setParamColumn(int paramColumn)
           
 void setParamValue(java.lang.String paramValue)
           
 void setRenderer(CellRenderer delegateRenderer)
          used to set the renderer to delgate to.
 void setTarget(java.lang.String target)
           
 void setTitle(java.lang.String title)
           
 void setTrailParams(java.lang.String trailParams)
           
 
Methods inherited from class webwork.view.taglib.ui.table.renderer.AbstractCellRenderer
getAlignment, isAligned, renderCell, setAlignment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_delegateRenderer

protected CellRenderer _delegateRenderer
this is the actual renderer tha will be used to display the text


_link

protected java.lang.String _link
this is the link we are setting (required)


_param

protected java.lang.String _param
if set there will be a parameter attached to link. (optional) This should be extended to allow multiple parameters


_target

protected java.lang.String _target
the target frame to open in. Optional


_trailParams

protected java.lang.String _trailParams
additional parameters after the above parameter is generated. Optional


_cssClass

protected java.lang.String _cssClass
the CSS class this link belongs to. Optional


_cssId

protected java.lang.String _cssId
the id attribute this link belongs to. Optional


_title

protected java.lang.String _title
the title attribute this link belongs to. Optional


_onmouseover

protected java.lang.String _onmouseover
the (Java)script/ function to execute when cursor is over the link. Optional


_onclick

protected java.lang.String _onclick
the (Java)script/ function to execute when the link is clicked. Optional


_ondblclick

protected java.lang.String _ondblclick
the (Java)script/ function to execute when the link is clicked twice. Optional


_onmouseout

protected java.lang.String _onmouseout
the (Java)script/ function to execute when cursor is away from the link. Optional


_paramColumn

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


_paramValue

protected java.lang.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

Constructor Detail

LinkCellRenderer

public LinkCellRenderer()
Method Detail

getCellValue

public java.lang.String getCellValue(WebTable table,
                                     java.lang.Object data,
                                     int row,
                                     int col)
should the link data be encodeed?

Specified by:
getCellValue in class AbstractCellRenderer

setLink

public void setLink(java.lang.String link)

setParam

public void setParam(java.lang.String param)

setTarget

public void setTarget(java.lang.String target)

setParamColumn

public void setParamColumn(int paramColumn)

setTrailParams

public void setTrailParams(java.lang.String trailParams)

setCssClass

public void setCssClass(java.lang.String cssClass)

setCssId

public void setCssId(java.lang.String cssId)

setTitle

public void setTitle(java.lang.String title)

setOnmouseover

public void setOnmouseover(java.lang.String onmouseover)

setOnclick

public void setOnclick(java.lang.String onclick)

setOndblclick

public void setOndblclick(java.lang.String ondblclick)

setOnmouseout

public void setOnmouseout(java.lang.String onmouseout)

setRenderer

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.


setParamValue

public void setParamValue(java.lang.String paramValue)


Copyright © 2001-2003 WebWork All Rights Reserved.