info.informatica.doc.style.css.dom
Class DOMMediaList

java.lang.Object
  extended by info.informatica.doc.style.css.dom.DOMMediaList
All Implemented Interfaces:
org.w3c.dom.stylesheets.MediaList

public class DOMMediaList
extends Object
implements org.w3c.dom.stylesheets.MediaList

DOM media list.

Author:
Carlos Amengual (amengual at informatica.info)

Constructor Summary
DOMMediaList()
           
DOMMediaList(org.w3c.dom.stylesheets.MediaList list)
           
DOMMediaList(String media)
           
 
Method Summary
 void appendMedium(String newMedium)
           
 void deleteMedium(String oldMedium)
           
 int getLength()
           
 String getMediaText()
           
 String item(int index)
           
 boolean match(org.w3c.dom.stylesheets.MediaList domMedia)
          Does the given DOM media list contain any media present in this list?
 boolean match(String media)
          Does this list match the given media?
 void setMediaText(String mediaText)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DOMMediaList

public DOMMediaList()

DOMMediaList

public DOMMediaList(String media)

DOMMediaList

public DOMMediaList(org.w3c.dom.stylesheets.MediaList list)
Method Detail

getMediaText

public String getMediaText()
Specified by:
getMediaText in interface org.w3c.dom.stylesheets.MediaList

setMediaText

public void setMediaText(String mediaText)
                  throws DOMException
Specified by:
setMediaText in interface org.w3c.dom.stylesheets.MediaList
Throws:
DOMException

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.stylesheets.MediaList

item

public String item(int index)
Specified by:
item in interface org.w3c.dom.stylesheets.MediaList

deleteMedium

public void deleteMedium(String oldMedium)
                  throws DOMException
Specified by:
deleteMedium in interface org.w3c.dom.stylesheets.MediaList
Throws:
DOMException

appendMedium

public void appendMedium(String newMedium)
                  throws DOMException
Specified by:
appendMedium in interface org.w3c.dom.stylesheets.MediaList
Throws:
DOMException

match

public boolean match(org.w3c.dom.stylesheets.MediaList domMedia)
Does the given DOM media list contain any media present in this list?

Parameters:
domMedia - the DOM media list to test.
Returns:
true if the supplied media list contains any media which applies to this list, false otherwise.

match

public boolean match(String media)
Does this list match the given media?

Parameters:
media - the lowercase name of the media to test for.
Returns:
true if this list matches the supplied media name, false otherwise.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 informatica.info. All Rights Reserved.