/** * Returns the text of the declaration. */ public String getText() { return declaration.toString(cssEngine); }
/** * Returns the text of the declaration. */ public String getText() { return declaration.toString(cssEngine); }
/** * Returns the text of the declaration. */ public String getText() { return declaration.toString(cssEngine); }
/** * Called when a property was changed. */ public void propertyChanged(String name, String value, String prio) throws DOMException { boolean important = prio != null && prio.length() > 0; cssEngine.setMainProperties(SVGStylableElement.this, this, name, value, important); mutate = true; setAttributeNS(null, SVG_STYLE_ATTRIBUTE, declaration.toString(cssEngine)); mutate = false; }
/** * Called when a property was changed. */ public void propertyChanged(String name, String value, String prio) throws DOMException { boolean important = prio != null && prio.length() > 0; cssEngine.setMainProperties(SVGStylableElement.this, this, name, value, important); mutate = true; setAttributeNS(null, SVG_STYLE_ATTRIBUTE, declaration.toString(cssEngine)); mutate = false; }
/** * Returns a printable representation of this style rule. */ public String toString(CSSEngine eng) { StringBuffer sb = new StringBuffer(); if (selectorList != null) { sb.append(selectorList.item(0)); for (int i = 1; i < selectorList.getLength(); i++) { sb.append(", "); sb.append(selectorList.item(i)); } } sb.append(" {\n"); if (styleDeclaration != null) { sb.append(styleDeclaration.toString(eng)); } sb.append("}\n"); return sb.toString(); } }
/** * Called when a property was changed. */ public void propertyChanged(String name, String value, String prio) throws DOMException { boolean important = prio != null && prio.length() > 0; cssEngine.setMainProperties(SVGStylableElement.this, this, name, value, important); mutate = true; setAttributeNS(null, SVG_STYLE_ATTRIBUTE, declaration.toString(cssEngine)); mutate = false; }
/** * Returns a printable representation of this style rule. */ public String toString(CSSEngine eng) { StringBuffer sb = new StringBuffer(); if (selectorList != null) { sb.append(selectorList.item(0)); for (int i = 1; i < selectorList.getLength(); i++) { sb.append(", "); sb.append(selectorList.item(i)); } } sb.append(" {\n"); if (styleDeclaration != null) { sb.append(styleDeclaration.toString(eng)); } sb.append("}\n"); return sb.toString(); } }
/** * Returns a printable representation of this style rule. */ public String toString(CSSEngine eng) { StringBuffer sb = new StringBuffer(); if (selectorList != null) { sb.append(selectorList.item(0)); for (int i = 1; i < selectorList.getLength(); i++) { sb.append(", "); sb.append(selectorList.item(i)); } } sb.append(" {\n"); if (styleDeclaration != null) { sb.append(styleDeclaration.toString(eng)); } sb.append("}\n"); return sb.toString(); } }
/** * Called when a property was removed. */ public void propertyRemoved(String name) throws DOMException { int idx = cssEngine.getPropertyIndex(name); for (int i = 0; i < declaration.size(); i++) { if (idx == declaration.getIndex(i)) { declaration.remove(i); mutate = true; setAttributeNS(null, SVG_STYLE_ATTRIBUTE, declaration.toString(cssEngine)); mutate = false; return; } } }
/** * Called when a property was removed. */ public void propertyRemoved(String name) throws DOMException { int idx = cssEngine.getPropertyIndex(name); for (int i = 0; i < declaration.size(); i++) { if (idx == declaration.getIndex(i)) { declaration.remove(i); mutate = true; setAttributeNS(null, SVG_STYLE_ATTRIBUTE, declaration.toString(cssEngine)); mutate = false; return; } } }
/** * Called when a property was removed. */ public void propertyRemoved(String name) throws DOMException { int idx = cssEngine.getPropertyIndex(name); for (int i = 0; i < declaration.size(); i++) { if (idx == declaration.getIndex(i)) { declaration.remove(i); mutate = true; setAttributeNS(null, SVG_STYLE_ATTRIBUTE, declaration.toString(cssEngine)); mutate = false; return; } } }