| Constructor and Description |
|---|
NumberRenderer() |
NumberRenderer(com.google.gwt.i18n.client.NumberFormat format) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.i18n.client.NumberFormat |
getFormat()
Gets the number format that the number should be formatted in.
|
void |
render(RendererCellReference cell,
Number number)
Called whenever the
Grid updates a cell. |
void |
setFormat(com.google.gwt.i18n.client.NumberFormat format)
Sets the number format to use for formatting the number.
|
public NumberRenderer()
public NumberRenderer(com.google.gwt.i18n.client.NumberFormat format)
public com.google.gwt.i18n.client.NumberFormat getFormat()
public void setFormat(com.google.gwt.i18n.client.NumberFormat format)
throws IllegalArgumentException
format - the format to useIllegalArgumentException - when the format is nullpublic void render(RendererCellReference cell, Number number)
RendererGrid updates a cell.
For optimal performance, work done in this method should be kept to a
minimum since it will be called continuously while the user is scrolling.
It is recommended to set up the cell's DOM structure in
ComplexRenderer.init(RendererCellReference) and only make
incremental updates based on cell data in this method.
Copyright © 2016 Vaadin Ltd. All rights reserved.