Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.desktop - Package : javax.swing.text.html
Version documentée : Java SE 17

Classe « StyleSheet »

Informations générales

Héritage

java.lang.Object
    javax.swing.text.StyleContext
        javax.swing.text.html.StyleSheet

Définition

public class StyleSheet extends javax.swing.text.StyleContext

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
StyleSheet()

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public URL base R/W
public String baseFontSize -/W
public StyleSheet[] styleSheets R/-

Propriétés héritées de la classe javax.swing.text.StyleContext

changeListeners, compressionThreshold, defaultStyleContext, emptySet, styleNames

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public AttributeSet addAttribute( AttributeSet old, Object key, Object value )
public AttributeSet addAttributes( AttributeSet old, AttributeSet attr )
public void addCSSAttribute( MutableAttributeSet attr, Attribute key, String value )
public boolean addCSSAttributeFromHTML( MutableAttributeSet attr, Attribute key, String value )
public void addRule( String rule )
public void addStyleSheet( StyleSheet ss )
protected MutableAttributeSet createLargeAttributeSet( AttributeSet a )
protected SmallAttributeSet createSmallAttributeSet( AttributeSet a )
public Color getBackground( AttributeSet a )
public URL getBase()
public BoxPainter getBoxPainter( AttributeSet a )
public AttributeSet getDeclaration( String decl )
public Font getFont( AttributeSet a )
public Color getForeground( AttributeSet a )
public static int getIndexOfSize( float pt )
public ListPainter getListPainter( AttributeSet a )
public float getPointSize( int index )
public float getPointSize( String size )
public Style getRule( String selector )
public Style getRule( Tag t, Element e )
public StyleSheet[] getStyleSheets()
public AttributeSet getViewAttributes( View v )
public void importStyleSheet( URL url )
public void loadRules( Reader in, URL ref )
public AttributeSet removeAttribute( AttributeSet old, Object key )
public AttributeSet removeAttributes( AttributeSet old, Enumeration<?> names )
public AttributeSet removeAttributes( AttributeSet old, AttributeSet attrs )
public void removeStyle( String nm )
public void removeStyleSheet( StyleSheet ss )
public void setBase( URL base )
public void setBaseFontSize( String size )
public void setBaseFontSize( int sz )
public Color stringToColor( String string )
public AttributeSet translateHTMLToCSS( AttributeSet htmlAttrSet )

Méthodes héritées de la classe javax.swing.text.StyleContext

addAttribute, addAttributes, addChangeListener, addStyle, createLargeAttributeSet, createSmallAttributeSet, getBackground, getChangeListeners, getCompressionThreshold, getDefaultStyleContext, getEmptySet, getFont, getFont, getFontMetrics, getForeground, getStaticAttribute, getStaticAttributeKey, getStyle, getStyleNames, readAttributeSet, readAttributes, reclaim, registerStaticAttributeKey, removeAttribute, removeAttributes, removeAttributes, removeChangeListener, removeStyle, toString, writeAttributeSet, writeAttributes

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait