import org.apache.wicket.markup.html.JavascriptPackageResource;
/**
- * Behavior that adds the org.wamblee namespace to the javascript environment.
+ * Behavior that adds the org.wamblee namespace to the javascript environment and provide some
+ * generic support for writing javascript extensions.
*
* @author Erik Brakkee
*/
-class NamespaceBehavior extends HeaderContributor {
+class SupportBehavior extends HeaderContributor {
- static final String NAMESPACE_SCRIPT = "wamblee-namespace.js";
+ static final String SUPPORT_SCRIPT = "wamblee-support.js";
private static HeaderContributor CACHE = JavascriptPackageResource.getHeaderContribution(
- NamespaceBehavior.class, NAMESPACE_SCRIPT);
+ SupportBehavior.class, SUPPORT_SCRIPT);
/**
* Constructs the namespace.
*/
- public NamespaceBehavior() {
+ public SupportBehavior() {
super(CACHE);
}
}