Author: nbelaevski
Date: 2009-06-05 09:14:15 -0400 (Fri, 05 Jun 2009)
New Revision: 14535
Modified:
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
Log:
https://jira.jboss.org/jira/browse/RF-7247
Modified:
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java
===================================================================
---
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2009-06-05
13:10:09 UTC (rev 14534)
+++
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/renderkit/RendererUtils.java 2009-06-05
13:14:15 UTC (rev 14535)
@@ -573,7 +573,17 @@
return false;
}
+ /**
+ * Wrapper class around object value used to transform values into particular JS
objects
+ *
+ * @author Nick Belaevski
+ * @since 3.3.2
+ */
public static enum ScriptHashVariableWrapper {
+
+ /**
+ * No-op default wrapper
+ */
DEFAULT {
@Override
@@ -583,6 +593,12 @@
},
+ /**
+ * Event handler functions wrapper. Wraps <pre>functionCode</pre> object
into:
+ * <pre>function(event) {
+ * functionCode
+ * }</pre>
+ */
EVENT_HANDLER {
@Override
@@ -592,6 +608,12 @@
};
+ /**
+ * Method that does the wrapping
+ *
+ * @param o object to wrap
+ * @return wrapped object
+ */
abstract Object wrap(Object o);
}