/** * @see ResourceReference#ResourceReference(String) */ public CompressedResourceReference(String name) { super(name); setStateless(true); }
/** * Creates a new javascript resource reference. * * @param name */ public JavascriptResourceReference(String name) { super(name); setStateless(true); }
/** * @see org.apache.wicket.markup.html.resources.PackagedResourceReference#createPackageResourceReference(org.apache.wicket.Application, * java.lang.Class, java.lang.String) */ protected ResourceReference createPackageResourceReference(Application app, Class scope, String name) { CompressedResourceReference compressedResourceReference = new CompressedResourceReference( scope, name); compressedResourceReference.bind(app); return compressedResourceReference; } }
private static final CompressedResourceReference DOJO_JS = new CompressedResourceReference(HomePage.class,"./dojo/dojo/dojo.js data-dojo-config=\"async: false, parseOnLoad: true\"");
public void renderHead(IHeaderResponse response) { response.renderJavascriptReference(new JavascriptResourceReference(scope, path)); } });
/** * Can be overridden by clients for custom style sheet * * @return the style sheet reference */ protected StyleSheetReference getStyleSheet() { return new StyleSheetReference("paletteCSS", getClass(), "palette.css"); }
/** * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag) */ protected void onComponentTag(ComponentTag tag) { // Must be attached to a style tag checkComponentTag(tag, "link"); IValueMap attributes = tag.getAttributes(); attributes.put("rel", "stylesheet"); attributes.put("type", "text/css"); } }
public void renderHead(IHeaderResponse response) { response.renderCSSReference(new CompressedResourceReference(scope, path)); } });
/** * @see org.apache.wicket.markup.html.resources.PackagedResourceReference# * createPackageResourceReference(org.apache.wicket.Application, java.lang.Class, * java.lang.String) */ @Override protected ResourceReference createPackageResourceReference(Application app, Class<?> scope, String name) { CompressedResourceReference compressedResourceReference = new CompressedResourceReference( scope, name); compressedResourceReference.bind(app); return compressedResourceReference; } }
/** * @param response * @param resource */ private void addJavascriptReference(IHeaderResponse response, String resource) { response.renderJavascriptReference(new JavascriptResourceReference( YavBehavior.class, resource)); }
/** * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTag(ComponentTag tag) { // Must be attached to a style tag checkComponentTag(tag, "link"); IValueMap attributes = tag.getAttributes(); attributes.put("rel", "stylesheet"); attributes.put("type", "text/css"); } }
/** * @see ResourceReference#ResourceReference(Class, String) */ public CompressedResourceReference(Class<?> scope, String name) { super(scope, name); setStateless(true); }
/** * Creates a new javascript resource reference. * * @param scope * @param name */ public JavascriptResourceReference(Class<?> scope, String name) { super(scope, name); setStateless(true); }
public void renderHead(IHeaderResponse response) { response.renderCSSReference(new CompressedResourceReference(scope, path)); } });
public void renderHead(IHeaderResponse response) { response.renderJavascriptReference(new JavascriptResourceReference(scope, path)); } });
/** * @see ResourceReference#ResourceReference(Class scope, String name, Locale locale, String * style) */ public CompressedResourceReference(Class<?> scope, String name, Locale locale, String style) { super(scope, name, locale, style); setStateless(true); }
/** * Creates a new javascript resource reference. * * @param scope * @param name * @param locale * @param style */ public JavascriptResourceReference(Class<?> scope, String name, Locale locale, String style) { super(scope, name, locale, style); setStateless(true); }
public void renderHead(IHeaderResponse response) { response.renderCSSReference(new CompressedResourceReference(scope, path), media); } });
public void renderHead(IHeaderResponse response) { response.renderCSSReference( "http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css" ); response.renderCSSReference( "http://extjs.cachefly.net/ext-2.2.1/examples/shared/examples.css" ); response.renderJavascriptReference("http://extjs.cachefly.net/builds/ext-cdn-771.js"); response.renderJavascriptReference("http://openlayers.org/api/2.8/OpenLayers.js"); response.renderJavascriptReference("http://api.geoext.org/0.6/script/GeoExt.js"); response.renderJavascriptReference( new JavascriptResourceReference(PrintDemoPage.class, "GeoExtPrinting.js") ); response.renderJavascriptReference( new JavascriptResourceReference(PrintDemoPage.class, "Printing.js") ); } }
public void renderHead(IHeaderResponse response) { response.renderCSSReference(new CompressedResourceReference(scope, path), media); } });