|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mylyn.wikitext.core.parser.builder.HtmlDocumentBuilder.Stylesheet
public static class HtmlDocumentBuilder.Stylesheet
A CSS stylesheet definition, created via one of HtmlDocumentBuilder.addCssStylesheet(File)
or
HtmlDocumentBuilder.addCssStylesheet(String)
.
Constructor Summary | |
---|---|
HtmlDocumentBuilder.Stylesheet(File file)
Create a CSS stylesheet where the contents of the CSS stylesheet are embedded in the HTML. |
|
HtmlDocumentBuilder.Stylesheet(Reader reader)
Create a CSS stylesheet where the contents of the CSS stylesheet are embedded in the HTML. |
|
HtmlDocumentBuilder.Stylesheet(String url)
Create a CSS stylesheet to the output document as an URL where the CSS stylesheet is referenced as an HTML link. |
Method Summary | |
---|---|
Map<String,String> |
getAttributes()
the attributes of the stylesheet, which may be modified prior to adding to the document. |
File |
getFile()
the file of the stylesheet, or null if it's not defined |
Reader |
getReader()
the content reader, or null if it's not defined. |
String |
getUrl()
the url of the stylesheet, or null if it's not defined |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlDocumentBuilder.Stylesheet(File file)
<code> <style type="text/css"> ... contents of the file ... </style> </code>
file
- the CSS file whose contents must be availablepublic HtmlDocumentBuilder.Stylesheet(String url)
starting the document
has no effect. Generates code
similar to the following:
<link type="text/css" rel="stylesheet" href="url"/>
url
- the CSS url to use, which may be relative or absolutepublic HtmlDocumentBuilder.Stylesheet(Reader reader)
<code> <style type="text/css"> ... contents of the file ... </style> </code>The caller is responsible for closing the reader.
reader
- the reader from which content is provided.Method Detail |
---|
public Map<String,String> getAttributes()
href
, type
and rel
are all ignored.
public File getFile()
public String getUrl()
public Reader getReader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |