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
FieldsModifier and TypeFieldDescriptionstatic final intThe rule is aCSSCharsetRule.static final intThe rule is aCSSFontFaceRule.static final intThe rule is aCSSImportRule.static final intThe rule is aCSSMediaRule.static final intThe rule is aCSSPageRule.static final intThe rule is aCSSStyleRule.static final intThe rule is aCSSUnknownRule. -
Method Summary
Modifier and TypeMethodDescriptiongetCssText.getParentRule.parentStyleSheet.intgetType()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
Stringobject.
-
getParentRule
CSSRule getParentRule()getParentRule.
- Returns:
- a
CSSRuleobject.
-
getParentStyleSheet
CSSStyleSheet getParentStyleSheet()parentStyleSheet.
- Returns:
- a
CSSStyleSheetobject.
-
getType
int getType()getType.
- Returns:
- a
Integerobject.
-