Class DoublePointConverter

java.lang.Object
org.directwebremoting.convert.BaseV20Converter
org.directwebremoting.convert.BasicObjectConverter
org.directwebremoting.convert.BeanConverter
ubic.gemma.web.controller.dwr.DoublePointConverter
All Implemented Interfaces:
org.directwebremoting.extend.Converter, org.directwebremoting.extend.NamedConverter

public class DoublePointConverter extends org.directwebremoting.convert.BeanConverter
The 8 decimal precision of a double is just a waste of bandwidth in most cases. This converter just truncs the precision to 3 when the double gets converted to a string.
Author:
kelsey
  • Field Summary

    Fields inherited from class org.directwebremoting.convert.BasicObjectConverter

    converterManager, exclusions, inclusions, instanceType, javascript
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.directwebremoting.extend.OutboundVariable
    convertOutbound(Object data, org.directwebremoting.extend.OutboundContext outctx)
     

    Methods inherited from class org.directwebremoting.convert.BeanConverter

    createTypeHintContext, getPropertyMapFromClass, getPropertyMapFromObject

    Methods inherited from class org.directwebremoting.convert.BasicObjectConverter

    convertInbound, extractInboundTokens, getConverterManager, getInstanceType, getJavascript, isAllowedByIncludeExcludeRules, setConverterManager, setExclude, setImplementation, setInclude, setInstanceType, setJavascript

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.directwebremoting.extend.Converter

    convertInbound, setConverterManager
  • Constructor Details

    • DoublePointConverter

      public DoublePointConverter()
  • Method Details

    • convertOutbound

      public org.directwebremoting.extend.OutboundVariable convertOutbound(Object data, org.directwebremoting.extend.OutboundContext outctx) throws org.directwebremoting.extend.MarshallException
      Specified by:
      convertOutbound in interface org.directwebremoting.extend.Converter
      Overrides:
      convertOutbound in class org.directwebremoting.convert.BasicObjectConverter
      Throws:
      org.directwebremoting.extend.MarshallException