com.sun.java.help.impl

Class CustomKit


public class CustomKit
extends HTMLEditorKit

Subclass of HTMLEditorKit from Swing to adds better functionality for handing tags and supports some special classes for JavaHelp.

Nested Class Summary

static class
CustomKit.MouseHandler
Class to watch the associated component and change the cursor when in a hyperlink

Constructor Summary

CustomKit()

Method Summary

Object
clone()
Clone the editorkit
Document
createDefaultDocument()
void
deinstall(JEditorPane c)
Called when the kit is being removed from the JEditorPane.
ViewFactory
getViewFactory()
Fetch a factory that is suitable for producing views of any models that are produced by this kit.
void
install(JEditorPane c)
Called when the kit is being installed into the a JEditorPane.

Constructor Details

CustomKit

public CustomKit()

Method Details

clone

public Object clone()
Clone the editorkit

createDefaultDocument

public Document createDefaultDocument()

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.
Parameters:
c - the JEditorPane

getViewFactory

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

install

public void install(JEditorPane c)
Called when the kit is being installed into the a JEditorPane.
Parameters:
c - the JEditorPane