FileDocCategorySizeDatePackage
CSS.javaAPI DocGlassfish v2 API3051Fri May 04 22:34:48 BST 2007com.sun.enterprise.diagnostics.report.html

CSS

public class CSS extends HTMLElement
Represents a cascaded stylesheet.
author
Jagadish

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);
    
Methods Summary