01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings.header;
14:
15: import org.wings.URLResource;
16: import org.wings.resource.DefaultURLResource;
17:
18: /**
19: * Use this to add style sheets to a frame.
20: * <code>
21: * frame.addHeader(new StyleSheetLink("../myStyleSheet.css"));
22: * </code>
23: *
24: * @author armin
25: * created at 15.01.2004 17:55:28
26: * [bsc] why?: deprecated use StyleSheetHeader instead
27: * [sts] just a naming convention:
28: * JavaScriptHeader, StyleSheetHeader, FaviconHeader
29: * and not
30: * JavaScriptScript (or JavaScript), StyleSheetLink, FaviconLink
31: *
32: * @deprecated use StyleSheetHeader instead
33: */
34: public class StyleSheetLink extends Link {
35:
36: public StyleSheetLink(URLResource resource) {
37: super ("stylesheet", null, "text/css", null, resource);
38: }
39:
40: public StyleSheetLink(String url) {
41: this (new DefaultURLResource(url));
42: }
43:
44: }
|