javax.swing.plaf.basic
Class BasicHTML.BasicEditorKit

java.lang.Object
  extended byjavax.swing.text.EditorKit
      extended byjavax.swing.text.DefaultEditorKit
          extended byjavax.swing.text.StyledEditorKit
              extended byjavax.swing.text.html.HTMLEditorKit
                  extended byjavax.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:


Nested Class Summary
 
Nested classes inherited from class javax.swing.text.html.HTMLEditorKit
HTMLEditorKit.HTMLFactory, HTMLEditorKit.HTMLTextAction, HTMLEditorKit.InsertHTMLTextAction, HTMLEditorKit.LinkController, HTMLEditorKit.Parser, HTMLEditorKit.ParserCallback
 
Nested classes 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 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
private static StyleSheet defaultStyles
          Shared base style for all documents created by us use.
 
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.StyledEditorKit
 
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
 
Constructor Summary
(package private) BasicHTML.BasicEditorKit()
           
 
Method Summary
 Document createDefaultDocument(Font defaultFont, Color foreground)
          Sets the async policy to flush everything in one chunk, and to not display unknown tags.
 StyleSheet getStyleSheet()
          Overriden to return our own slimmed down style sheet.
 ViewFactory getViewFactory()
          Returns the ViewFactory that is used to make sure the Views don't load in the background.
 
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
 
Methods inherited from class javax.swing.text.StyledEditorKit
getCharacterAttributeRun
 
Methods inherited from class javax.swing.text.DefaultEditorKit
createCaret, read, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultStyles

private static StyleSheet defaultStyles
Shared base style for all documents created by us use.

Constructor Detail

BasicHTML.BasicEditorKit

BasicHTML.BasicEditorKit()
Method Detail

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