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:
14: package org.wings.style;
15:
16: /**
17: * A
18: *
19: * @author bschmid
20: */
21: public class CSSStyle extends CSSAttributeSet implements Style {
22: /*private StyleSheet sheet; */
23: private Selector selector;
24:
25: public CSSStyle(Selector selector, CSSAttributeSet attributes) {
26: super (attributes);
27: this .selector = selector;
28: }
29:
30: public CSSStyle(Selector selector, CSSProperty property,
31: String value) {
32: super (property, value);
33: this .selector = selector;
34: }
35:
36: // BSC: We don't need the backling to the style.
37: /* *
38: * The style sheet owning this style.
39: * @param sheet The style sheet owning this style.
40: * /
41: public void setSheet(StyleSheet sheet) {
42: this.sheet = sheet;
43: }*/
44:
45: /* *
46: * @return The style sheet owning this style.
47: * /
48: public StyleSheet getSheet() { return sheet; }
49: */
50:
51: /**
52: * @return Rendered Style: css selector { attribute/values }
53: */
54: /*
55: public String toString() {
56: return selector.getSelector() + " { " + super.toString() + "}";
57: }
58: */
59:
60: /* @see Style */
61: public Selector getSelector() {
62: return selector;
63: }
64:
65: /* @see Style */
66: public void setSelector(Selector selector) {
67: this.selector = selector;
68: }
69: }
|