JavaTM 2 Platform
Standard Ed. 6

類別 javax.swing.JEditorPane
的使用

使用 JEditorPane 的軟體套件
javax.swing 提供一組“輕量級”(全部是 Java 語言)元件,盡量讓這些元件在所有平臺上的工作方式都相同。 
javax.swing.text 提供類別 HTMLEditorKit 和創建 HTML 文本編輯器的支持類別。 
javax.swing.text.html 提供類別 HTMLEditorKit 和創建 HTML 文本編輯器的支持類別。 
 

javax.swing 中 JEditorPane 的使用
 

javax.swing 中 JEditorPane 的子類別
 class JTextPane
          可以用以圖形方式表示的屬性來標記的文本元件。
 

javax.swing.text 中 JEditorPane 的使用
 

返回 JEditorPane 的 javax.swing.text 中的方法
protected  JEditorPane StyledEditorKit.StyledTextAction.getEditor(ActionEvent e)
          獲得操作的目標編輯器。
 

參數型別為 JEditorPane 的 javax.swing.text 中的方法
 void StyledEditorKit.deinstall(JEditorPane c)
          工具套件從 JEditorPane 移除時調用。
 void EditorKit.deinstall(JEditorPane c)
          從 JEditorPane 中移除工具套件時調用。
protected  StyledDocument StyledEditorKit.StyledTextAction.getStyledDocument(JEditorPane e)
          獲取與編輯器窗格相關的文檔。
protected  StyledEditorKit StyledEditorKit.StyledTextAction.getStyledEditorKit(JEditorPane e)
          獲取與編輯器窗格相關的編輯器工具套件。
 void StyledEditorKit.install(JEditorPane c)
          工具套件安裝到 JEditorPane 時調用。
 void EditorKit.install(JEditorPane c)
          將工具套件安裝到 JEditorPane 中時調用。
protected  void StyledEditorKit.StyledTextAction.setCharacterAttributes(JEditorPane editor, AttributeSet attr, boolean replace)
          對字元內容應用給定的屬性。
protected  void StyledEditorKit.StyledTextAction.setParagraphAttributes(JEditorPane editor, AttributeSet attr, boolean replace)
          對段落應用給定的屬性。
 

javax.swing.text.html 中 JEditorPane 的使用
 

參數型別為 JEditorPane 的 javax.swing.text.html 中的方法
protected  void HTMLEditorKit.LinkController.activateLink(int pos, JEditorPane editor)
          如果給定位置表示一個連接,則調用關聯 JEditorPane 上的 linkActivated。
 void HTMLEditorKit.deinstall(JEditorPane c)
          工具套件從 JEditorPane 移除時調用。
protected  HTMLDocument HTMLEditorKit.HTMLTextAction.getHTMLDocument(JEditorPane e)
           
protected  HTMLEditorKit HTMLEditorKit.HTMLTextAction.getHTMLEditorKit(JEditorPane e)
           
protected  void HTMLEditorKit.InsertHTMLTextAction.insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
          當在邊界上插入時調用。
protected  void HTMLEditorKit.InsertHTMLTextAction.insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
          已過時。 從 Java 2 平臺 v1.3 開始,使用 insertAtBoundary
protected  void HTMLEditorKit.InsertHTMLTextAction.insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag)
          HTMLEditorKit.insertHTML 的一個覆寫。
 void HTMLEditorKit.install(JEditorPane c)
          將工具套件安裝到 JEditorPane 中時調用。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。