javax.swing.plaf.basic
Class BasicHTML.BasicEditorKit
java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
javax.swing.text.html.HTMLEditorKit
javax.swing.plaf.basic.BasicHTML.BasicEditorKit
- All Implemented Interfaces:
- javax.accessibility.Accessible, Cloneable, Serializable
- Enclosing class:
- BasicHTML
- static class BasicHTML.BasicEditorKit
- extends HTMLEditorKit
The views produced for the ComponentUI implementations aren't
going to be edited and don't need full html support. This kit
alters the HTMLEditorKit to try and trim things down a bit.
It does the following:
- It doesn't produce Views for things like comments,
head, title, unknown tags, etc.
- It installs a different set of css settings from the default
provided by 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, deletePrevCharAction, 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 |
Methods inherited from class javax.swing.text.html.HTMLEditorKit |
clone, createDefaultDocument, createInputAttributes, deinstall, getAccessibleContext, getActions, getContentType, getDefaultCursor, getInputAttributes, getLinkCursor, getParser, insertHTML, install, read, setDefaultCursor, setLinkCursor, setStyleSheet, write |
defaultStyles
private static StyleSheet defaultStyles
- Shared base style for all documents created by us use.
BasicHTML.BasicEditorKit
BasicHTML.BasicEditorKit()
getStyleSheet
public StyleSheet getStyleSheet()
- Overriden to return our own slimmed down style sheet.
- Overrides:
getStyleSheet
in class HTMLEditorKit
createDefaultDocument
public Document createDefaultDocument(Font defaultFont,
Color foreground)
- Sets the async policy to flush everything in one chunk, and
to not display unknown tags.
getViewFactory
public ViewFactory getViewFactory()
- Returns the ViewFactory that is used to make sure the Views don't
load in the background.
- Overrides:
getViewFactory
in class HTMLEditorKit
- Returns:
- the factory