1 16 package org.mortbay.html; 17 18 19 20 25 public class StyleLink extends Tag 26 { 27 public final static String  28 REL="rel", 29 HREF="href", 30 TYPE=Style.TYPE, 31 MEDIA=Style.MEDIA; 32 33 34 37 public StyleLink(String href) 38 { 39 super("link"); 40 attribute(REL,Style.StyleSheet); 41 attribute(HREF,href); 42 attribute(TYPE,Style.text_css); 43 } 44 45 46 52 public StyleLink(String rel, String href, String type, String media) 53 { 54 super("link"); 55 attribute(REL,rel==null?Style.StyleSheet:rel); 56 attribute(HREF,href); 57 attribute(TYPE,type==null?Style.text_css:type); 58 if (media!=null) 59 attribute(MEDIA,media); 60 } 61 62 }; 63 64 65 66 67 68 69 70 71 | Popular Tags |