Package com.vaadin.v7.ui.renderers
Class NumberRenderer
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.server.AbstractExtension
-
- com.vaadin.v7.ui.Grid.AbstractGridExtension
-
- com.vaadin.v7.ui.Grid.AbstractRenderer<java.lang.Number>
-
- com.vaadin.v7.ui.renderers.NumberRenderer
-
- All Implemented Interfaces:
com.vaadin.event.MethodEventSource
,com.vaadin.server.ClientConnector
,com.vaadin.server.Extension
,com.vaadin.shared.Connector
,Renderer<java.lang.Number>
,java.io.Serializable
@Deprecated public class NumberRenderer extends Grid.AbstractRenderer<java.lang.Number>
Deprecated.A renderer for presenting number values.- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
-
-
Constructor Summary
Constructors Constructor Description NumberRenderer()
Deprecated.Creates a new number renderer.NumberRenderer(java.lang.String formatString)
Deprecated.Creates a new number renderer.NumberRenderer(java.lang.String formatString, java.util.Locale locale)
Deprecated.Creates a new number renderer.NumberRenderer(java.lang.String formatString, java.util.Locale locale, java.lang.String nullRepresentation)
Deprecated.Creates a new number renderer.NumberRenderer(java.text.NumberFormat numberFormat)
Deprecated.Creates a new number renderer.NumberRenderer(java.text.NumberFormat numberFormat, java.lang.String nullRepresentation)
Deprecated.Creates a new number renderer.NumberRenderer(java.util.Locale locale)
Deprecated.Creates a new number renderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description elemental.json.JsonValue
encode(java.lang.Number value)
Deprecated.Encodes the given value into aJsonValue
.java.lang.String
getNullRepresentation()
Deprecated.Null representation for the renderer.java.lang.String
toString()
Deprecated.-
Methods inherited from class com.vaadin.v7.ui.Grid.AbstractRenderer
encode, encodeValue, extend, getPresentationType, getSupportedParentType
-
Methods inherited from class com.vaadin.v7.ui.Grid.AbstractGridExtension
addComponentToGrid, getColumn, getItemId, getParentGrid, refreshRow, remove, removeComponentFromGrid
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
NumberRenderer
public NumberRenderer()
Deprecated.Creates a new number renderer.The renderer is configured to render with the number's natural string representation in the default locale.
-
NumberRenderer
public NumberRenderer(java.text.NumberFormat numberFormat)
Deprecated.Creates a new number renderer.The renderer is configured to render the number as defined with the given number format.
- Parameters:
numberFormat
- the number format with which to display numbers- Throws:
java.lang.IllegalArgumentException
- ifnumberFormat
isnull
-
NumberRenderer
public NumberRenderer(java.text.NumberFormat numberFormat, java.lang.String nullRepresentation) throws java.lang.IllegalArgumentException
Deprecated.Creates a new number renderer.The renderer is configured to render the number as defined with the given number format.
- Parameters:
numberFormat
- the number format with which to display numbersnullRepresentation
- the textual representation ofnull
value- Throws:
java.lang.IllegalArgumentException
- ifnumberFormat
isnull
-
NumberRenderer
public NumberRenderer(java.util.Locale locale) throws java.lang.IllegalArgumentException
Deprecated.Creates a new number renderer.The renderer is configured to render with the number's natural string representation in the given locale.
- Parameters:
locale
- the locale in which to display numbers- Throws:
java.lang.IllegalArgumentException
- iflocale
isnull
-
NumberRenderer
public NumberRenderer(java.lang.String formatString, java.util.Locale locale) throws java.lang.IllegalArgumentException
Deprecated.Creates a new number renderer.The renderer is configured to render with the number's natural string representation in the given locale.
- Parameters:
formatString
- the format string with which to format the numberlocale
- the locale in which to display numbers- Throws:
java.lang.IllegalArgumentException
- iflocale
isnull
-
NumberRenderer
public NumberRenderer(java.lang.String formatString) throws java.lang.IllegalArgumentException
Deprecated.Creates a new number renderer.The renderer is configured to render with the given format string in the default locale.
- Parameters:
formatString
- the format string with which to format the number- Throws:
java.lang.IllegalArgumentException
- ifformatString
isnull
- See Also:
- Format String Syntax
-
NumberRenderer
public NumberRenderer(java.lang.String formatString, java.util.Locale locale, java.lang.String nullRepresentation)
Deprecated.Creates a new number renderer.The renderer is configured to render with the given format string in the given locale.
- Parameters:
formatString
- the format string with which to format the numberlocale
- the locale in which to present numbers- Throws:
java.lang.IllegalArgumentException
- if either argument isnull
- See Also:
- Format String Syntax
-
-
Method Detail
-
encode
public elemental.json.JsonValue encode(java.lang.Number value)
Deprecated.Description copied from interface:Renderer
Encodes the given value into aJsonValue
.- Specified by:
encode
in interfaceRenderer<java.lang.Number>
- Overrides:
encode
in classGrid.AbstractRenderer<java.lang.Number>
- Parameters:
value
- the value to encode- Returns:
- a JSON representation of the given value
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
getNullRepresentation
public java.lang.String getNullRepresentation()
Deprecated.Description copied from class:Grid.AbstractRenderer
Null representation for the renderer.- Overrides:
getNullRepresentation
in classGrid.AbstractRenderer<java.lang.Number>
- Returns:
- a textual representation of
null
-
-