sferyx.administration.renderers
Class HTMLBrowser.CustomStyleSheet

java.lang.Object
  extended by javax.swing.text.StyleContext
      extended by javax.swing.text.html.StyleSheet
          extended by sferyx.administration.renderers.ExternalCustomStyleSheet
              extended by sferyx.administration.renderers.HTMLBrowser.CustomStyleSheet
All Implemented Interfaces:
java.io.Serializable, javax.swing.text.AbstractDocument.AttributeContext
Enclosing class:
HTMLBrowser

public class HTMLBrowser.CustomStyleSheet
extends ExternalCustomStyleSheet

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.text.html.StyleSheet
javax.swing.text.html.StyleSheet.BoxPainter, javax.swing.text.html.StyleSheet.ListPainter
 
Nested classes/interfaces inherited from class javax.swing.text.StyleContext
javax.swing.text.StyleContext.NamedStyle, javax.swing.text.StyleContext.SmallAttributeSet
 
Field Summary
 javax.swing.text.html.StyleSheet printStyle
           
 
Fields inherited from class javax.swing.text.StyleContext
DEFAULT_STYLE
 
Constructor Summary
HTMLBrowser.CustomStyleSheet()
           
 
Method Summary
 void addCSSAttribute(javax.swing.text.MutableAttributeSet attr, javax.swing.text.html.CSS.Attribute key, java.lang.String value)
           
 boolean addCSSAttributeFromHTML(javax.swing.text.MutableAttributeSet attr, javax.swing.text.html.CSS.Attribute key, java.lang.String value)
           
 void addImportedRule(java.lang.String value)
           
 void addRule(java.lang.String value)
           
 void addRuleFromImport(java.lang.String value)
           
 javax.swing.text.Style addStyle(java.lang.String nm, javax.swing.text.Style parent)
           
 void addStyleSheet(javax.swing.text.html.StyleSheet sheet)
           
 void addSuperRule(java.lang.String value)
           
 java.awt.Color getBackground(javax.swing.text.AttributeSet a)
           
 javax.swing.text.html.StyleSheet.BoxPainter getBoxPainter(javax.swing.text.AttributeSet a)
           
 javax.swing.text.AttributeSet getDeclaration(java.lang.String decl)
           
 java.awt.Font getFont_(javax.swing.text.AttributeSet a)
           
 java.awt.Font getFont(javax.swing.text.AttributeSet a)
           
 java.awt.Color getForeground(javax.swing.text.AttributeSet a)
           
 javax.swing.text.Style[] getMatchingStyles(java.lang.String selector, javax.swing.text.Element element, javax.swing.text.View view)
           
 java.lang.String getOriginalStyleSheet()
           
 javax.swing.text.Style getRule_(javax.swing.text.html.HTML.Tag tag, javax.swing.text.Element elem_)
           
 javax.swing.text.Style getRule(java.lang.String selector)
           
 javax.swing.text.Style getStyle(java.lang.String nm)
           
 java.util.Enumeration getStyleNames()
           
 HTMLBrowser.CustomStyleSheet getStyleSheetInstance()
           
 javax.swing.text.AttributeSet getViewAttributes_ForOlder(javax.swing.text.View v)
           
 javax.swing.text.AttributeSet getViewAttributes_full(javax.swing.text.View v)
           
 javax.swing.text.AttributeSet getViewAttributes(javax.swing.text.View v)
           
 javax.swing.text.AttributeSet getViewAttributesForElement(javax.swing.text.Element element)
           
 void importStyleSheet_(java.net.URL url)
           
 void importStyleSheet(java.net.URL url)
           
 void importStyleSheetInternal(java.net.URL url)
           
 boolean isStyleMatchingSelector(java.lang.String selector, java.lang.String styleName, javax.swing.text.Element element)
           
 java.awt.Color stringToColor(java.lang.String string)
           
 javax.swing.text.AttributeSet translateHTMLToCSS(javax.swing.text.AttributeSet htmlAttrSet)
           
 
Methods inherited from class sferyx.administration.renderers.ExternalCustomStyleSheet
getIndexOfSize, getPointSize, getPointSize, getRealIndexOfSize, isAvailableIndexOfSize
 
Methods inherited from class javax.swing.text.html.StyleSheet
addAttribute, addAttributes, createLargeAttributeSet, createSmallAttributeSet, getBase, getListPainter, getRule, getStyleSheets, loadRules, removeAttribute, removeAttributes, removeAttributes, removeStyle, removeStyleSheet, setBase, setBaseFontSize, setBaseFontSize
 
Methods inherited from class javax.swing.text.StyleContext
addChangeListener, getChangeListeners, getCompressionThreshold, getDefaultStyleContext, getEmptySet, getFont, getFontMetrics, getStaticAttribute, getStaticAttributeKey, readAttributes, readAttributeSet, reclaim, registerStaticAttributeKey, removeChangeListener, toString, writeAttributes, writeAttributeSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

