All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.parser.AtRuleMedia

java.lang.Object
   |
   +----org.w3c.css.parser.AtRule
           |
           +----org.w3c.css.parser.AtRuleMedia

public class AtRuleMedia
extends AtRule
This class manages all media defines by CSS2


Constructor Index

 o AtRuleMedia()

Method Index

 o addMedia(String)
Adds a medium.
 o canApply(AtRule)
The second must be exactly the same of this one
 o canMatched(AtRule)
The second must only match this one
 o elements()
 o isEmpty()
 o keyword()
Returns the at rule keyword
 o toString()
Returns a string representation of the object.

Constructors

 o AtRuleMedia
 public AtRuleMedia()

Methods

 o addMedia
 public AtRuleMedia addMedia(String medium) throws InvalidParamException
Adds a medium.

Throws: InvalidParamException
the medium doesn't exist
 o keyword
 public String keyword()
Returns the at rule keyword

Overrides:
keyword in class AtRule
 o isEmpty
 public boolean isEmpty()
 o canApply
 public boolean canApply(AtRule atRule)
The second must be exactly the same of this one

Overrides:
canApply in class AtRule
 o canMatched
 public boolean canMatched(AtRule atRule)
The second must only match this one

Overrides:
canMatched in class AtRule
 o elements
 public Enumeration elements()
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index