Home » openjdk-7 » javax » swing » text » html » [javadoc | source]
static class: StyleSheet.ResolvedStyle [javadoc | source]

All Implemented Interfaces:
    Style, Serializable, AttributeSet, java$io$Serializable

A subclass of MuxingAttributeSet that implements Style. Currently the MutableAttributeSet methods are unimplemented, that is they do nothing.
Field Summary
 String name    The name of the Style, which is the selector. This will NEVER change! 
 ResolvedStyle(String name,
    AttributeSet[] attrs,
    int extendedIndex) 
Method from javax.swing.text.html.StyleSheet$ResolvedStyle Summary:
addAttribute,   addAttributes,   addChangeListener,   addExtendedStyle,   boundedIndexOf,   getChangeListeners,   getName,   insertExtendedStyleAt,   insertStyle,   matches,   matches,   removeAttribute,   removeAttributes,   removeAttributes,   removeChangeListener,   removeExtendedStyleAt,   removeStyle,   setResolveParent
Methods from javax.swing.text.html.MuxingAttributeSet:
containsAttribute,   containsAttributes,   copyAttributes,   getAttribute,   getAttributeCount,   getAttributeNames,   getAttributes,   getResolveParent,   insertAttributeSetAt,   isDefined,   isEqual,   removeAttributeSetAt,   setAttributes
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.text.html.StyleSheet$ResolvedStyle Detail:
 public  void addAttribute(Object name,
    Object value) 
 public  void addAttributes(AttributeSet attributes) 
 public  void addChangeListener(ChangeListener l) 
 synchronized  void addExtendedStyle(Style attr) 
    Adds s as one of the AttributeSets to look up attributes in. It will be the AttributeSet last checked.
 int boundedIndexOf(String string,
    char search,
    int start,
    int end) 
    Similiar to String.indexOf, but allows an upper bound (this is slower in that it will still check string starting at start.
 public ChangeListener[] getChangeListeners() 
 public String getName() 
 synchronized  void insertExtendedStyleAt(Style attr,
    int index) 
    Adds s as one of the Attributesets to look up attributes in.
 synchronized  void insertStyle(Style style,
    int specificity) 
    Inserts a Style into the receiver so that the styles the receiver represents are still ordered by specificity. style will be added before any extended styles, that is before extendedIndex.
 protected boolean matches(String selector) 
    Returns true if the receiver matches selector, where a match is defined by the CSS rule matching. Each simple selector must be separated by a single space.
 boolean matches(String selector,
    int sCurrent,
    int sLast,
    int thisCurrent,
    int thisLast) 
    Returns true if the substring of the receiver, in the range thisCurrent, thisLast matches the substring of selector in the ranme sCurrent to sLast based on CSS selector matching.
 public  void removeAttribute(Object name) 
 public  void removeAttributes(Enumeration<?> names) 
 public  void removeAttributes(AttributeSet attributes) 
 public  void removeChangeListener(ChangeListener l) 
 synchronized  void removeExtendedStyleAt(int index) 
    Removes the style at index + extendedIndex.
 synchronized  void removeStyle(Style style) 
    Removes a previously added style. This will do nothing if style is not referenced by the receiver.
 public  void setResolveParent(AttributeSet parent)