|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
org.loom.tags.AbstractTag
org.loom.tags.core.AbstractWebResourceTag
public abstract class AbstractWebResourceTag
Tag that creates a link to a script or css file. There are two common uses for this tag: <l:script src="/js/myfile.js"/> This tag will create a normal script tag, pointing to the specified resource with the webapp prefix prepended. <l:script resource="resource_path"/> When specifying the resource, it will use a resource bundle configured using spring.
| Field Summary | |
|---|---|
static java.lang.Integer |
IE_ANY
include the library with any version of IE |
| Fields inherited from class org.loom.tags.AbstractTag |
|---|
out, repository, request, response |
| Constructor Summary | |
|---|---|
AbstractWebResourceTag()
|
|
| Method Summary | |
|---|---|
AbstractWebResourceTag |
addParameter(java.lang.String name,
java.lang.Object value)
Adds a parameter to the resulting url |
void |
doTagImpl()
The method that must be implemented by the child class |
protected void |
endTag()
Does the tag cleanup, if any. |
protected java.lang.String |
getContents()
|
java.lang.String |
getResource()
|
protected abstract java.lang.Class<? extends Action> |
getResourcesActionClass()
|
protected java.lang.String |
getType()
|
UrlBuilder |
getUrl()
|
protected UrlBuilder |
getUrlBuilder()
|
WebResourceBundleRepository |
getWebResourceBundleRepository()
|
WebResourcesRepository |
getWebResourcesRepository()
|
protected void |
initTag()
Initializes the tag attributes |
boolean |
isDevelopment()
|
protected abstract void |
printTag()
print just the tag |
void |
setAction(java.lang.String action)
|
void |
setDevelopment(boolean development)
|
void |
setEvent(java.lang.String event)
|
void |
setIe(java.lang.String ie)
Deprecated. use ieLessThan instead. To be removed for loom 1.1 |
void |
setIeLessThan(java.lang.String ie)
|
protected void |
setRawUrl(java.lang.String rawUrl)
|
void |
setResource(java.lang.String resourceName)
|
protected void |
setType(java.lang.String type)
|
void |
setWebResourceBundleRepository(WebResourceBundleRepository bundleRepository)
|
void |
setWebResourcesRepository(WebResourcesRepository resourcesRepository)
|
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Integer IE_ANY
| Constructor Detail |
|---|
public AbstractWebResourceTag()
| Method Detail |
|---|
protected void initTag()
AbstractTag
initTag in class AbstractTag
public void doTagImpl()
throws javax.servlet.jsp.JspException,
java.io.IOException
AbstractTag
doTagImpl in class AbstractTagjavax.servlet.jsp.JspException
java.io.IOExceptionprotected abstract java.lang.Class<? extends Action> getResourcesActionClass()
protected abstract void printTag()
throws javax.servlet.jsp.JspException,
java.io.IOException
javax.servlet.jsp.JspException
java.io.IOExceptionprotected void endTag()
AbstractTag
endTag in class AbstractTagprotected java.lang.String getContents()
public void setAction(java.lang.String action)
public void setEvent(java.lang.String event)
public void setResource(java.lang.String resourceName)
public AbstractWebResourceTag addParameter(java.lang.String name,
java.lang.Object value)
ParameterContainer
addParameter in interface ParameterContainername - the name of the parametervalue - the value of the parameter
public void setIe(java.lang.String ie)
public void setIeLessThan(java.lang.String ie)
protected void setRawUrl(java.lang.String rawUrl)
public UrlBuilder getUrl()
public boolean isDevelopment()
public void setDevelopment(boolean development)
public java.lang.String getResource()
public WebResourceBundleRepository getWebResourceBundleRepository()
public void setWebResourceBundleRepository(WebResourceBundleRepository bundleRepository)
public WebResourcesRepository getWebResourcesRepository()
public void setWebResourcesRepository(WebResourcesRepository resourcesRepository)
protected java.lang.String getType()
protected void setType(java.lang.String type)
protected UrlBuilder getUrlBuilder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||