Class JavaScriptValue

java.lang.Object
io.keikai.ui.impl.JavaScriptValue
All Implemented Interfaces:
Serializable, org.zkoss.json.JSONAware

public class JavaScriptValue extends Object implements org.zkoss.json.JSONAware, Serializable
Author:
Sam
See Also:
  • Constructor Details

    • JavaScriptValue

      public JavaScriptValue(String js)
      Constructor
      Parameters:
      js - the snippet of the JavaScript code. For example, "{what: 123, another: 'a'}". The content is generated directly to the AU response, so it must be a valid JavaScript code.
  • Method Details

    • toJSONString

      public String toJSONString()
      Specified by:
      toJSONString in interface org.zkoss.json.JSONAware
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object