JHotDraw 7.4.1

org.jhotdraw.xml.css
Class CSSRule

java.lang.Object
  extended by org.jhotdraw.xml.css.CSSRule

public class CSSRule
extends java.lang.Object

CSSRule matches on a CSS selector.

Supported selectors:

This class supports net.n3.nanoxml as well as org.w3c.dom.

Version:
$Id: CSSRule.java 604 2010-01-09 12:00:29Z rawcoder $
Author:
Werner Randelshofer

Field Summary
protected  java.util.Map<java.lang.String,java.lang.String> properties
           
 
Constructor Summary
CSSRule(java.lang.String selector, java.util.Map<java.lang.String,java.lang.String> properties)
           
CSSRule(java.lang.String name, java.lang.String value)
           
CSSRule(java.lang.String selector, java.lang.String propertyName, java.lang.String propertyValue)
           
 
Method Summary
 void apply(org.w3c.dom.Element elem)
           
 void apply(IXMLElement elem)
           
 boolean matches(org.w3c.dom.Element elem)
           
 boolean matches(IXMLElement elem)
           
 void setSelector(java.lang.String selector)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

properties

protected java.util.Map<java.lang.String,java.lang.String> properties
Constructor Detail

CSSRule

public CSSRule(java.lang.String name,
               java.lang.String value)

CSSRule

public CSSRule(java.lang.String selector,
               java.lang.String propertyName,
               java.lang.String propertyValue)

CSSRule

public CSSRule(java.lang.String selector,
               java.util.Map<java.lang.String,java.lang.String> properties)
Method Detail

setSelector

public void setSelector(java.lang.String selector)

matches

public boolean matches(org.w3c.dom.Element elem)

matches

public boolean matches(IXMLElement elem)

apply

public void apply(org.w3c.dom.Element elem)

apply

public void apply(IXMLElement elem)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.