Kafenio.editor 0.8.5

de.xeinfach.kafenio.component
Class ExtendedHTMLEditorKit

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 byde.xeinfach.kafenio.component.ExtendedHTMLEditorKit
All Implemented Interfaces:
javax.accessibility.Accessible, java.lang.Cloneable, java.io.Serializable

public class ExtendedHTMLEditorKit
extends javax.swing.text.html.HTMLEditorKit

Description: This class extends HTMLEditorKit so that it can provide other renderer classes instead of the defaults. Most important is the part which renders relative image paths.

Version:
1.0
Author:
Frits Jalvingh
See Also:
Serialized Form

Nested Class Summary
static class ExtendedHTMLEditorKit.HTMLFactoryExtended
          Class that replaces the default ViewFactory and supports the proper rendering of both URL-based and local images.
 
Nested classes inherited from class javax.swing.text.html.HTMLEditorKit
javax.swing.text.html.HTMLEditorKit.HTMLFactory, javax.swing.text.html.HTMLEditorKit.HTMLTextAction, javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction, javax.swing.text.html.HTMLEditorKit.LinkController, javax.swing.text.html.HTMLEditorKit.Parser, javax.swing.text.html.HTMLEditorKit.ParserCallback
 
Nested classes inherited from class javax.swing.text.StyledEditorKit
javax.swing.text.StyledEditorKit.AlignmentAction, javax.swing.text.StyledEditorKit.BoldAction, javax.swing.text.StyledEditorKit.FontFamilyAction, javax.swing.text.StyledEditorKit.FontSizeAction, javax.swing.text.StyledEditorKit.ForegroundAction, javax.swing.text.StyledEditorKit.ItalicAction, javax.swing.text.StyledEditorKit.StyledTextAction, javax.swing.text.StyledEditorKit.UnderlineAction
 
Nested classes inherited from class javax.swing.text.DefaultEditorKit
javax.swing.text.DefaultEditorKit.BeepAction, javax.swing.text.DefaultEditorKit.CopyAction, javax.swing.text.DefaultEditorKit.CutAction, javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction, javax.swing.text.DefaultEditorKit.InsertBreakAction, javax.swing.text.DefaultEditorKit.InsertContentAction, javax.swing.text.DefaultEditorKit.InsertTabAction, javax.swing.text.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, 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
ExtendedHTMLEditorKit()
          Constructor
 
Method Summary
 javax.swing.text.Document createDefaultDocument()
          creates a default document
 javax.swing.text.Document createDefaultDocument(java.net.URL baseUrl)
          creates a default document and sets the base url to the given value.
 javax.swing.text.ViewFactory getViewFactory()
          Method for returning a ViewFactory which handles the image rendering.
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit
clone, createInputAttributes, deinstall, getAccessibleContext, getActions, getContentType, getDefaultCursor, getInputAttributes, getLinkCursor, getParser, getStyleSheet, 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
 

Constructor Detail

ExtendedHTMLEditorKit

public ExtendedHTMLEditorKit()
Constructor

Method Detail

getViewFactory

public javax.swing.text.ViewFactory getViewFactory()
Method for returning a ViewFactory which handles the image rendering.

Returns:
returns a new ViewFactory Object.

createDefaultDocument

public javax.swing.text.Document createDefaultDocument()
creates a default document

Returns:
returns a Document

createDefaultDocument

public javax.swing.text.Document createDefaultDocument(java.net.URL baseUrl)
creates a default document and sets the base url to the given value.

Parameters:
baseUrl - creates the default document and sets the base url of the html-document to the given value. if base url is null, no base url will be set.
Returns:
returns a Document

Kafenio.editor 0.8.5

Copyright © 2003-2004 by Karsten Pawlik. All Rights Reserved. Published under the Lesser General Public License (LGPL)