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.style;
14:
15: import org.wings.Renderable;
16: import java.util.Set;
17: import java.io.Serializable;
18:
19: /**
20: * A StyleSheet is a collection of CSS {@link Style} definitions.
21: * Known instance are of type {@link CSSStyleSheet}.
22: *
23: * @author <a href="mailto:engels@mercatis.de">Holger Engels</a>
24: */
25: public interface StyleSheet extends Renderable, Serializable {
26: /**
27: * Register a {@link Style} in the style sheet.
28: */
29: void putStyle(Style style);
30:
31: /**
32: * The {@link Style}s definitions contained in this style sheet.
33: *
34: * @return All set of {@link Style}s contained in this style sheet
35: */
36: Set<Style> styles();
37:
38: /**
39: * Declares if this style sheet is final or may change during runtime.
40: * @return <code>true</code> if the content of this style sheet will never change, <code>false</code> otherwise.
41: */
42: boolean isFinal();
43: }
|