软件包 | 描述 |
---|---|
javax.swing.text.html |
提供类
HTMLEditorKit 和创建HTML文本编辑器支持类。
|
Modifier and Type | Method and Description |
---|---|
protected StyleSheet |
BlockView.getStyleSheet() |
protected StyleSheet |
InlineView.getStyleSheet() |
protected StyleSheet |
ImageView.getStyleSheet()
把样式表的便捷方法。
|
protected StyleSheet |
ParagraphView.getStyleSheet() |
StyleSheet |
HTMLDocument.getStyleSheet()
取
StyleSheet 与文件具体的显示规则(CSS)被指定在HTML文档本身。
|
StyleSheet |
HTMLEditorKit.getStyleSheet()
获得方式目前被用来渲染的HTML元素的集合。
|
StyleSheet[] |
StyleSheet.getStyleSheets()
返回链接的样式表的数组。
|
Modifier and Type | Method and Description |
---|---|
void |
StyleSheet.addStyleSheet(StyleSheet ss)
将样式表
ss 规则的接受者。
|
void |
StyleSheet.removeStyleSheet(StyleSheet ss)
从这些接收器将样式表
ss 。
|
void |
HTMLEditorKit.setStyleSheet(StyleSheet s)
设置样式来呈现不同的HTML元素的集合。
|
Constructor and Description |
---|
HTMLDocument(AbstractDocument.Content c, StyleSheet styles)
构造一个给定的内容存储的实现和给定的样式属性的HTML文档存储机制。
|
HTMLDocument(StyleSheet styles)
构造一个默认内容存储的实现和指定的样式属性的存储机制的HTML文档。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.