|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
com.vaadin.ui.components.grid.AbstractRenderer<java.lang.Number>
com.vaadin.ui.components.grid.renderers.NumberRenderer
public class NumberRenderer
A renderer for presenting number values.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector |
|---|
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener |
| Constructor Summary | |
|---|---|
NumberRenderer()
Creates a new number renderer. |
|
NumberRenderer(java.text.DecimalFormat decimalFormat)
Creates a new number renderer. |
|
NumberRenderer(java.util.Locale locale)
Creates a new number renderer. |
|
NumberRenderer(java.lang.String formatString)
Creates a new number renderer. |
|
NumberRenderer(java.lang.String formatString,
java.util.Locale locale)
Creates a new number renderer. |
|
| Method Summary | |
|---|---|
java.lang.String |
encode(java.lang.Number value)
Encodes the given value into a form that can be transferred to the client. |
java.lang.String |
toString()
|
| Methods inherited from class com.vaadin.ui.components.grid.AbstractRenderer |
|---|
extend, getItemId, getPresentationType, getSupportedParentType |
| Methods inherited from class com.vaadin.server.AbstractExtension |
|---|
getParent, remove, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.vaadin.ui.components.grid.Renderer |
|---|
remove, setParent |
| Methods inherited from interface com.vaadin.server.ClientConnector |
|---|
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getParent, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Constructor Detail |
|---|
public NumberRenderer()
The renderer is configured to render with the number's natural string representation in the default locale.
public NumberRenderer(java.text.DecimalFormat decimalFormat)
throws java.lang.IllegalArgumentException
The renderer is configured to render the number as defined with the given decimal format.
decimalFormat - the decimal format with which to display numbers
java.lang.IllegalArgumentException - if decimalFormat is null
public NumberRenderer(java.util.Locale locale)
throws java.lang.IllegalArgumentException
The renderer is configured to render with the number's natural string representation in the given locale.
locale - the locale in which to display numbers
java.lang.IllegalArgumentException - if locale is null
public NumberRenderer(java.lang.String formatString)
throws java.lang.IllegalArgumentException
The renderer is configured to render with the given format string in the default locale.
formatString - the format string with which to format the number
java.lang.IllegalArgumentException - if formatString is null
public NumberRenderer(java.lang.String formatString,
java.util.Locale locale)
The renderer is configured to render with the given format string in the given locale.
formatString - the format string with which to format the numberlocale - the locale in which to present numbers
java.lang.IllegalArgumentException - if either argument is null| Method Detail |
|---|
public java.lang.String encode(java.lang.Number value)
Rendererorg.json.JSONObject#put(String, Object).
value - the value to encode
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||