Class MyHtmlEditorKit

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, javax.accessibility.Accessible

    class MyHtmlEditorKit
    extends javax.swing.text.html.HTMLEditorKit
    Wraps a HTMLEditorKit so we can make getParser() public.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.text.html.HTMLEditorKit

        javax.swing.text.html.HTMLEditorKit.HTMLFactory, javax.swing.text.html.HTMLEditorKit.HTMLTextAction, javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction, javax.swing.text.html.HTMLEditorKit.LinkController, javax.swing.text.html.HTMLEditorKit.Parser, javax.swing.text.html.HTMLEditorKit.ParserCallback
      • Nested classes/interfaces inherited from class javax.swing.text.StyledEditorKit

        javax.swing.text.StyledEditorKit.AlignmentAction, javax.swing.text.StyledEditorKit.BoldAction, javax.swing.text.StyledEditorKit.FontFamilyAction, javax.swing.text.StyledEditorKit.FontSizeAction, javax.swing.text.StyledEditorKit.ForegroundAction, javax.swing.text.StyledEditorKit.ItalicAction, javax.swing.text.StyledEditorKit.StyledTextAction, javax.swing.text.StyledEditorKit.UnderlineAction
      • Nested classes/interfaces inherited from class javax.swing.text.DefaultEditorKit

        javax.swing.text.DefaultEditorKit.BeepAction, javax.swing.text.DefaultEditorKit.CopyAction, javax.swing.text.DefaultEditorKit.CutAction, javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction, javax.swing.text.DefaultEditorKit.InsertBreakAction, javax.swing.text.DefaultEditorKit.InsertContentAction, javax.swing.text.DefaultEditorKit.InsertTabAction, javax.swing.text.DefaultEditorKit.PasteAction
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.text.html.HTMLEditorKit htmlEditorKit  
      • Fields inherited from class javax.swing.text.html.HTMLEditorKit

        BOLD_ACTION, COLOR_ACTION, DEFAULT_CSS, FONT_CHANGE_BIGGER, FONT_CHANGE_SMALLER, IMG_ALIGN_BOTTOM, IMG_ALIGN_MIDDLE, IMG_ALIGN_TOP, IMG_BORDER, ITALIC_ACTION, LOGICAL_STYLE_ACTION, PARA_INDENT_LEFT, PARA_INDENT_RIGHT
      • Fields inherited from class javax.swing.text.DefaultEditorKit

        backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction
    • Constructor Summary

      Constructors 
      Constructor Description
      MyHtmlEditorKit​(javax.swing.text.html.HTMLEditorKit htmlEditorKit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      javax.swing.text.Caret createCaret()  
      javax.swing.text.Document createDefaultDocument()  
      void deinstall​(javax.swing.JEditorPane c)  
      boolean equals​(java.lang.Object obj)  
      javax.accessibility.AccessibleContext getAccessibleContext()  
      javax.swing.Action[] getActions()  
      javax.swing.text.Element getCharacterAttributeRun()  
      java.lang.String getContentType()  
      java.awt.Cursor getDefaultCursor()  
      javax.swing.text.MutableAttributeSet getInputAttributes()  
      java.awt.Cursor getLinkCursor()  
      javax.swing.text.html.HTMLEditorKit.Parser getParser()  
      javax.swing.text.html.StyleSheet getStyleSheet()  
      javax.swing.text.ViewFactory getViewFactory()  
      int hashCode()  
      void insertHTML​(javax.swing.text.html.HTMLDocument doc, int offset, java.lang.String html, int popDepth, int pushDepth, javax.swing.text.html.HTML.Tag insertTag)  
      void install​(javax.swing.JEditorPane c)  
      boolean isAutoFormSubmission()  
      void read​(java.io.InputStream in, javax.swing.text.Document doc, int pos)  
      void read​(java.io.Reader in, javax.swing.text.Document doc, int pos)  
      void setAutoFormSubmission​(boolean isAuto)  
      void setDefaultCursor​(java.awt.Cursor cursor)  
      void setLinkCursor​(java.awt.Cursor cursor)  
      void setStyleSheet​(javax.swing.text.html.StyleSheet s)  
      java.lang.String toString()  
      void write​(java.io.OutputStream out, javax.swing.text.Document doc, int pos, int len)  
      void write​(java.io.Writer out, javax.swing.text.Document doc, int pos, int len)  
      • Methods inherited from class javax.swing.text.html.HTMLEditorKit

        createInputAttributes
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • htmlEditorKit

        private javax.swing.text.html.HTMLEditorKit htmlEditorKit
    • Constructor Detail

      • MyHtmlEditorKit

        public MyHtmlEditorKit​(javax.swing.text.html.HTMLEditorKit htmlEditorKit)
    • Method Detail

      • getParser

        public javax.swing.text.html.HTMLEditorKit.Parser getParser()
        Overrides:
        getParser in class javax.swing.text.html.HTMLEditorKit
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getCharacterAttributeRun

        public javax.swing.text.Element getCharacterAttributeRun()
        Overrides:
        getCharacterAttributeRun in class javax.swing.text.StyledEditorKit
      • createCaret

        public javax.swing.text.Caret createCaret()
        Overrides:
        createCaret in class javax.swing.text.DefaultEditorKit
      • read

        public void read​(java.io.InputStream in,
                         javax.swing.text.Document doc,
                         int pos)
                  throws java.io.IOException,
                         javax.swing.text.BadLocationException
        Overrides:
        read in class javax.swing.text.DefaultEditorKit
        Throws:
        java.io.IOException
        javax.swing.text.BadLocationException
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • write

        public void write​(java.io.OutputStream out,
                          javax.swing.text.Document doc,
                          int pos,
                          int len)
                   throws java.io.IOException,
                          javax.swing.text.BadLocationException
        Overrides:
        write in class javax.swing.text.DefaultEditorKit
        Throws:
        java.io.IOException
        javax.swing.text.BadLocationException
      • getContentType

        public java.lang.String getContentType()
        Overrides:
        getContentType in class javax.swing.text.html.HTMLEditorKit
      • getViewFactory

        public javax.swing.text.ViewFactory getViewFactory()
        Overrides:
        getViewFactory in class javax.swing.text.html.HTMLEditorKit
      • createDefaultDocument

        public javax.swing.text.Document createDefaultDocument()
        Overrides:
        createDefaultDocument in class javax.swing.text.html.HTMLEditorKit
      • read

        public void read​(java.io.Reader in,
                         javax.swing.text.Document doc,
                         int pos)
                  throws java.io.IOException,
                         javax.swing.text.BadLocationException
        Overrides:
        read in class javax.swing.text.html.HTMLEditorKit
        Throws:
        java.io.IOException
        javax.swing.text.BadLocationException
      • insertHTML

        public void insertHTML​(javax.swing.text.html.HTMLDocument doc,
                               int offset,
                               java.lang.String html,
                               int popDepth,
                               int pushDepth,
                               javax.swing.text.html.HTML.Tag insertTag)
                        throws javax.swing.text.BadLocationException,
                               java.io.IOException
        Overrides:
        insertHTML in class javax.swing.text.html.HTMLEditorKit
        Throws:
        javax.swing.text.BadLocationException
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • write

        public void write​(java.io.Writer out,
                          javax.swing.text.Document doc,
                          int pos,
                          int len)
                   throws java.io.IOException,
                          javax.swing.text.BadLocationException
        Overrides:
        write in class javax.swing.text.html.HTMLEditorKit
        Throws:
        java.io.IOException
        javax.swing.text.BadLocationException
      • install

        public void install​(javax.swing.JEditorPane c)
        Overrides:
        install in class javax.swing.text.html.HTMLEditorKit
      • deinstall

        public void deinstall​(javax.swing.JEditorPane c)
        Overrides:
        deinstall in class javax.swing.text.html.HTMLEditorKit
      • setStyleSheet

        public void setStyleSheet​(javax.swing.text.html.StyleSheet s)
        Overrides:
        setStyleSheet in class javax.swing.text.html.HTMLEditorKit
      • getStyleSheet

        public javax.swing.text.html.StyleSheet getStyleSheet()
        Overrides:
        getStyleSheet in class javax.swing.text.html.HTMLEditorKit
      • getActions

        public javax.swing.Action[] getActions()
        Overrides:
        getActions in class javax.swing.text.html.HTMLEditorKit
      • getInputAttributes

        public javax.swing.text.MutableAttributeSet getInputAttributes()
        Overrides:
        getInputAttributes in class javax.swing.text.html.HTMLEditorKit
      • setDefaultCursor

        public void setDefaultCursor​(java.awt.Cursor cursor)
        Overrides:
        setDefaultCursor in class javax.swing.text.html.HTMLEditorKit
      • getDefaultCursor

        public java.awt.Cursor getDefaultCursor()
        Overrides:
        getDefaultCursor in class javax.swing.text.html.HTMLEditorKit
      • setLinkCursor

        public void setLinkCursor​(java.awt.Cursor cursor)
        Overrides:
        setLinkCursor in class javax.swing.text.html.HTMLEditorKit
      • getLinkCursor

        public java.awt.Cursor getLinkCursor()
        Overrides:
        getLinkCursor in class javax.swing.text.html.HTMLEditorKit
      • isAutoFormSubmission

        public boolean isAutoFormSubmission()
        Overrides:
        isAutoFormSubmission in class javax.swing.text.html.HTMLEditorKit
      • setAutoFormSubmission

        public void setAutoFormSubmission​(boolean isAuto)
        Overrides:
        setAutoFormSubmission in class javax.swing.text.html.HTMLEditorKit
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class javax.swing.text.html.HTMLEditorKit
      • getAccessibleContext

        public javax.accessibility.AccessibleContext getAccessibleContext()
        Specified by:
        getAccessibleContext in interface javax.accessibility.Accessible
        Overrides:
        getAccessibleContext in class javax.swing.text.html.HTMLEditorKit