KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > header > StyleSheetLink


1 /*
2  * $Id: StyleSheetLink.java,v 1.4 2004/12/01 07:54:08 hengels Exp $
3  * Copyright 2000,2005 wingS development team.
4  *
5  * This file is part of wingS (http://www.j-wings.org).
6  *
7  * wingS is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2.1
10  * of the License, or (at your option) any later version.
11  *
12  * Please see COPYING for the complete licence.
13  */

14 package org.wings.header;
15
16 import org.wings.URLResource;
17 import org.wings.resource.DefaultURLResource;
18
19 /**
20  * Use this to add style sheets to a frame
21  * <pre>
22  * frame.addHeader(new StyleSheetLink("../myStyleSheet.css"));
23  * </pre>
24  *
25  * @author armin
26  * created at 15.01.2004 17:55:28
27  */

28 public class StyleSheetLink extends Link {
29
30     public StyleSheetLink(URLResource resource) {
31         super("stylesheet", null, "text/css", null, resource);
32     }
33
34     public StyleSheetLink(String JavaDoc url) {
35         this(new DefaultURLResource(url));
36     }
37
38 }
39
Popular Tags