com.aspose.html.dom.css

Interface IMediaList

  • All Superinterfaces:
    com.aspose.ms.System.Collections.IEnumerable<java.lang.String>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<java.lang.String>, java.lang.Iterable<java.lang.String>


    public interface IMediaList
    extends com.aspose.ms.System.Collections.Generic.IGenericEnumerable<java.lang.String>

    The MediaList interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented. An empty list is the same as a list that contains the medium "all".

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void appendMedium(java.lang.String newMedium)
      Adds the medium newMedium to the end of the list.
      void deleteMedium(java.lang.String oldMedium)
      Deletes the medium indicated by oldMedium from the list.
      java.lang.String get_Item(int index)
      Returns the indexth in the list.
      long getLength()
      The number of media in the list.
      java.lang.String getMediaText()
      The parsable textual representation of the media list.
      • Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable

        iterator
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • getMediaText

        java.lang.String getMediaText()

        The parsable textual representation of the media list. This is a comma-separated list of media.

      • getLength

        long getLength()

        The number of media in the list. The range of valid media is 0 to length-1 inclusive.

      • get_Item

        java.lang.String get_Item(int index)

        Returns the indexth in the list. If index is greater than or equal to the number of media in the list, this returns null.

        Parameters:
        index - The media index.
      • deleteMedium

        void deleteMedium(java.lang.String oldMedium)

        Deletes the medium indicated by oldMedium from the list.

        Parameters:
        oldMedium - The old medium.
      • appendMedium

        void appendMedium(java.lang.String newMedium)

        Adds the medium newMedium to the end of the list. If the newMedium is already used, it is first removed.

        Parameters:
        newMedium - The new medium.