SwatObject
└─SwatUIObject
└─SwatCellRenderer
└─SwatLinkCellRenderer
public class SwatLinkCellRenderer
extends SwatCellRenderer
| Field Summary | |
|---|---|
| string | Optional content type. |
| string | The href attribute in the XHTML anchor tag. |
| mixed | A value or array of values to substitute into the link of this cell. |
| string | The visible content to place within the XHTML anchor tag. |
| mixed | A value or array of values to substitute into the text of this cell. |
| Fields inherited from Swat.SwatCellRenderer | |
|---|---|
| id, sensitive | |
| Fields inherited from Swat.SwatUIObject | |
|---|---|
| classes, html_head_entry_set, parent, visible | |
| Method Summary | |
|---|---|
| array | getDataSpecificCSSClassNames() Gets the data specific CSS class names for this cell renderer. |
| protected void | getLink() |
| protected void | getText() |
| protected void | getTitle() |
| protected boolean | Whether or not this link is sensitive. |
| void | render() Renders the contents of this cell. |
| protected void | Renders this link as not sensitive. |
| protected void | Renders this link as sensitive. |
| Methods inherited from Swat.SwatCellRenderer | |
|---|---|
| getBaseCSSClassNames, getDataSpecificCSSClassNames, getHtmlHeadEntrySet, getInheritanceCSSClassNames, getInlineJavaScript, getMessages, getPropertyNameToMap, hasMessage, init, isPropertyStatic, makePropertyStatic, process, render | |
| Methods inherited from Swat.SwatUIObject | |
|---|---|
| addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible | |
public string $content_type = 'text/plain'
Optional content type
Default text/plain, use text/xml for XHTML fragments.
public string $link
The href attribute in the XHTML anchor tag
Optionally uses vsprintf() syntax, for example:
<?php
$renderer->link = 'MySection/MyPage/%s?id=%s';
?>
public mixed $link_value = null
A value or array of values to substitute into the link of this cell. The value will automatically be url encoded when it is included in the link.
public string $text = ''
The visible content to place within the XHTML anchor tag
Optionally uses vsprintf() syntax, for example:
<?php
$renderer->text = 'Page %s of %s';
?>
public mixed $value = null
A value or array of values to substitute into the text of this cell
The value property may be specified either as an array of values or as
a single value. If an array is passed, a call to vsprintf() is done
on the SwatLinkCellRenderer::$text property. If the value
is a string a single sprintf() call is made.
public array getDataSpecificCSSClassNames()
Gets the data specific CSS class names for this cell renderer
protected void getLink()
protected void getText()
protected void getTitle()
protected boolean isSensitive()
Whether or not this link is sensitive
Depends on the value of the sensitive property and whether or not a link is set.
public void render()
Renders the contents of this cell
protected void renderInsensitive()
Renders this link as not sensitive
protected void renderSensitive()
Renders this link as sensitive
A link cell renderer