Class 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 a JsonValue.
      java.lang.String getNullRepresentation()
      Deprecated.
      Null representation for the renderer.
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class com.vaadin.server.AbstractExtension

        getParent, setParent
      • 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
      • Methods inherited from interface com.vaadin.shared.Connector

        getConnectorId
    • 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 - if numberFormat is null
      • 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 numbers
        nullRepresentation - the textual representation of null value
        Throws:
        java.lang.IllegalArgumentException - if numberFormat is null
      • 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 - if locale is null
      • 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 number
        locale - the locale in which to display numbers
        Throws:
        java.lang.IllegalArgumentException - if locale is null
      • 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 - if formatString is null
        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 number
        locale - the locale in which to present numbers
        Throws:
        java.lang.IllegalArgumentException - if either argument is null
        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 a JsonValue.
        Specified by:
        encode in interface Renderer<java.lang.Number>
        Overrides:
        encode in class Grid.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 class java.lang.Object