| 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 StyleSheet 的软件包 | |
|---|---|
| javax.swing.text.html | 提供类 HTMLEditorKit 和创建 HTML 文本编辑器的支持类。  | 
| javax.swing.text.html 中 StyleSheet 的使用 | 
|---|
| 返回 StyleSheet 的 javax.swing.text.html 中的方法 | |
|---|---|
protected  StyleSheet | 
BlockView.getStyleSheet()
 | 
 StyleSheet | 
HTMLDocument.getStyleSheet()
获取具有特定于文档的显示规则(CSS)的 StyleSheet,其中这些规则是在 HTML 文档本身中指定的。 | 
 StyleSheet | 
HTMLEditorKit.getStyleSheet()
获取当前正用于呈现 HTML 元素的样式集。  | 
protected  StyleSheet | 
ImageView.getStyleSheet()
获取 StyleSheet 的便捷方法。  | 
protected  StyleSheet | 
InlineView.getStyleSheet()
 | 
protected  StyleSheet | 
ParagraphView.getStyleSheet()
 | 
 StyleSheet[] | 
StyleSheet.getStyleSheets()
返回一个链接 StyleSheet 的数组。  | 
| 参数类型为 StyleSheet 的 javax.swing.text.html 中的方法 | |
|---|---|
 void | 
StyleSheet.addStyleSheet(StyleSheet ss)
将 StyleSheet ss 中的规则添加到接收者的规则中。 | 
 void | 
StyleSheet.removeStyleSheet(StyleSheet ss)
从接收者的规则中移除 StyleSheet ss。 | 
 void | 
HTMLEditorKit.setStyleSheet(StyleSheet s)
设置要用于呈现各种 HTML 元素的样式集。  | 
| 参数类型为 StyleSheet 的 javax.swing.text.html 中的构造方法 | |
|---|---|
HTMLDocument(AbstractDocument.Content c,
             StyleSheet styles)
构造具有给定内容存储实现和给定样式/属性存储机制的 HTML 文档。  | 
|
HTMLDocument(StyleSheet styles)
构造具有默认内容存储实现和指定样式/属性存储机制的 HTML 文档。  | 
|
  | 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。