Example usage for Java javax.swing.text.html StyleSheet fields, constructors, methods, implement or subclass
The text is from its open source code.
StyleSheet() Construct a StyleSheet |
void | addRule(String rule) Adds a set of rules to the sheet. |
Style | addStyle(String nm, Style parent) Adds a new style into the style hierarchy. |
void | addStyleSheet(StyleSheet ss) Adds the rules from the StyleSheet ss to those of the receiver. |
Style | getStyle(String nm) Fetches a named style previously added to the document |
AttributeSet | getViewAttributes(View v) Fetches a set of attributes to use in the view for displaying. |
void | importStyleSheet(URL url) Imports a style sheet from url . |
void | loadRules(Reader in, URL ref) Loads a set of rules that have been specified in terms of CSS1 grammar. |