Lines Matching defs:rule

46  * rule repository.  The key for CSS attributes is an
75 * rule quickly. The following code fragment will display
93 *   Style rule = styles.getStyle(name);
94 *   System.out.println(rule.toString());
105 * background. But if the html file also contains the CSS rule
145 // . Every rule that is asked for (either by way of getRule(String) or
149 // . When a new rule is created it is inserted into the graph, and
263 * Fetches the rule that best matches the selector given
268 * as rules are added and removed. That is if you to ask for a rule
269 * with a selector "table p" and a new rule was added with a selector
271 * the rule "p".
287 public void addRule(String rule) {
288 if (rule != null) {
295 if (rule == baseUnitsDisable) {
297 } else if (rule.startsWith(baseUnits)) {
299 parseInt(rule.substring(baseUnits.length())));
300 } else if (rule == w3cLengthUnitsEnable) {
302 } else if (rule == w3cLengthUnitsDisable) {
307 parser.parse(getBase(), new StringReader(rule), false, false);
329 * the newly specified rule will win.
368 Style rule = mapping.getStyle();
369 if (rule != null) {
375 style.removeStyle(rule);
990 * Adds a rule into the StyleSheet.
992 * @param selector the selector to use for the rule.
996 * make up the rule.
1008 Style rule = getStyle(selectorName);
1009 if (rule == null) {
1010 // Notice how the rule is first created, and it not part of
1012 // a new rule will fire a ChangeEvent. We do not want to be
1022 rule = mapping.getStyle();
1023 if (rule == null) {
1024 rule = altRule;
1025 mapping.setStyle(rule);
1026 refreshResolvedRules(selectorName, selector, rule,
1032 rule = getLinkedStyle(rule);
1034 rule.addAttributes(declaration);
1050 ResolvedStyle rule = values.nextElement();
1051 rule.insertExtendedStyleAt(ss.getRule(rule.getName()),
1066 ResolvedStyle rule = values.nextElement();
1067 rule.removeExtendedStyleAt(index);
1652 * Should be invoked when a new rule is added that did not previously
2854 * a match is defined by the CSS rule matching.
3231 * Invoked when the start of a rule is encountered.
3275 * Invoked when the end of a rule is encountered.