for (int j = 0; j < styleDeclaration.getLength(); j++)
/** * Returns the number of rows in the table. */ public int getRowCount() { if (style == null) { return 0; } return style.getLength(); }
/** * Returns the number of rows in the table. */ public int getRowCount() { if (style == null) { return 0; } return style.getLength(); }
/** * Creates a new NodeAttributesModel object. */ public NodeCSSValuesModel(Node n) { node = n; if (viewCSS != null) { style = viewCSS.getComputedStyle((Element)n, null); propertyNames = new ArrayList(); if (style != null) { for (int i = 0; i < style.getLength(); i++) { propertyNames.add(style.item(i)); } Collections.sort(propertyNames); } } }
/** * Creates a new NodeAttributesModel object. */ public NodeCSSValuesModel(Node n) { node = n; if (viewCSS != null) { style = viewCSS.getComputedStyle((Element)n, null); propertyNames = new ArrayList(); if (style != null) { for (int i = 0; i < style.getLength(); i++) { propertyNames.add(style.item(i)); } Collections.sort(propertyNames); } } }
@Override public void visitStyleDeclaration(CSSStyleDeclaration styleDeclaration) { for (int j = 0; j < styleDeclaration.getLength(); j++) { String propertyName = styleDeclaration.item(j);
/** * Returns the actual text of the style. * @return the actual text of the style */ @JsxGetter public String getCssText() { if (styleDeclaration_ != null) { final String text = styleDeclaration_.getCssText(); if (styleDeclaration_.getLength() > 0) { return text + ";"; } return text; } return jsElement_.getDomNodeOrDie().getAttributeDirect("style"); }
.getValue(); if (styleDeclaration != null) { int length = styleDeclaration.getLength();
for (int i = 0; i < style.getLength(); i++) { String property = style.item(i); CSSValue value = style.getPropertyCSSValue(property);
/** * Makes a local, "computed", modification to this CSS style. * * @param declaration the style declaration * @param selector the selector determining that the style applies to this element */ public void applyStyleFromSelector(final org.w3c.dom.css.CSSStyleDeclaration declaration, final Selector selector) { final BrowserVersion browserVersion = getBrowserVersion(); final SelectorSpecificity specificity = selector.getSelectorSpecificity(); for (int i = 0; i < declaration.getLength(); i++) { final String name = declaration.item(i); if (!browserVersion.hasFeature(CSS_COMPUTED_NO_Z_INDEX) || !"z-index".equals(name)) { final String value = declaration.getPropertyValue(name); final String priority = declaration.getPropertyPriority(name); applyLocalStyleAttribute(name, value, priority, specificity); } } }
String fontName = ""; String fontSrc = ""; for (int j = 0; j < declaration.getLength(); j++) { String property = declaration.item(j); CSSValue cssval = declaration.getPropertyCSSValue(property); for (int j = 0; j < declaration.getLength(); j++) { String property = declaration.item(j); CSSValue cssval = declaration.getPropertyCSSValue(property);
if (newStyle != null) { StringBuffer style = null; int length = newStyle.getLength(); for (int i = 0; i < length; i++) { String propertyName = newStyle.item(i);
if (newStyle != null) { StringBuffer style = null; int length = newStyle.getLength(); for (int i = 0; i < length; i++) { String propertyName = newStyle.item(i);
private boolean equalsProperties(final CSSStyleDeclaration csd) { if ((csd == null) || (getLength() != csd.getLength())) { return false; } for (int i = 0; i < getLength(); i++) { final String propertyName = item(i); // CSSValue propertyCSSValue1 = getPropertyCSSValue(propertyName); // CSSValue propertyCSSValue2 = csd.getPropertyCSSValue(propertyName); final String propertyValue1 = getPropertyValue(propertyName); final String propertyValue2 = csd.getPropertyValue(propertyName); if (!LangUtils.equals(propertyValue1, propertyValue2)) { return false; } final String propertyPriority1 = getPropertyPriority(propertyName); final String propertyPriority2 = csd.getPropertyPriority(propertyName); if (!LangUtils.equals(propertyPriority1, propertyPriority2)) { return false; } } return true; }
private boolean equalsProperties(final CSSStyleDeclaration csd) { if ((csd == null) || (getLength() != csd.getLength())) { return false; } for (int i = 0; i < getLength(); i++) { final String propertyName = item(i); // CSSValue propertyCSSValue1 = getPropertyCSSValue(propertyName); // CSSValue propertyCSSValue2 = csd.getPropertyCSSValue(propertyName); final String propertyValue1 = getPropertyValue(propertyName); final String propertyValue2 = csd.getPropertyValue(propertyName); if (!LangUtils.equals(propertyValue1, propertyValue2)) { return false; } final String propertyPriority1 = getPropertyPriority(propertyName); final String propertyPriority2 = csd.getPropertyPriority(propertyName); if (!LangUtils.equals(propertyPriority1, propertyPriority2)) { return false; } } return true; }
boolean isFillNone = false; boolean isStrokeNone = false; for (int j = 0; j < declaration.getLength(); j++) { final String property = declaration.item(j).trim(); final String value = declaration.getPropertyValue(property).trim();
CSSStyleDeclaration styledeclaration = parser.parseStyleDeclaration(is) boolean hasProps = false for (int i=0; i < styledeclaration.getLength(); i++) { def propname = styledeclaration.item(i) def propval = styledeclaration.getPropertyValue(propname)
if (selected) { final org.w3c.dom.css.CSSStyleDeclaration dec = styleRule.getStyle(); for (int k = 0; k < dec.getLength(); k++) { final String name = dec.item(k); final String value = dec.getPropertyValue(name);
if (selected) { final org.w3c.dom.css.CSSStyleDeclaration dec = styleRule.getStyle(); for (int k = 0; k < dec.getLength(); k++) { final String name = dec.item(k); final String value = dec.getPropertyValue(name);
if (selected) { final org.w3c.dom.css.CSSStyleDeclaration dec = styleRule.getStyle(); for (int k = 0; k < dec.getLength(); k++) { final String name = dec.item(k); final String value = dec.getPropertyValue(name);