|
Flying Saucer Project Release ${app.version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xhtmlrenderer.css.sheet.StylesheetInfo
public class StylesheetInfo
A reference to a stylesheet. If no stylesheet is set, the matcher will try to find the stylesheet by uri, first from the StylesheetFactory cache, then by loading the uri if it is not cached.
Therefore, either a stylesheet must be set, or a uri must be set
Origin defaults to USER_AGENT and media defaults to "all"
Field Summary | |
---|---|
static int |
AUTHOR
Origin of stylesheet - author |
static int |
USER
Origin of stylesheet - user |
static int |
USER_AGENT
Origin of stylesheet - user agent |
Constructor Summary | |
---|---|
StylesheetInfo()
|
Method Summary | |
---|---|
void |
addMedium(java.lang.String medium)
|
boolean |
appliesToMedia(java.lang.String m)
|
java.lang.String |
getContent()
|
java.util.List |
getMedia()
Gets the media attribute of the StylesheetInfo object |
int |
getOrigin()
Gets the origin attribute of the StylesheetInfo object |
Stylesheet |
getStylesheet()
Gets the stylesheet attribute of the StylesheetInfo object |
java.lang.String |
getTitle()
Gets the title attribute of the StylesheetInfo object |
java.lang.String |
getType()
Gets the type attribute of the StylesheetInfo object |
java.lang.String |
getUri()
Gets the uri attribute of the StylesheetInfo object |
boolean |
isInline()
|
void |
setContent(java.lang.String content)
|
void |
setMedia(java.util.List mediaTypes)
|
void |
setMedia(java.lang.String media)
Sets the media attribute of the StylesheetInfo object |
void |
setOrigin(int origin)
Sets the origin attribute of the StylesheetInfo object |
void |
setStylesheet(Stylesheet stylesheet)
Sets the stylesheet attribute of the StylesheetInfo object |
void |
setTitle(java.lang.String title)
Sets the title attribute of the StylesheetInfo object |
void |
setType(java.lang.String type)
Sets the type attribute of the StylesheetInfo object |
void |
setUri(java.lang.String uri)
Sets the uri attribute of the StylesheetInfo object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int USER_AGENT
public static final int USER
public static final int AUTHOR
Constructor Detail |
---|
public StylesheetInfo()
Method Detail |
---|
public boolean appliesToMedia(java.lang.String m)
m
- a single media identifier
public void setUri(java.lang.String uri)
uri
- The new uri valuepublic void setMedia(java.lang.String media)
media
- The new media valuepublic void setMedia(java.util.List mediaTypes)
public void addMedium(java.lang.String medium)
public void setOrigin(int origin)
origin
- The new origin valuepublic void setType(java.lang.String type)
type
- The new type valuepublic void setTitle(java.lang.String title)
title
- The new title valuepublic void setStylesheet(Stylesheet stylesheet)
stylesheet
- The new stylesheet valuepublic java.lang.String getUri()
public java.util.List getMedia()
public int getOrigin()
public java.lang.String getType()
public java.lang.String getTitle()
public Stylesheet getStylesheet()
public java.lang.String getContent()
public void setContent(java.lang.String content)
public boolean isInline()
|
Flying Saucer Project Release ${app.version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |