public class LinkCellRenderer extends AbstractCellRenderer
| Modifier and Type | Field and Description |
|---|---|
protected String |
_cssClass
the CSS class this link belongs to.
|
protected 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 String |
_link
this is the link we are setting (required)
|
protected String |
_onclick
the (Java)script/ function to execute when the link is clicked.
|
protected String |
_ondblclick
the (Java)script/ function to execute when the link is clicked twice.
|
protected String |
_onmouseout
the (Java)script/ function to execute when cursor is away from the link.
|
protected String |
_onmouseover
the (Java)script/ function to execute when cursor is over the link.
|
protected 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 String |
_paramValue
directly set the value for the param.
|
protected String |
_target
the target frame to open in.
|
protected String |
_title
the title attribute this link belongs to.
|
protected String |
_trailParams
additional parameters after the above parameter is generated.
|
_alignment| Constructor and Description |
|---|
LinkCellRenderer() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCellValue(WebTable table,
Object data,
int row,
int col)
should the link data be encodeed?
|
void |
setCssClass(String cssClass) |
void |
setCssId(String cssId) |
void |
setLink(String link) |
void |
setOnclick(String onclick) |
void |
setOndblclick(String ondblclick) |
void |
setOnmouseout(String onmouseout) |
void |
setOnmouseover(String onmouseover) |
void |
setParam(String param) |
void |
setParamColumn(int paramColumn) |
void |
setParamValue(String paramValue) |
void |
setRenderer(CellRenderer delegateRenderer)
used to set the renderer to delgate to.
|
void |
setTarget(String target) |
void |
setTitle(String title) |
void |
setTrailParams(String trailParams) |
getAlignment, isAligned, renderCell, setAlignmentprotected CellRenderer _delegateRenderer
protected String _link
protected String _param
protected String _target
protected String _trailParams
protected String _cssClass
protected String _cssId
protected String _title
protected String _onmouseover
protected String _onclick
protected String _ondblclick
protected String _onmouseout
protected int _paramColumn
protected String _paramValue
public String getCellValue(WebTable table, Object data, int row, int col)
getCellValue in class AbstractCellRendererpublic void setLink(String link)
public void setParam(String param)
public void setTarget(String target)
public void setParamColumn(int paramColumn)
public void setTrailParams(String trailParams)
public void setCssClass(String cssClass)
public void setCssId(String cssId)
public void setTitle(String title)
public void setOnmouseover(String onmouseover)
public void setOnclick(String onclick)
public void setOndblclick(String ondblclick)
public void setOnmouseout(String onmouseout)
public void setRenderer(CellRenderer delegateRenderer)
public void setParamValue(String paramValue)
Copyright © 2013 Atlassian. All Rights Reserved.