|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.html.StyleSheet.SelectorMapping
SelectorMapping contains a specifitiy, as an integer, and an associated
Style. It can also reference children SelectorMapping
s,
so that it behaves like a tree.
This is not thread safe, it is assumed the caller will take the necessary precations if this is to be used in a threaded environment.
Field Summary | |
private HashMap |
children
Any sub selectors. |
private int |
specificity
The specificity for this selector. |
private Style |
style
Style for this selector. |
Constructor Summary | |
StyleSheet.SelectorMapping(int specificity)
|
Method Summary | |
protected StyleSheet.SelectorMapping |
createChildSelectorMapping(int specificity)
Creates a child SelectorMapping with the specified
specificity . |
StyleSheet.SelectorMapping |
getChildSelectorMapping(String selector,
boolean create)
Returns the child mapping identified by the simple selector selector . |
protected int |
getChildSpecificity(String selector)
Returns the specificity for the child selector selector . |
int |
getSpecificity()
Returns the specificity this mapping represents. |
Style |
getStyle()
Returns the Style associated with this mapping. |
void |
setStyle(Style style)
Sets the Style associated with this mapping. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int specificity
private Style style
private HashMap children
Constructor Detail |
public StyleSheet.SelectorMapping(int specificity)
Method Detail |
public int getSpecificity()
public void setStyle(Style style)
public Style getStyle()
public StyleSheet.SelectorMapping getChildSelectorMapping(String selector, boolean create)
selector
. If a child mapping does not exist for
selector
, and create
is true, a new
one will be created.
protected StyleSheet.SelectorMapping createChildSelectorMapping(int specificity)
SelectorMapping
with the specified
specificity
.
protected int getChildSpecificity(String selector)
selector
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |