|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.utils.XSLT
org.jasig.portal.i18n.LocaleAwareXSLT
public class LocaleAwareXSLT
Selects XSLT stylesheets based on locale information.
| Field Summary | |
|---|---|
protected Locale[] |
locales
|
| Fields inherited from class org.jasig.portal.utils.XSLT |
|---|
caller, l18n, mediaProps, stylesheetParams, stylesheetRootCacheEnabled, stylesheetSetCacheEnabled, xmlResult, xmlSource, xslURI |
| Constructor Summary | |
|---|---|
LocaleAwareXSLT(Object instance)
Constructor that configures the calling class. |
|
LocaleAwareXSLT(Object instance,
Locale[] locales)
Constructor that configures both the calling class and the locale list. |
|
| Method Summary | |
|---|---|
static String |
getLocaleAwareXslUri(String xslUri,
Locale[] locales,
Object caller)
Finds localized version of stylesheet according to the supplied list of locales. |
void |
setLocales(Locale[] locales)
Sets the locales. |
void |
setXSL(String sslUri,
BrowserInfo browserInfo)
Configures the xsl source by choosing the appropriate stylesheet from the provided stylesheet list file, taking into account the list of locales. |
void |
setXSL(String sslUri,
String stylesheetTitle,
BrowserInfo browserInfo)
Configures the xsl source by choosing the appropriate stylesheet from the provided stylesheet list file, taking into account the list of locales. |
| Methods inherited from class org.jasig.portal.utils.XSLT |
|---|
addLocalization, escape, getSAXTFactory, getStylesheetCacheSize, getStylesheetSet, getStylesheetURI, getStylesheetURI, getTemplates, getTemplates, getTransformer, getTransformer, getTransformer, getTransformer, getTransformerHandler, getTransformerHandler, purgeStylesheetCache, setResourceBundle, setStylesheetParameter, setStylesheetParameters, setStylesheetParameters, setTarget, setTarget, setTarget, setXML, setXML, setXML, setXML, setXSL, toString, transform, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Locale[] locales
| Constructor Detail |
|---|
public LocaleAwareXSLT(Object instance)
instance - class name used to search for resources
public LocaleAwareXSLT(Object instance,
Locale[] locales)
instance - class name used to search for resourceslocales - a list of locales| Method Detail |
|---|
public void setLocales(Locale[] locales)
locales - a list of locales
public void setXSL(String sslUri,
String stylesheetTitle,
BrowserInfo browserInfo)
throws PortalException
setXSL in class XSLTsslUri - the URL of the stylesheet list filestylesheetTitle - the title of a stylesheet within the stylesheet list filebrowserInfo - the browser info object
PortalException
public void setXSL(String sslUri,
BrowserInfo browserInfo)
throws PortalException
setXSL in class XSLTsslUri - the URL of the stylesheet list filebrowserInfo - the browser info object
PortalException
public static String getLocaleAwareXslUri(String xslUri,
Locale[] locales,
Object caller)
xslUri - the URL of the stylesheet filelocales - the list of localescaller - the calling class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||