Package com.sun.java.help.impl
Class CustomKit
java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
javax.swing.text.html.HTMLEditorKit
com.sun.java.help.impl.CustomKit
- All Implemented Interfaces:
Serializable
,Cloneable
,Accessible
Subclass of HTMLEditorKit from Swing to adds better functionality
for handing
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Class to watch the associated component and change the cursor when in a hyperlinkNested classes/interfaces inherited from class javax.swing.text.html.HTMLEditorKit
HTMLEditorKit.HTMLFactory, HTMLEditorKit.HTMLTextAction, HTMLEditorKit.InsertHTMLTextAction, HTMLEditorKit.LinkController, HTMLEditorKit.Parser, HTMLEditorKit.ParserCallback
Nested classes/interfaces inherited from class javax.swing.text.StyledEditorKit
StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineAction
Nested classes/interfaces inherited from class javax.swing.text.DefaultEditorKit
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction
-
Field Summary
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, beginLineUpAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, downAction, endAction, endLineAction, endLineDownAction, 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 -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone the editorkitvoid
Called when the kit is being removed from the JEditorPane.Fetch a factory that is suitable for producing views of any models that are produced by this kit.void
Called when the kit is being installed into the a JEditorPane.Methods inherited from class javax.swing.text.html.HTMLEditorKit
createInputAttributes, getAccessibleContext, getActions, getContentType, getDefaultCursor, getInputAttributes, getLinkCursor, getParser, getStyleSheet, insertHTML, isAutoFormSubmission, read, setAutoFormSubmission, setDefaultCursor, setLinkCursor, setStyleSheet, write
Methods inherited from class javax.swing.text.StyledEditorKit
getCharacterAttributeRun
Methods inherited from class javax.swing.text.DefaultEditorKit
createCaret, read, write
-
Constructor Details
-
CustomKit
public CustomKit()
-
-
Method Details
-
clone
Clone the editorkit- Overrides:
clone
in classHTMLEditorKit
-
install
Called when the kit is being installed into the a JEditorPane.- Overrides:
install
in classHTMLEditorKit
- Parameters:
c
- the JEditorPane
-
deinstall
Called when the kit is being removed from the JEditorPane. This is used to unregister any listeners that were attached.- Overrides:
deinstall
in classHTMLEditorKit
- Parameters:
c
- the JEditorPane
-
createDefaultDocument
- Overrides:
createDefaultDocument
in classHTMLEditorKit
-
getViewFactory
Fetch a factory that is suitable for producing views of any models that are produced by this kit.- Overrides:
getViewFactory
in classHTMLEditorKit
- Returns:
- the factory
-