/** * Returns a printable representation of this rule. */ public String toString(CSSEngine eng) { StringBuffer sb = new StringBuffer(); sb.append("@font-face { "); sb.append(sm.toString(eng)); sb.append(" }\n"); return sb.toString(); } }
/** * Returns a printable representation of this rule. */ public String toString(CSSEngine eng) { StringBuffer sb = new StringBuffer(); sb.append("@font-face { "); sb.append(sm.toString(eng)); sb.append(" }\n"); return sb.toString(); } }
/** * Returns a printable representation of this rule. */ public String toString(CSSEngine eng) { StringBuffer sb = new StringBuffer(); sb.append("@font-face { "); sb.append(sm.toString(eng)); sb.append(" }\n"); return sb.toString(); } }
public String getAllStylesForElement(Element element) { if (!(element instanceof CSSStylableElement)) { return ""; } Document document = element.getOwnerDocument(); XhtmlCssEngine engine = getCssEngine(document); if (engine != null) { CSSStylableElement elt = (CSSStylableElement)element; StyleMap map = elt.getComputedStyleMap(null); if (map != null) { return map.toString(engine); } } return ""; // NOI18N }