Package org.loboevolution.css
Interface CSSRule
- All Known Subinterfaces:
CSSCharsetRule
,CSSFontFaceRule
,CSSImportRule
,CSSMediaRule
,CSSPageRule
,CSSStyleRule
- All Known Implementing Classes:
AbstractCSSStyleRule
,CSSCharsetRuleImpl
,CSSFontFaceRuleImpl
,CSSImportRuleImpl
,CSSKeyFramesRuleImpl
,CSSMediaRuleImpl
,CSSPageRuleImpl
,CSSRuleImpl
,CSSStyleRuleImpl
public interface CSSRule
A CSS rule interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The rule is aCSSCharsetRule
.static final int
The rule is aCSSFontFaceRule
.static final int
The rule is aCSSImportRule
.static final int
The rule is aCSSMediaRule
.static final int
The rule is aCSSPageRule
.static final int
The rule is aCSSStyleRule
.static final int
The rule is aCSSUnknownRule
. -
Method Summary
Modifier and TypeMethodDescriptiongetCssText.getParentRule.parentStyleSheet.int
getType()
getType.
-
Field Details
-
UNKNOWN_RULE
static final int UNKNOWN_RULEThe rule is aCSSUnknownRule
.- See Also:
-
STYLE_RULE
static final int STYLE_RULEThe rule is aCSSStyleRule
.- See Also:
-
CHARSET_RULE
static final int CHARSET_RULEThe rule is aCSSCharsetRule
.- See Also:
-
IMPORT_RULE
static final int IMPORT_RULEThe rule is aCSSImportRule
.- See Also:
-
MEDIA_RULE
static final int MEDIA_RULEThe rule is aCSSMediaRule
.- See Also:
-
FONT_FACE_RULE
static final int FONT_FACE_RULEThe rule is aCSSFontFaceRule
.- See Also:
-
PAGE_RULE
static final int PAGE_RULEThe rule is aCSSPageRule
.- See Also:
-
-
Method Details
-
getCssText
String getCssText()getCssText.
- Returns:
- a
String
object.
-
getParentRule
CSSRule getParentRule()getParentRule.
- Returns:
- a
CSSRule
object.
-
getParentStyleSheet
CSSStyleSheet getParentStyleSheet()parentStyleSheet.
- Returns:
- a
CSSStyleSheet
object.
-
getType
int getType()getType.
- Returns:
- a
Integer
object.
-