| Package | Description |
|---|---|
| javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes for creating HTML text editors.
|
| Modifier and Type | Method and Description |
|---|---|
protected StyleSheet |
ImageView.getStyleSheet()
Convenience method to get the StyleSheet.
|
protected StyleSheet |
ParagraphView.getStyleSheet()
|
StyleSheet |
HTMLEditorKit.getStyleSheet()
Get the set of styles currently being used to render the HTML elements.
|
StyleSheet |
HTMLDocument.getStyleSheet()
Fetches the
StyleSheet with the document-specific display rules (CSS) that were specified in the HTML document itself.
|
protected StyleSheet |
InlineView.getStyleSheet()
|
protected StyleSheet |
BlockView.getStyleSheet()
|
StyleSheet |
StyleSheet.getStyleSheets()
Returns an array of the linked StyleSheets.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StyleSheet.addStyleSheet(StyleSheet
Adds the rules from the StyleSheet
ss to those of the receiver.
|
void |
StyleSheet.removeStyleSheet(StyleSheet
Removes the StyleSheet
ss from those of the receiver.
|
void |
HTMLEditorKit.setStyleSheet(StyleSheet
Set the set of styles to be used to render the various HTML elements.
|
| Constructor and Description | |
|---|---|
HTMLDocument(AbstractDocument
Constructs an HTML document with the given content storage implementation and the given style/attribute storage mechanism.
|
|
HTMLDocument(StyleSheet
Constructs an HTML document with the default content storage implementation and the specified style/attribute storage mechanism.
|