@Deprecated public static final StyleMap assignDOM(Document doc, URL base, String media, boolean useInheritance) { return assignDOM(doc, null, base, media, useInheritance); }
@Deprecated public static final StyleMap assignDOM(Document doc, URL base, String media, boolean useInheritance) { return assignDOM(doc, null, base, media, useInheritance); }
@Deprecated public static final StyleMap assignDOM(Document doc, URL base, String media, boolean useInheritance) { return assignDOM(doc, null, base, media, useInheritance); }
/** * Goes through a DOM tree and assigns the CSS declarations to the DOM elements. * The following style specifications are evaluated: * <ul> * <li>The style sheets included using the <code>link</code> and <code>style</code> tags. * <li>Inline styles specified using the <code>style</code> element attribute. * <li><strong>Proprietary extension:</strong> Default styles defined using the <code>XDefaultStyle</code> * element attribute. These styles behave the same way as the inline styles but they have the lowest priority * (the values are used only when not redefined by any other way) * </ul> * * @param doc * DOM tree * @param encoding * The default encoding used for the referenced style sheets * @param base * Base URL against which all files are searched * @param media * Current media specification used for evaluating the media queries * @param useInheritance * Whether inheritance will be used to determine values * @return Map between DOM element nodes and data structure containing CSS * information */ public static final StyleMap assignDOM(Document doc, String encoding, URL base, MediaSpec media, boolean useInheritance) { return assignDOM(doc, encoding, base, media, useInheritance, null); }
/** * Goes through a DOM tree and assigns the CSS declarations to the DOM elements. * The following style specifications are evaluated: * <ul> * <li>The style sheets included using the <code>link</code> and <code>style</code> tags. * <li>Inline styles specified using the <code>style</code> element attribute. * <li><strong>Proprietary extension:</strong> Default styles defined using the <code>XDefaultStyle</code> * element attribute. These styles behave the same way as the inline styles but they have the lowest priority * (the values are used only when not redefined by any other way) * </ul> * <b>This method does not allow specifying the default style sheet character encoding. The current system * encoding is used by default. It is recommended to use the {@link #assignDOM(Document, String, URL, String, boolean)} * method in order to specify the encoding correctly.</b> * * @param doc * DOM tree * @param base * Base URL against which all files are searched * @param media * Selected media for style sheet * @param useInheritance * Whether inheritance will be used to determine values * @return Map between DOM element nodes and data structure containing CSS * information */ public static final StyleMap assignDOM(Document doc, URL base, String media, boolean useInheritance) { return assignDOM(doc, null, base, media, useInheritance); }
/** * Goes through a DOM tree and assigns the CSS declarations to the DOM elements. * The following style specifications are evaluated: * <ul> * <li>The style sheets included using the <code>link</code> and <code>style</code> tags. * <li>Inline styles specified using the <code>style</code> element attribute. * <li><strong>Proprietary extension:</strong> Default styles defined using the <code>XDefaultStyle</code> * element attribute. These styles behave the same way as the inline styles but they have the lowest priority * (the values are used only when not redefined by any other way) * </ul> * * @param doc * DOM tree * @param encoding * The default encoding used for the referenced style sheets * @param base * Base URL against which all files are searched * @param media * Current media specification used for evaluating the media queries * @param useInheritance * Whether inheritance will be used to determine values * @return Map between DOM element nodes and data structure containing CSS * information */ public static final StyleMap assignDOM(Document doc, String encoding, URL base, MediaSpec media, boolean useInheritance) { return assignDOM(doc, encoding, base, media, useInheritance, null); }
/** * Goes through a DOM tree and assigns the CSS declarations to the DOM elements. * The following style specifications are evaluated: * <ul> * <li>The style sheets included using the <code>link</code> and <code>style</code> tags. * <li>Inline styles specified using the <code>style</code> element attribute. * <li><strong>Proprietary extension:</strong> Default styles defined using the <code>XDefaultStyle</code> * element attribute. These styles behave the same way as the inline styles but they have the lowest priority * (the values are used only when not redefined by any other way) * </ul> * * @param doc * DOM tree * @param encoding * The default encoding used for the referenced style sheets * @param base * Base URL against which all files are searched * @param media * Current media specification used for evaluating the media queries * @param useInheritance * Whether inheritance will be used to determine values * @return Map between DOM element nodes and data structure containing CSS * information */ public static final StyleMap assignDOM(Document doc, String encoding, URL base, MediaSpec media, boolean useInheritance) { return assignDOM(doc, encoding, base, media, useInheritance, null); }
/** * This is the same as {@link CSSFactory#assignDOM(Document, String, URL, MediaSpec, boolean)} but only the * media type is provided instead of the complete media specification. * * @param doc * DOM tree * @param encoding * The default encoding used for the referenced style sheets * @param base * Base URL against which all files are searched * @param media * Selected media type for style sheet * @param useInheritance * Whether inheritance will be used to determine values * @return Map between DOM element nodes and data structure containing CSS * information */ public static final StyleMap assignDOM(Document doc, String encoding, URL base, String media, boolean useInheritance) { return assignDOM(doc, encoding, base, new MediaSpec(media), useInheritance); }
/** * This is the same as {@link CSSFactory#assignDOM(Document, String, URL, MediaSpec, boolean)} but only the * media type is provided instead of the complete media specification. * * @param doc * DOM tree * @param encoding * The default encoding used for the referenced style sheets * @param base * Base URL against which all files are searched * @param media * Selected media type for style sheet * @param useInheritance * Whether inheritance will be used to determine values * @return Map between DOM element nodes and data structure containing CSS * information */ public static final StyleMap assignDOM(Document doc, String encoding, URL base, String media, boolean useInheritance) { return assignDOM(doc, encoding, base, new MediaSpec(media), useInheritance); }
/** * This is the same as {@link CSSFactory#assignDOM(Document, String, URL, MediaSpec, boolean)} but only the * media type is provided instead of the complete media specification. * * @param doc * DOM tree * @param encoding * The default encoding used for the referenced style sheets * @param base * Base URL against which all files are searched * @param media * Selected media type for style sheet * @param useInheritance * Whether inheritance will be used to determine values * @return Map between DOM element nodes and data structure containing CSS * information */ public static final StyleMap assignDOM(Document doc, String encoding, URL base, String media, boolean useInheritance) { return assignDOM(doc, encoding, base, new MediaSpec(media), useInheritance); }
/** * This is the same as {@link CSSFactory#assignDOM(Document, String, URL, MediaSpec, boolean)} but only the * media type is provided instead of the complete media specification. * * @param doc * DOM tree * @param encoding * The default encoding used for the referenced style sheets * @param base * Base URL against which all files are searched * @param media * Selected media type for style sheet * @param useInheritance * Whether inheritance will be used to determine values * @param matchCond * The match condition to match the against. * @return Map between DOM element nodes and data structure containing CSS * information */ public static final StyleMap assignDOM(Document doc, String encoding, URL base, String media, boolean useInheritance, final MatchCondition matchCond) { return assignDOM(doc, encoding, base, new MediaSpec(media), useInheritance, matchCond); }
/** * This is the same as {@link CSSFactory#assignDOM(Document, String, URL, MediaSpec, boolean)} but only the * media type is provided instead of the complete media specification. * * @param doc * DOM tree * @param encoding * The default encoding used for the referenced style sheets * @param base * Base URL against which all files are searched * @param media * Selected media type for style sheet * @param useInheritance * Whether inheritance will be used to determine values * @param matchCond * The match condition to match the against. * @return Map between DOM element nodes and data structure containing CSS * information */ public static final StyleMap assignDOM(Document doc, String encoding, URL base, String media, boolean useInheritance, final MatchCondition matchCond) { return assignDOM(doc, encoding, base, new MediaSpec(media), useInheritance, matchCond); }
/** * This is the same as {@link CSSFactory#assignDOM(Document, String, URL, MediaSpec, boolean)} but only the * media type is provided instead of the complete media specification. * * @param doc * DOM tree * @param encoding * The default encoding used for the referenced style sheets * @param base * Base URL against which all files are searched * @param media * Selected media type for style sheet * @param useInheritance * Whether inheritance will be used to determine values * @param matchCond * The match condition to match the against. * @return Map between DOM element nodes and data structure containing CSS * information */ public static final StyleMap assignDOM(Document doc, String encoding, URL base, String media, boolean useInheritance, final MatchCondition matchCond) { return assignDOM(doc, encoding, base, new MediaSpec(media), useInheritance, matchCond); }
URL base, MediaSpec media, boolean useInheritance, final MatchCondition matchCond) { return assignDOM(doc, encoding, getNetworkProcessor(), base, media, useInheritance, matchCond);
URL base, MediaSpec media, boolean useInheritance, final MatchCondition matchCond) { return assignDOM(doc, encoding, new DefaultNetworkProcessor(), base, media, useInheritance, matchCond);
URL base, MediaSpec media, boolean useInheritance, final MatchCondition matchCond) { return assignDOM(doc, encoding, getNetworkProcessor(), base, media, useInheritance, matchCond);