Class StylesheetOptions


  • public final class StylesheetOptions
    extends java.lang.Object
    Provides options to describe options associated with importing a stylesheet onto a page. Stylesheet options are immutable.
    Since:
    5.2.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean ajaxInsertionPoint
      If true, then this stylesheet is the insertion point for Ajax operations; any added CSS links will be inserted before this link.
      java.lang.String condition
      The Internet Explorer condition associated with the link.
      java.lang.String media
      The media associated with this stylesheet, i.e., "print".
    • Constructor Summary

      Constructors 
      Constructor Description
      StylesheetOptions()
      Returns a new options object with media as null (that is, unspecified), no condition, and not the Ajax insertion point.
      StylesheetOptions​(java.lang.String media)  
      StylesheetOptions​(java.lang.String media, java.lang.String condition)
      Deprecated.
      In 5.3, may be removed in a later release.
    • Field Detail

      • media

        public final java.lang.String media
        The media associated with this stylesheet, i.e., "print". Becomes the media attribute of the <link> tag. May be null.
      • condition

        public final java.lang.String condition
        The Internet Explorer condition associated with the link. When non-blank, the <link> element will be written inside a specially formatted comment interpreted by Internet Explorer. Usually null, and only used for full page renders (not partial page renders).
        See Also:
        http://en.wikipedia.org/wiki/Conditional_comment
      • ajaxInsertionPoint

        public boolean ajaxInsertionPoint
        If true, then this stylesheet is the insertion point for Ajax operations; any added CSS links will be inserted before this link. Only at most one CSS link should be the insertion point. Only used for full page renders (not partial page renders). When this is true, the <link> element's ref attribute is wrtten out as "stylesheet ajax-insertion-point".