Class CustomKit

All Implemented Interfaces:
Serializable, Cloneable, Accessible

public class CustomKit extends HTMLEditorKit
Subclass of HTMLEditorKit from Swing to adds better functionality for handing tags and supports some special classes for JavaHelp.
See Also:
  • Constructor Details

    • CustomKit

      public CustomKit()
  • Method Details

    • clone

      public Object clone()
      Clone the editorkit
      Overrides:
      clone in class HTMLEditorKit
    • install

      public void install(JEditorPane c)
      Called when the kit is being installed into the a JEditorPane.
      Overrides:
      install in class HTMLEditorKit
      Parameters:
      c - the JEditorPane
    • deinstall

      public void deinstall(JEditorPane c)
      Called when the kit is being removed from the JEditorPane. This is used to unregister any listeners that were attached.
      Overrides:
      deinstall in class HTMLEditorKit
      Parameters:
      c - the JEditorPane
    • createDefaultDocument

      public Document createDefaultDocument()
      Overrides:
      createDefaultDocument in class HTMLEditorKit
    • getViewFactory

      public ViewFactory getViewFactory()
      Fetch a factory that is suitable for producing views of any models that are produced by this kit.
      Overrides:
      getViewFactory in class HTMLEditorKit
      Returns:
      the factory