KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > css > engine > value > css2 > VisibilityManager


1 /*
2
3    Copyright 1999-2003 The Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16
17 */

18
19 package org.apache.batik.css.engine.value.css2;
20
21 import org.apache.batik.css.engine.value.IdentifierManager;
22 import org.apache.batik.css.engine.value.StringMap;
23 import org.apache.batik.css.engine.value.Value;
24 import org.apache.batik.css.engine.value.ValueConstants;
25 import org.apache.batik.util.CSSConstants;
26
27 /**
28  * This class provides a manager for the 'visibility' property values.
29  *
30  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
31  * @version $Id: VisibilityManager.java,v 1.5 2004/12/03 12:20:15 deweese Exp $
32  */

33 public class VisibilityManager extends IdentifierManager {
34     
35     /**
36      * The identifier values.
37      */

38     protected final static StringMap values = new StringMap();
39     static {
40     values.put(CSSConstants.CSS_VISIBLE_VALUE,
41                    ValueConstants.VISIBLE_VALUE);
42     values.put(CSSConstants.CSS_HIDDEN_VALUE,
43                    ValueConstants.HIDDEN_VALUE);
44     values.put(CSSConstants.CSS_COLLAPSE_VALUE,
45                    ValueConstants.COLLAPSE_VALUE);
46     }
47
48     /**
49      * Implements {@link
50      * org.apache.batik.css.engine.value.ValueManager#isInheritedProperty()}.
51      */

52     public boolean isInheritedProperty() {
53     return true;
54     }
55
56     /**
57      * Implements {@link
58      * org.apache.batik.css.engine.value.ValueManager#getPropertyName()}.
59      */

60     public String JavaDoc getPropertyName() {
61     return CSSConstants.CSS_VISIBILITY_PROPERTY;
62     }
63     
64     /**
65      * Implements {@link
66      * org.apache.batik.css.engine.value.ValueManager#getDefaultValue()}.
67      */

68     public Value getDefaultValue() {
69         return ValueConstants.VISIBLE_VALUE;
70     }
71
72     /**
73      * Implements {@link IdentifierManager#getIdentifiers()}.
74      */

75     public StringMap getIdentifiers() {
76         return values;
77     }
78 }
79
Popular Tags