silverorange Code


Swat.SwatNumericCellRenderer
/Swat/SwatNumericCellRenderer.php at line 15

Class SwatNumericCellRenderer

SwatObject
└─SwatUIObject
└─SwatCellRenderer
└─SwatNumericCellRenderer

public class SwatNumericCellRenderer
extends SwatCellRenderer

A numeric cell renderer

Copyright:
2006-2007 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
integer

$precision

Precision.

float

$value

Value can be either a float or an integer.

Fields inherited from Swat.SwatCellRenderer
id, sensitive
Fields inherited from Swat.SwatUIObject
classes, html_head_entry_set, parent, visible
Method Summary
void

getDisplayValue()

void

render()

Renders the contents of this cell.

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

Field Detail

/Swat/SwatNumericCellRenderer.php at line 33

precision

public integer $precision = null

Precision

Optionally round the value to a certain precision


/Swat/SwatNumericCellRenderer.php at line 24

value

public float $value

Value can be either a float or an integer


Method Detail

/Swat/SwatNumericCellRenderer.php at line 56

getDisplayValue

public void getDisplayValue()

/Swat/SwatNumericCellRenderer.php at line 43

render

public void render()

Renders the contents of this cell

See Also:
SwatCellRenderer::render()

silverorange Code