/** * Creates a new {@code JavaScriptReferenceHeaderItem}. * * @param reference * resource reference pointing to the javascript resource * @param pageParameters * the parameters for this Javascript resource reference * @param id * id that will be used to filter duplicate reference (it's still filtered by URL * too) * @param defer * specifies that the execution of a script should be deferred (delayed) until after * the page has been loaded. * @param charset * a non null value specifies the charset attribute of the script tag * @param condition * the condition to use for Internet Explorer conditional comments. E.g. "IE 7". */ public JavaScriptReferenceHeaderItem(ResourceReference reference, PageParameters pageParameters, String id, boolean defer, String charset, String condition) { super(condition, defer, charset); this.reference = Args.notNull(reference, "reference"); this.pageParameters = pageParameters; setId(id); }
/** * Creates a new {@code JavaScriptReferenceHeaderItem}. * * @param reference * resource reference pointing to the javascript resource * @param pageParameters * the parameters for this Javascript resource reference * @param id * id that will be used to filter duplicate reference (it's still filtered by URL * too) * @param defer * specifies that the execution of a script should be deferred (delayed) until after * the page has been loaded. * @param charset * a non null value specifies the charset attribute of the script tag * @param condition * the condition to use for Internet Explorer conditional comments. E.g. "IE 7". */ public JavaScriptReferenceHeaderItem(ResourceReference reference, PageParameters pageParameters, String id, boolean defer, String charset, String condition) { super(condition, defer, charset); this.reference = Args.notNull(reference, "reference"); this.pageParameters = pageParameters; setId(id); }