|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.resource.ResourceReference org.apache.wicket.resource.dependencies.AbstractResourceDependentResourceReference
public abstract class AbstractResourceDependentResourceReference
A resource reference that also has resources that it is dependent on. For instance, you may have
foo.js that calls functions defined in base-utils.js. By creating a ResourceReference for foo.js,
your IResourceReferenceDependencyConfigurationService
can create an
AbstractResourceDependentResourceReference that has base-utils.js as its dependency.
IResourceReferenceDependencyConfigurationService
,
Serialized FormNested Class Summary | |
---|---|
static class |
AbstractResourceDependentResourceReference.ResourceType
The type of resource that an AbstractResourceDependentResourceReference represents. |
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference |
---|
ResourceReference.Key, ResourceReference.UrlAttributes |
Constructor Summary | |
---|---|
AbstractResourceDependentResourceReference(Class<?> scope,
String name)
Construct. |
|
AbstractResourceDependentResourceReference(Class<?> scope,
String name,
Locale locale,
String style,
String variation)
Construct. |
|
AbstractResourceDependentResourceReference(String name)
Construct. |
Method Summary | |
---|---|
abstract AbstractResourceDependentResourceReference[] |
getDependentResourceReferences()
Returns all ResourceReferences that this ResourceReference is depending on. |
String |
getMedia()
If you call ResourceReferenceDependencyInjectingHeaderResponse.renderCSSReference(yourReference, "some-media"), the media is set in this field so that it can later render itself properly to the wrapped IHeaderResponse |
AbstractResourceDependentResourceReference.ResourceType |
getResourceType()
Defaults to returning JS, but returns CSS if the name property ends with ".css". |
String |
getUniqueId()
A globally-unique (to your application(s)) ID for this resource reference. |
void |
setMedia(String media)
If you call ResourceReferenceDependencyInjectingHeaderResponse.renderCSSReference(yourReference, "some-media"), the media is set in this field so that it can later render itself properly to the wrapped IHeaderResponse |
void |
setUniqueId(String uniqueId)
A globally-unique (to your application(s)) ID for this resource reference. |
Methods inherited from class org.apache.wicket.request.resource.ResourceReference |
---|
canBeRegistered, equals, getExtension, getKey, getLocale, getName, getResource, getScope, getStyle, getUrlAttributes, getVariation, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractResourceDependentResourceReference(Class<?> scope, String name, Locale locale, String style, String variation)
scope
- name
- locale
- style
- variation
- public AbstractResourceDependentResourceReference(Class<?> scope, String name)
scope
- name
- public AbstractResourceDependentResourceReference(String name)
name
- Method Detail |
---|
public void setUniqueId(String uniqueId)
uniqueId
- public String getUniqueId()
public void setMedia(String media)
media
- public String getMedia()
public AbstractResourceDependentResourceReference.ResourceType getResourceType()
IHeaderResponse
public abstract AbstractResourceDependentResourceReference[] getDependentResourceReferences()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |