1 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 33 public class VisibilityManager extends IdentifierManager { 34 35 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 52 public boolean isInheritedProperty() { 53 return true; 54 } 55 56 60 public String getPropertyName() { 61 return CSSConstants.CSS_VISIBILITY_PROPERTY; 62 } 63 64 68 public Value getDefaultValue() { 69 return ValueConstants.VISIBLE_VALUE; 70 } 71 72 75 public StringMap getIdentifiers() { 76 return values; 77 } 78 } 79 | Popular Tags |