SwatObject
└─SwatUIObject
└─SwatCellRenderer
└─SwatBooleanCellRenderer
public class SwatBooleanCellRenderer
extends SwatCellRenderer
| Field Summary | |
|---|---|
| string | Optional content type. |
| string | Optional content to display for a false value. |
| string | The stock id of this SwatBooleanCellRenderer. |
| string | Optional content to display for a true value. |
| boolean | Value of this cell. |
| Fields inherited from Swat.SwatCellRenderer | |
|---|---|
| id, sensitive | |
| Fields inherited from Swat.SwatUIObject | |
|---|---|
| classes, html_head_entry_set, parent, visible | |
| Method Summary | |
|---|---|
| protected void | Renders a checkmark image for this boolean cell renderer. |
| void | render() Renders the contents of this cell. |
| protected void | Renders a false value for this boolean cell renderer. |
| protected void | Renders a true value for this boolean cell renderer. |
| void | setFromStock(string stock_id, boolean overwrite_properties) Sets the values of this boolean cell renderer to a stock type. |
| 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
Defaults to text/plain, use text/xml for XHTML fragments.
public string $false_content = null
Optional content to display for a false value.
public string $stock_id = null
The stock id of this SwatBooleanCellRenderer
Specifying a stock id initializes this boolean cell renderer with a set of stock values.
public string $true_content = null
Optional content to display for a true value.
public boolean $value
Value of this cell
The boolean value to display in this cell.
protected void displayCheck()
Renders a checkmark image for this boolean cell renderer
This is used when this cell renderer has a
SwatBooleanCellRenderer::$stock_id of 'check-only'.
public void render()
Renders the contents of this cell
protected void renderFalse()
Renders a false value for this boolean cell renderer
protected void renderTrue()
Renders a true value for this boolean cell renderer
public void setFromStock(string stock_id, boolean overwrite_properties)
Sets the values of this boolean cell renderer to a stock type
Valid stock type ids are:
stock_id - the identifier of the stock type to use.overwrite_properties - optional. Whether to overwrite properties if they are already set. By default, properties are overwritten.
A cell renderer for a boolean value