printStyle

public javax.swing.text.html.StyleSheet printStyle
Constructor Detail

HTMLBrowser.CustomStyleSheet

public HTMLBrowser.CustomStyleSheet()
Method Detail

getStyleSheetInstance

public HTMLBrowser.CustomStyleSheet getStyleSheetInstance()

translateHTMLToCSS

public javax.swing.text.AttributeSet translateHTMLToCSS(javax.swing.text.AttributeSet htmlAttrSet)
Overrides:
translateHTMLToCSS in class javax.swing.text.html.StyleSheet

getViewAttributes_ForOlder

public javax.swing.text.AttributeSet getViewAttributes_ForOlder(javax.swing.text.View v)

getViewAttributes

public javax.swing.text.AttributeSet getViewAttributes(javax.swing.text.View v)
Overrides:
getViewAttributes in class javax.swing.text.html.StyleSheet

getViewAttributes_full

public javax.swing.text.AttributeSet getViewAttributes_full(javax.swing.text.View v)

getViewAttributesForElement

public javax.swing.text.AttributeSet getViewAttributesForElement(javax.swing.text.Element element)

addCSSAttributeFromHTML

public boolean addCSSAttributeFromHTML(javax.swing.text.MutableAttributeSet attr,
                                       javax.swing.text.html.CSS.Attribute key,
                                       java.lang.String value)
Overrides:
addCSSAttributeFromHTML in class javax.swing.text.html.StyleSheet

addCSSAttribute

public void addCSSAttribute(javax.swing.text.MutableAttributeSet attr,
                            javax.swing.text.html.CSS.Attribute key,
                            java.lang.String value)
Overrides:
addCSSAttribute in class ExternalCustomStyleSheet

isStyleMatchingSelector

public boolean isStyleMatchingSelector(java.lang.String selector,
                                       java.lang.String styleName,
                                       javax.swing.text.Element element)

getMatchingStyles

public javax.swing.text.Style[] getMatchingStyles(java.lang.String selector,
                                                  javax.swing.text.Element element,
                                                  javax.swing.text.View view)

getRule

public javax.swing.text.Style getRule(java.lang.String selector)
Overrides:
getRule in class javax.swing.text.html.StyleSheet

getRule_

public javax.swing.text.Style getRule_(javax.swing.text.html.HTML.Tag tag,
                                       javax.swing.text.Element elem_)

getDeclaration

public javax.swing.text.AttributeSet getDeclaration(java.lang.String decl)
Overrides:
getDeclaration in class javax.swing.text.html.StyleSheet

getFont

public java.awt.Font getFont(javax.swing.text.AttributeSet a)
Overrides:
getFont in class javax.swing.text.html.StyleSheet

getFont_

public java.awt.Font getFont_(javax.swing.text.AttributeSet a)

getOriginalStyleSheet

public java.lang.String getOriginalStyleSheet()

getStyleNames

public java.util.Enumeration getStyleNames()
Overrides:
getStyleNames in class javax.swing.text.StyleContext

getStyle

public javax.swing.text.Style getStyle(java.lang.String nm)
Overrides:
getStyle in class javax.swing.text.StyleContext

addStyleSheet

public void addStyleSheet(javax.swing.text.html.StyleSheet sheet)
Overrides:
addStyleSheet in class javax.swing.text.html.StyleSheet

addStyle

public javax.swing.text.Style addStyle(java.lang.String nm,
                                       javax.swing.text.Style parent)
Overrides:
addStyle in class javax.swing.text.StyleContext

getBoxPainter

public javax.swing.text.html.StyleSheet.BoxPainter getBoxPainter(javax.swing.text.AttributeSet a)
Overrides:
getBoxPainter in class javax.swing.text.html.StyleSheet

addSuperRule

public void addSuperRule(java.lang.String value)

addRule

public void addRule(java.lang.String value)
Overrides:
addRule in class javax.swing.text.html.StyleSheet

addRuleFromImport

public void addRuleFromImport(java.lang.String value)

addImportedRule

public void addImportedRule(java.lang.String value)

stringToColor

public java.awt.Color stringToColor(java.lang.String string)
Overrides:
stringToColor in class javax.swing.text.html.StyleSheet

getForeground

public java.awt.Color getForeground(javax.swing.text.AttributeSet a)
Overrides:
getForeground in class javax.swing.text.html.StyleSheet

getBackground

public java.awt.Color getBackground(javax.swing.text.AttributeSet a)
Overrides:
getBackground in class javax.swing.text.html.StyleSheet

importStyleSheet

public void importStyleSheet(java.net.URL url)
Overrides:
importStyleSheet in class javax.swing.text.html.StyleSheet

importStyleSheet_

public void importStyleSheet_(java.net.URL url)

importStyleSheetInternal

public void importStyleSheetInternal(java.net.URL url)