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

com.venky.swf.views.controls.page.Script Maven / Gradle / Ivy

There is a newer version: 2.14
Show newest version
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.venky.swf.views.controls.page;

import com.venky.swf.views.controls.Control;

/**
 *
 * @author venky
 */
public class Script extends Control{
    /**
	 * 
	 */
	private static final long serialVersionUID = 7111734907607331737L;
	public Script(){
        this(null);
    }
    public Script(String source){
	    this(source,false);
    }
    public Script(String source, boolean defer){
        super("script");
        if (source != null){
            setProperty("type", "text/javascript");
            setProperty("src", source);
            if (defer) {
                setProperty("defer", "defer");
            }
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy