Package org.apache.batik.css.engine
Class MediaRule
java.lang.Object
org.apache.batik.css.engine.StyleSheet
org.apache.batik.css.engine.MediaRule
- All Implemented Interfaces:
Rule
- Direct Known Subclasses:
ImportRule
This class represents a @media CSS rule.
- Version:
- $Id: MediaRule.java 1831630 2018-05-15 12:56:55Z ssteiner $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.w3c.css.sac.SACMediaList
The media list.static final short
The type constant. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.css.sac.SACMediaList
Returns the media list.short
getType()
Returns a constant identifying the rule type.void
setMediaList
(org.w3c.css.sac.SACMediaList ml) Sets the media list.Returns a printable representation of this media rule.Methods inherited from class org.apache.batik.css.engine.StyleSheet
append, clear, getMedia, getParent, getRule, getSize, getTitle, isAlternate, setAlternate, setMedia, setParent, setTitle
-
Field Details
-
TYPE
public static final short TYPEThe type constant.- See Also:
-
mediaList
protected org.w3c.css.sac.SACMediaList mediaListThe media list.
-
-
Constructor Details
-
MediaRule
public MediaRule()
-
-
Method Details
-
getType
public short getType()Returns a constant identifying the rule type. -
setMediaList
public void setMediaList(org.w3c.css.sac.SACMediaList ml) Sets the media list. -
getMediaList
public org.w3c.css.sac.SACMediaList getMediaList()Returns the media list. -
toString
Returns a printable representation of this media rule.- Specified by:
toString
in interfaceRule
- Overrides:
toString
in classStyleSheet
-