org.kuali.rice.krad.uif.util
Class ScriptUtils
java.lang.Object
   org.kuali.rice.krad.uif.util.ScriptUtils
org.kuali.rice.krad.uif.util.ScriptUtils
- public class ScriptUtils 
- extends Object
Utility class for generating JavaScript
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
 
| Method Summary | 
| static String | translateValue(Object value)Translates an Object to a String for representing the given Object as
 a JavaScript value
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ScriptUtils
public ScriptUtils()
translateValue
public static String translateValue(Object value)
- Translates an Object to a String for representing the given Object as
 a JavaScript value
 
 Handles null, List, Map, and Set collections, along with non quoting for numeric and
 boolean types. Complex types are treated as a String value using toString
  
 
- 
- Parameters:
- value- - Object instance to translate
- Returns:
- String JS value
 
Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.