Class MediaFactory

java.lang.Object
io.sf.carte.doc.style.css.om.MediaFactory

public class MediaFactory extends Object
Static factory that creates media query lists for all media, mutable and immutable.

Using these methods is a bit faster than going through the style sheet factory and parsing a query for "all".

  • Constructor Details

    • MediaFactory

      public MediaFactory()
  • Method Details

    • createAllMedia

      public static MediaQueryList createAllMedia()
      Create a media query list for all media.
      Returns:
      a media query list for all media.
    • createImmutable

      public static MediaQueryList createImmutable()
      Create an unmodifiable media query list for all media.
      Returns:
      a media query list for all media, unmodifiable.