All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wings.header.JavaScriptHeader Maven / Gradle / Ivy

The newest version!
package org.wings.header;

import org.wings.URLResource;
import org.wings.resource.DefaultURLResource;

/**
 * Use this to add a JavaScript header to a frame.
 * 
 *   frame.addHeader(new JavaScriptHeader("../myJavaScript.js"));
 * 
 */
public class JavaScriptHeader
    extends Script
{
    public JavaScriptHeader(String url) {
        this(new DefaultURLResource(url));
    }

    public JavaScriptHeader(URLResource resource) {
        super("text/javascript", resource);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy