Project Wonder 5.0

er.ajax
Class AjaxValue

java.lang.Object
  extended by er.ajax.AjaxValue

public class AjaxValue
extends java.lang.Object

AjaxValue provides a method for serializing Objects into a Javascript-compatible format with hinting via AjaxOption.Type constants.

Author:
mschrag

Constructor Summary
AjaxValue(AjaxOption.Type type, java.lang.Object value)
           
AjaxValue(java.lang.Object value)
           
 
Method Summary
static java.lang.String javaScriptEscaped(java.lang.Object obj)
           
 java.lang.String javascriptValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxValue

public AjaxValue(java.lang.Object value)

AjaxValue

public AjaxValue(AjaxOption.Type type,
                 java.lang.Object value)
Method Detail

javaScriptEscaped

public static java.lang.String javaScriptEscaped(java.lang.Object obj)
Parameters:
obj - Object to convert to String and escape
Returns:
obj converted to a string and escaped for use as a quoted JS string

javascriptValue

public java.lang.String javascriptValue()

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.