|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.grid.renderers.NumberRenderer
T - The number type to render.public class NumberRenderer
Renders a number into a cell using a specific NumberFormat. By
default uses the default number format returned by
NumberFormat#getDecimalFormat().
| Constructor Summary | |
|---|---|
NumberRenderer()
|
|
NumberRenderer(NumberFormat format)
|
|
| Method Summary | |
|---|---|
NumberFormat |
getFormat()
Gets the number format that the number should be formatted in. |
void |
render(FlyweightCell cell,
java.lang.Number number)
Called whenever the Grid updates a cell |
void |
setFormat(NumberFormat format)
Sets the number format to use for formatting the number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumberRenderer()
public NumberRenderer(NumberFormat format)
| Method Detail |
|---|
public NumberFormat getFormat()
public void setFormat(NumberFormat format)
throws java.lang.IllegalArgumentException
format - the format to use
java.lang.IllegalArgumentException - when the format is null
public void render(FlyweightCell cell,
java.lang.Number number)
RendererGrid updates a cell
render in interface Renderer<java.lang.Number>cell - The cell. Note that the cell is a flyweight and should not be
stored outside of the method as it will change.number - The column data object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||