01: package org.wings.header;
02:
03: import org.wings.URLResource;
04: import org.wings.resource.DefaultURLResource;
05:
06: /**
07: * Use this to add a StyleSheet header to a frame.
08: * <code>
09: * frame.addHeader(new StyleSheetHeader("../myStyleSheet.css"));
10: * </code>
11: */
12: public class StyleSheetHeader extends Link {
13:
14: public StyleSheetHeader(String url) {
15: this (new DefaultURLResource(url));
16: }
17:
18: public StyleSheetHeader(URLResource resource) {
19: super ("stylesheet", null, "text/css", null, resource);
20: }
21:
22: }
|