|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.resource.aggregation.ResourceReferenceAndStringData
public class ResourceReferenceAndStringData
A data holder built for the AbstractResourceAggregatingHeaderResponse
that groups the
resource reference with a boolean representing whether it is css (or, if not, it is js), and the
string that was passed in to the responsible render*Reference method (for JS, this is ID, for
CSS, this is media).
It acts as a temporary data holder while the IHeaderContributors are being called so that at the
end of their traversal, we can render these references in an aggregated way, and still have the
appropriate data (i.e. was it CSS or JS) to render it properly.
Constructor Summary | |
---|---|
ResourceReferenceAndStringData(CharSequence content,
AbstractResourceDependentResourceReference.ResourceType type,
String idOrMedia)
Construct. |
|
ResourceReferenceAndStringData(ResourceReference reference,
PageParameters parameters,
String url,
String idOrMedia,
AbstractResourceDependentResourceReference.ResourceType type,
boolean jsDefer,
String charset,
String cssCondition)
Construct. |
|
ResourceReferenceAndStringData(ResourceReference reference,
String idOrMedia,
boolean isCss)
Deprecated. use the other constructors instead |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getCharset()
|
CharSequence |
getContent()
|
String |
getCssCondition()
|
String |
getIdOrMedia()
|
PageParameters |
getParameters()
|
ResourceReference |
getReference()
|
AbstractResourceDependentResourceReference.ResourceType |
getResourceType()
|
String |
getString()
Deprecated. use getIdOrMedia() instead |
String |
getUrl()
|
int |
hashCode()
|
boolean |
isCss()
Deprecated. Use getResourceType() instead. |
boolean |
isJsDefer()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceReferenceAndStringData(ResourceReference reference, PageParameters parameters, String url, String idOrMedia, AbstractResourceDependentResourceReference.ResourceType type, boolean jsDefer, String charset, String cssCondition)
reference
- parameters
- url
- idOrMedia
- type
- jsDefer
- charset
- cssCondition
- @Deprecated public ResourceReferenceAndStringData(ResourceReference reference, String idOrMedia, boolean isCss)
reference
- idOrMedia
- isCss
- public ResourceReferenceAndStringData(CharSequence content, AbstractResourceDependentResourceReference.ResourceType type, String idOrMedia)
content
- type
- idOrMedia
- Method Detail |
---|
public ResourceReference getReference()
public PageParameters getParameters()
public String getUrl()
public String getIdOrMedia()
@Deprecated public String getString()
getIdOrMedia()
instead
@Deprecated public boolean isCss()
getResourceType()
instead.
public AbstractResourceDependentResourceReference.ResourceType getResourceType()
public boolean isJsDefer()
public String getCharset()
public String getCssCondition()
public CharSequence getContent()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |