/** * Returns a printable representation of this style rule. */ public String toString(CSSEngine eng) { StringBuffer sb = new StringBuffer( count * 8 ); for (int i = 0; i < count; i++) { sb.append(eng.getPropertyName(indexes[i])); sb.append(": "); sb.append(values[i]); sb.append(";\n"); } return sb.toString(); } }
/** * Returns the value at the given. */ public String item(int idx) { return cssEngine.getPropertyName(declaration.getIndex(idx)); } }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSStyleDeclaration#item(int)}. */ public String item(int index) { if (index < 0 || index >= cssEngine.getNumberOfProperties()) { return ""; } return cssEngine.getPropertyName(index); }
/** * Returns a printable representation of this style rule. */ public String toString(CSSEngine eng) { StringBuffer sb = new StringBuffer( count * 8 ); for (int i = 0; i < count; i++) { sb.append(eng.getPropertyName(indexes[i])); sb.append(": "); sb.append(values[i]); sb.append(";\n"); } return sb.toString(); } }
/** * Returns a printable representation of this style rule. */ public String toString(CSSEngine eng) { StringBuffer sb = new StringBuffer( count * 8 ); for (int i = 0; i < count; i++) { sb.append(eng.getPropertyName(indexes[i])); sb.append(": "); sb.append(values[i]); sb.append(";\n"); } return sb.toString(); } }
/** * Returns the value at the given. */ public String item(int idx) { return cssEngine.getPropertyName(declaration.getIndex(idx)); } }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSStyleDeclaration#item(int)}. */ public String item(int index) { if (index < 0 || index >= cssEngine.getNumberOfProperties()) { return ""; } return cssEngine.getPropertyName(index); }
/** * Returns the value at the given. */ public String item(int idx) { return cssEngine.getPropertyName(declaration.getIndex(idx)); } }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSStyleDeclaration#item(int)}. */ public String item(int index) { if (index < 0 || index >= cssEngine.getNumberOfProperties()) { return ""; } return cssEngine.getPropertyName(index); }
/** * Returns a printable representation of this style map. */ public String toString(CSSEngine eng) { // Note that values.length should always be equal to // eng.getNumberOfProperties() for StyleMaps that were created // by that CSSEngine. int nSlots = values.length; StringBuffer sb = new StringBuffer(nSlots * 8); for (int i = 0; i < nSlots; i++) { Value v = values[i]; if (v == null) continue; sb.append(eng.getPropertyName(i)); sb.append(": "); sb.append(v); if (isImportant(i)) sb.append(" !important"); sb.append(";\n"); } return sb.toString(); } }
/** * Returns a printable representation of this style map. */ public String toString(CSSEngine eng) { // Note that values.length should always be equal to // eng.getNumberOfProperties() for StyleMaps that were created // by that CSSEngine. int nSlots = values.length; StringBuffer sb = new StringBuffer(nSlots * 8); for (int i = 0; i < nSlots; i++) { Value v = values[i]; if (v == null) continue; sb.append(eng.getPropertyName(i)); sb.append(": "); sb.append(v); if (isImportant(i)) sb.append(" !important"); sb.append(";\n"); } return sb.toString(); } }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSStyleDeclaration#getCssText()}. */ public String getCssText() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < cssEngine.getNumberOfProperties(); i++) { sb.append(cssEngine.getPropertyName(i)); sb.append(": "); sb.append(cssEngine.getComputedStyle(element, pseudoElement, i).getCssText()); sb.append(";\n"); } return sb.toString(); }
/** * Returns a printable representation of this style map. */ public String toString(CSSEngine eng) { // Note that values.length should always be equal to // eng.getNumberOfProperties() for StyleMaps that were created // by that CSSEngine. int nSlots = values.length; StringBuffer sb = new StringBuffer(nSlots * 8); for (int i = 0; i < nSlots; i++) { Value v = values[i]; if (v == null) continue; sb.append(eng.getPropertyName(i)); sb.append(": "); sb.append(v); if (isImportant(i)) sb.append(" !important"); sb.append(";\n"); } return sb.toString(); } }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSStyleDeclaration#getCssText()}. */ public String getCssText() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < cssEngine.getNumberOfProperties(); i++) { sb.append(cssEngine.getPropertyName(i)); sb.append(": "); sb.append(cssEngine.getComputedStyle(element, pseudoElement, i).getCssText()); sb.append(";\n"); } return sb.toString(); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.css.CSSStyleDeclaration#getCssText()}. */ public String getCssText() { StringBuffer sb = new StringBuffer(); for (int i = 0; i < cssEngine.getNumberOfProperties(); i++) { sb.append(cssEngine.getPropertyName(i)); sb.append(": "); sb.append(cssEngine.getComputedStyle(element, pseudoElement, i).getCssText()); sb.append(";\n"); } return sb.toString(); }