KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > style > StyleSheet


1 /*
2  * $Id: StyleSheet.java,v 1.4 2005/05/27 09:17:35 blueshift 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.style;
15
16 import org.wings.Renderable;
17
18 import java.io.IOException JavaDoc;
19 import java.io.InputStream JavaDoc;
20 import java.util.Set JavaDoc;
21
22 /**
23  * A StyleSheet is a set of {@link Style}s. Proably a instance of {@link CSSStyleSheet}.
24  *
25  * @author <a HREF="mailto:engels@mercatis.de">Holger Engels</a>
26  * @version $Revision: 1.4 $
27  */

28 public interface StyleSheet extends Renderable {
29     /**
30      * Register a {@link Style} in the style sheet.
31      * @param style
32      */

33     void putStyle(Style style);
34
35     /**
36      * The {@link Style}s contained in this style sheet.
37      * @return
38      */

39     Set JavaDoc styles();
40
41     /**
42      * May this style sheet change during runtime?
43      */

44     boolean isFinal();
45
46     /**
47      * Creates styles by parsing an input stream.
48      * @param inStream Stream containing style sheet source
49      */

50     void read(InputStream JavaDoc inStream) throws IOException JavaDoc;
51 }
52
53
54
Popular Tags