public class WebResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
location |
java.lang.String |
name |
boolean |
requireImmediate |
Constructor and Description |
---|
WebResource(java.lang.String name,
java.lang.String location) |
WebResource(java.lang.String name,
java.lang.String location,
boolean requireImmediate)
Name is
|
Modifier and Type | Method and Description |
---|---|
static WebResource |
newAMDJavaScript(java.lang.String name,
java.lang.String url) |
static WebResource |
newCSSResource(java.lang.String url) |
static WebResource |
newJavaScriptResource(java.lang.String url) |
public java.lang.String name
public java.lang.String location
public boolean requireImmediate
public WebResource(java.lang.String name, java.lang.String location)
public WebResource(java.lang.String name, java.lang.String location, boolean requireImmediate)
name
- either "js", "css", or a dojo namespacelocation
- full url to the resourcerequireImmediate
- loads it immediately and doesn't use AMD, only for "js" and "css" typespublic static WebResource newCSSResource(java.lang.String url)
public static WebResource newJavaScriptResource(java.lang.String url)
public static WebResource newAMDJavaScript(java.lang.String name, java.lang.String url)