|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.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. |
Field Summary |
---|
Fields inherited from class org.apache.wicket.ResourceReference |
---|
locale |
Constructor Summary | |
---|---|
AbstractResourceDependentResourceReference(Class<?> scope,
String name)
Construct. |
|
AbstractResourceDependentResourceReference(Class<?> scope,
String name,
Locale locale,
String style)
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.ResourceReference |
---|
bind, equals, getLocale, getName, getResource, getScope, getSharedResourceKey, getStyle, hashCode, invalidate, isStateless, lastModifiedTime, newResource, setLocale, setStateless, setStyle, 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)
scope
- name
- locale
- style
- 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 |