public class StyleSheet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
alternate
Whether or not this stylesheet is alternate.
|
protected org.w3c.css.sac.SACMediaList |
media
The media to use to cascade properties.
|
protected StyleSheet |
parent
The parent sheet, if any.
|
protected Rule[] |
rules
The rules.
|
protected int |
size
The number of rules.
|
protected java.lang.String |
title
The style sheet title.
|
Constructor and Description |
---|
StyleSheet() |
Modifier and Type | Method and Description |
---|---|
void |
append(Rule r)
Appends a rule to the stylesheet.
|
void |
clear()
Clears the content.
|
org.w3c.css.sac.SACMediaList |
getMedia()
Returns the media to use to compute the styles.
|
StyleSheet |
getParent()
Returns the parent sheet.
|
Rule |
getRule(int i)
Returns the rule at the given index.
|
int |
getSize()
Returns the number of rules.
|
java.lang.String |
getTitle()
Returns the title of this style-sheet.
|
boolean |
isAlternate()
Tells whether or not this stylesheet is alternate.
|
void |
setAlternate(boolean b)
Sets the 'alternate' attribute of this style-sheet.
|
void |
setMedia(org.w3c.css.sac.SACMediaList m)
Sets the media to use to compute the styles.
|
void |
setParent(StyleSheet ss)
Sets the parent sheet.
|
void |
setTitle(java.lang.String t)
Sets the 'title' attribute of this style-sheet.
|
java.lang.String |
toString(CSSEngine eng)
Returns a printable representation of this style-sheet.
|
protected Rule[] rules
protected int size
protected StyleSheet parent
protected boolean alternate
protected org.w3c.css.sac.SACMediaList media
protected java.lang.String title
public void setMedia(org.w3c.css.sac.SACMediaList m)
public org.w3c.css.sac.SACMediaList getMedia()
public StyleSheet getParent()
public void setParent(StyleSheet ss)
public void setAlternate(boolean b)
public boolean isAlternate()
public void setTitle(java.lang.String t)
public java.lang.String getTitle()
public int getSize()
public Rule getRule(int i)
public void clear()
public void append(Rule r)
public java.lang.String toString(CSSEngine eng)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.