|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.utils.SAX2FilterImpl
org.jasig.portal.StylesheetSet
public class StylesheetSet
A tool for managing a collection of stylesheets. StylesheetSet allows you to instansiate a list of stylesheets in memory and select one according to the request/title/media parameters.
| Field Summary | |
|---|---|
protected static String |
m_defaultMediaPropsUri
|
protected static Hashtable |
m_mediaPropsCache
|
protected String |
m_myMediaPropsUri
|
protected Hashtable |
title_table
|
| Fields inherited from class org.jasig.portal.utils.SAX2FilterImpl |
|---|
contentHandler, dtdHandler, entityResolver, errorHandler, lexicalHandler, locator |
| Constructor Summary | |
|---|---|
StylesheetSet()
|
|
StylesheetSet(ContentHandler dt)
Create a SAX filter that will pick up stylesheet bindings in a document that's processed through this filter. |
|
StylesheetSet(String uri)
Creates a new StylesheetSet instance given a .ssl file URI. |
|
| Method Summary | |
|---|---|
void |
addStyleSheet(StylesheetDescription sd)
Add a stylesheet to the list. |
protected String |
getMedia(BrowserInfo bi)
|
protected String |
getMedia(HttpServletRequest req)
|
protected org.jasig.portal.StylesheetSet.OrderedProps |
getMediaProps()
|
Source |
getStylesheet()
Obtains a default stylesheet. |
Source |
getStylesheet(HttpServletRequest req)
Obtain a stylesheet source. |
Source |
getStylesheet(String title)
Obtain a stylesheet transform source |
Source |
getStylesheet(String title,
BrowserInfo bi)
Obtain a stylesheet |
Source |
getStylesheet(String title,
HttpServletRequest req)
Obtain a stylesheet source. |
Source |
getStylesheet(String title,
String media)
Obtain a stylesheet. |
Source |
getStylesheetByMedia(String media)
Obtain a stylesheet for a given media. |
protected StylesheetDescription |
getStylesheetDescription(String media)
|
String |
getStylesheetURI(BrowserInfo bi)
Obtain a matching stylesheet URI |
String |
getStylesheetURI(HttpServletRequest req)
Obtain a matching stylesheet. |
String |
getStylesheetURI(String media)
Returns the URI of the stylesheet matching the media |
String |
getStylesheetURI(String title,
BrowserInfo bi)
Describe getStylesheetURI method here. |
String |
getStylesheetURI(String title,
HttpServletRequest req)
Obtain stylesheet URI |
String |
getStylesheetURI(String title,
String media)
Obtain a stylesheet URI |
protected Hashtable |
getTitleTable()
|
void |
processingInstruction(String target,
String data)
Fills StylesheetSet by accepting SAX events |
void |
setMediaProps(String uri)
Set the location of the media properties object. |
| Methods inherited from class org.jasig.portal.utils.SAX2FilterImpl |
|---|
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, resolveEntity, setAllHandlers, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setLexicalHandler, setParent, setProperty, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String m_defaultMediaPropsUri
protected static Hashtable m_mediaPropsCache
protected String m_myMediaPropsUri
protected Hashtable title_table
| Constructor Detail |
|---|
public StylesheetSet()
public StylesheetSet(ContentHandler dt)
dt - a ContentHandler of the downstream SAX listener..
public StylesheetSet(String uri)
throws PortalException
StylesheetSet instance given a .ssl file URI.
uri - a String value
PortalException - if an error occurs| Method Detail |
|---|
public Source getStylesheet(String title)
title - a String value
Source for a given stylesheetpublic Source getStylesheet()
Source for a default stylesheet.
public Source getStylesheet(String title,
String media)
title - stylesheet titlemedia - stylesheet media
Source for the stylesheet.
public Source getStylesheet(String title,
BrowserInfo bi)
throws PortalException
title - stylesheet titlebi - current BrowserInfo value
Source for the stylesheet
PortalException - if an error occurs
public String getStylesheetURI(String media)
throws GeneralRenderingException
media -
GeneralRenderingException
public String getStylesheetURI(HttpServletRequest req)
throws PortalException
req - current request value.
String stylesheet URI
PortalException - if an error occurs
public String getStylesheetURI(BrowserInfo bi)
throws PortalException
bi - a BrowserInfo value
String styleshet
PortalException - if an error occurs
public String getStylesheetURI(String title,
HttpServletRequest req)
throws PortalException
title - stylesheet titlereq - a HttpServletRequest value
String stylesheet URI
PortalException - if an error occurs
public String getStylesheetURI(String title,
BrowserInfo bi)
throws PortalException
getStylesheetURI method here.
title - a stylesheet titlebi - a BrowserInfo value
String stylesheet URI
PortalException - if an error occurs
public String getStylesheetURI(String title,
String media)
throws GeneralRenderingException
title - stylesheet titlemedia - media value
String stylesheet URI
GeneralRenderingException - if an error occurs
protected StylesheetDescription getStylesheetDescription(String media)
throws GeneralRenderingException
GeneralRenderingException
public Source getStylesheet(String title,
HttpServletRequest req)
throws PortalException
title - stylesheet titlereq - current request
Source for the stylesheet.
PortalException - if an error occurs
public Source getStylesheet(HttpServletRequest req)
throws PortalException
req - an HttpServletRequest value
Source for the stylesheet
PortalException - if an error occurs
public Source getStylesheetByMedia(String media)
throws GeneralRenderingException
media - desired media
Source for the stylesheet.
GeneralRenderingException - if an error occurspublic void addStyleSheet(StylesheetDescription sd)
sd - a StylesheetDescription value
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in class SAX2FilterImpltarget - data -
SAXExceptionContentHandler.processingInstruction(java.lang.String, java.lang.String)
protected org.jasig.portal.StylesheetSet.OrderedProps getMediaProps()
throws PortalException
PortalException
public void setMediaProps(String uri)
throws PortalException
uri - a String value
PortalException - if an error occursprotected Hashtable getTitleTable()
protected String getMedia(HttpServletRequest req)
throws PortalException
PortalException
protected String getMedia(BrowserInfo bi)
throws PortalException
PortalException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||