예제 #1
0
 /// <summary> Constructs a handler for inline style declarations using the given policy
 /// * and queue for imported stylesheets.
 /// </summary>
 /// <param name="policy">policy <code>Policy</code> The policy to use
 /// </param>
 /// <param name="embeddedStyleSheets">embeddedStyleSheets <code>ArrayList</code> the queue of stylesheets imported
 /// </param>
 /// <param name="errorMessages">errorMessages <code>ArrayList</code> the queue of stylesheets imported
 /// </param>
 /// <param name="tagName">tagName <code>ArrayList</code> the associated tag name with this inline style
 /// </param>
 public CssHandler(Policy policy, ArrayList embeddedStyleSheets,
                   ArrayList errorMessages, String tagName)
 {
     this.policy              = policy;
     this.errorMessages       = errorMessages;
     this.validator           = new CssValidator(policy);
     this.importedStyleSheets = embeddedStyleSheets;
     this.tagName             = tagName;
     this.isInline            = (tagName != null);
 }
예제 #2
0
 /// <summary> Constructs a handler for inline style declarations using the given policy
 /// * and queue for imported stylesheets. 
 /// </summary>
 /// <param name="policy">policy <code>Policy</code> The policy to use
 /// </param>
 /// <param name="embeddedStyleSheets">embeddedStyleSheets <code>ArrayList</code> the queue of stylesheets imported
 /// </param>
 /// <param name="errorMessages">errorMessages <code>ArrayList</code> the queue of stylesheets imported
 /// </param>
 /// <param name="tagName">tagName <code>ArrayList</code> the associated tag name with this inline style
 /// </param>
 public CssHandler(Policy policy, ArrayList embeddedStyleSheets,
     ArrayList errorMessages, String tagName)
 {
     this.policy = policy;
     this.errorMessages = errorMessages;
     this.validator = new CssValidator(policy);
     this.importedStyleSheets = embeddedStyleSheets;
     this.tagName = tagName;
     this.isInline = (tagName != null);
 }