return result;
}
+ /**
+ * Escapes the given string so it can safely be used as a JSON string.
+ *
+ * @param s
+ * The string to escape
+ * @return Escaped version of the string
+ */
static public String escapeJSON(String s) {
+ // FIXME: Move this method to another class as other classes use it
+ // also.
if (s == null) {
return "";
}
class1 = (Class<? extends Paintable>) superclass;
} else {
System.out
- .append("Warning: no superclass of givent has ClientWidget"
+ .append("Warning: no superclass of "
+ + paintable.getClass().getName()
+ + " has a @ClientWidget"
+ " annotation. Component will not be mapped correctly on client side.");
break;
}