org.jfree.layouting.input.style.selectors

Class CSSSilblingSelector

public class CSSSilblingSelector extends AbstractSelector implements SiblingSelector

We do not support DOM node types, we always assume elements here (or evaluate both selectors to see if they match).

Author: Thomas Morgner

Constructor Summary
CSSSilblingSelector(short nodeType, Selector selector, SimpleSelector silblingSelector)
Method Summary
protected SelectorWeightcreateWeight()
shortgetNodeType()
The node type to considered in the siblings list.
SelectorgetSelector()
Returns the first selector.
shortgetSelectorType()
An integer indicating the type of Selector
SimpleSelectorgetSiblingSelector()

Constructor Detail

CSSSilblingSelector

public CSSSilblingSelector(short nodeType, Selector selector, SimpleSelector silblingSelector)

Method Detail

createWeight

protected SelectorWeight createWeight()

getNodeType

public short getNodeType()
The node type to considered in the siblings list. All DOM node types are supported. In order to support the "any" node type, the code ANY_NODE is added to the DOM node types.

getSelector

public Selector getSelector()
Returns the first selector.

getSelectorType

public short getSelectorType()
An integer indicating the type of Selector

getSiblingSelector

public SimpleSelector getSiblingSelector()