CSSpublic class CSS extends HTMLElement Represents a cascaded stylesheet. |
Fields Summary |
---|
private static String | LINK | private static String | REL | private static String | STYLESHEET | private static String | HREF | private static String | TYPE | private static String | TEXT_CSS | private static String | STYLE | private static String | COMMENT_START | private static String | COMMENT_END |
Constructors Summary |
---|
public CSS(String link, Document doc)Creates a new instance of CSS
super(LINK);
addAttribute(REL,STYLESHEET);
addAttribute(HREF,link);
addAttribute(TYPE, TEXT_CSS);
Element head = doc.getHead();
head.add(this);
| public CSS(StringBuffer text, Document doc)
super(STYLE);
addAttribute(TYPE, TEXT_CSS);
addText(COMMENT_START + text.toString() + COMMENT_END);
Element head = doc.getHead();
head.add(this);
|
|