/** * Creates a {@link JavaScriptReferenceHeaderItem} for the given reference. * * @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 * @return A newly created {@link JavaScriptReferenceHeaderItem} for the given reference. */ public static JavaScriptReferenceHeaderItem forReference(ResourceReference reference, PageParameters pageParameters, String id, boolean defer, String charset) { return new JavaScriptReferenceHeaderItem(reference, pageParameters, id, defer, charset, null); }
/** * Creates a {@link JavaScriptReferenceHeaderItem} for the given reference. * * @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". * @return A newly created {@link JavaScriptReferenceHeaderItem} for the given reference. */ public static JavaScriptReferenceHeaderItem forReference(ResourceReference reference, PageParameters pageParameters, String id, boolean defer, String charset, String condition) { return new JavaScriptReferenceHeaderItem(reference, pageParameters, id, defer, charset, condition); }
/** * Creates a {@link JavaScriptReferenceHeaderItem} for the given reference. * * @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 * @return A newly created {@link JavaScriptReferenceHeaderItem} for the given reference. */ public static JavaScriptReferenceHeaderItem forReference(ResourceReference reference, PageParameters pageParameters, String id, boolean defer, String charset) { return new JavaScriptReferenceHeaderItem(reference, pageParameters, id, defer, charset, null); }
/** * Creates a {@link JavaScriptReferenceHeaderItem} for the given reference. * * @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". * @return A newly created {@link JavaScriptReferenceHeaderItem} for the given reference. */ public static JavaScriptReferenceHeaderItem forReference(ResourceReference reference, PageParameters pageParameters, String id, boolean defer, String charset, String condition) { return new JavaScriptReferenceHeaderItem(reference, pageParameters, id, defer, charset, condition); }