|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.plugin.XWikiDefaultPlugin
com.xpn.xwiki.plugin.skinx.AbstractSkinExtensionPlugin
com.xpn.xwiki.plugin.skinx.AbstractResourceSkinExtensionPlugin
com.xpn.xwiki.plugin.skinx.CssResourceSkinExtensionPlugin
public class CssResourceSkinExtensionPlugin
Skin Extension plugin to use css files from JAR resources.
| Field Summary |
|---|
| Fields inherited from class com.xpn.xwiki.plugin.skinx.AbstractSkinExtensionPlugin |
|---|
contextKey, parametersContextKey |
| Constructor Summary | |
|---|---|
CssResourceSkinExtensionPlugin(String name,
String className,
com.xpn.xwiki.XWikiContext context)
XWiki plugin constructor. |
|
| Method Summary | |
|---|---|
String |
endParsing(String content,
com.xpn.xwiki.XWikiContext context)
|
protected String |
generateLink(String url,
String resourceName,
com.xpn.xwiki.XWikiContext context)
Takes a URL string and outputs a link which will cause the browser to load the url. |
protected String |
getAction()
Get the action which the url should specify for calling this resource. |
String |
getName()
|
| Methods inherited from class com.xpn.xwiki.plugin.skinx.AbstractResourceSkinExtensionPlugin |
|---|
getAlwaysUsedExtensions, getLink, hasPageExtensions |
| Methods inherited from class com.xpn.xwiki.plugin.skinx.AbstractSkinExtensionPlugin |
|---|
getImportString, getParameter, getParametersForResource, getParametersMap, getPluginApi, getPulledResources, initializeRequestListIfNeeded, parametersAsQueryString, sanitize, use, use |
| Methods inherited from class com.xpn.xwiki.plugin.XWikiDefaultPlugin |
|---|
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endRendering, endRenderingHandler, flushCache, flushCache, getClassName, init, insidePREHandler, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CssResourceSkinExtensionPlugin(String name,
String className,
com.xpn.xwiki.XWikiContext context)
name - The name of the plugin, which can be used for retrieving the plugin API from velocity. Unused.className - The canonical classname of the plugin. Unused.context - The current request context.XWikiDefaultPlugin.XWikiDefaultPlugin(String,String,com.xpn.xwiki.XWikiContext)| Method Detail |
|---|
public String getName()
getName in interface com.xpn.xwiki.plugin.XWikiPluginInterfacegetName in class com.xpn.xwiki.plugin.XWikiDefaultPluginprotected String getAction()
AbstractResourceSkinExtensionPlugin
getAction in class AbstractResourceSkinExtensionPlugin
protected String generateLink(String url,
String resourceName,
com.xpn.xwiki.XWikiContext context)
AbstractResourceSkinExtensionPlugin
generateLink in class AbstractResourceSkinExtensionPluginurl - String representation of the url to load (eg: /res/url.js)resourceName - name of the pulled resourcecontext - the current request context
<script type="text/javascript" src="/res/url.js"/>)
public String endParsing(String content,
com.xpn.xwiki.XWikiContext context)
At the end of the request, insert the links to the pulled resources in the response, in the place marked by an XML comment of the format <!-- canonical.plugin.classname -->.
We must override this method since the plugin manager only calls it for classes that provide their own implementation, and not an inherited one.
endParsing in interface com.xpn.xwiki.plugin.XWikiPluginInterfaceendParsing in class AbstractSkinExtensionPluginAbstractSkinExtensionPlugin.endParsing(String, XWikiContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||