JavaTM 2 Platform
Standard Ed. 6

類別 javax.swing.text.html.StyleSheet
的使用

使用 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。