eu.vexpro.editor
Class VexProHTMLEditorKit

java.lang.Object
  extended by javax.swing.text.EditorKit
      extended by javax.swing.text.DefaultEditorKit
          extended by javax.swing.text.StyledEditorKit
              extended by javax.swing.text.html.HTMLEditorKit
                  extended by eu.vexpro.editor.VexProHTMLEditorKit
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.accessibility.Accessible

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

VexPro HTMLEditorKit. Tarvilik drag and drop käitumise muutmiseks. DnD küsib getContentType(), mis on HTML puhul text/html, vajame text/plain. Tarvilik performance tõstimiseks. Tänud: http://java-sl.com/JEditorPanePerformance.html

See Also:
Serialized Form

Nested Class Summary
static class VexProHTMLEditorKit.InsertBRAction
          Action to insert a HTML
into the document
 
Nested classes/interfaces 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/interfaces 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/interfaces 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
static javax.swing.Action insertHardBreakAction
           
 
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, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, 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
VexProHTMLEditorKit()
          Constructs an HTMLEditorKit, creates a StyleContext, and loads the style sheet.
 
Method Summary
 java.lang.String getContentType()
          Get the MIME type of the data that this kit represents support for.
 void insertHTML(javax.swing.text.html.HTMLDocument doc, int offset, java.lang.String html, int popDepth, int pushDepth, javax.swing.text.html.HTML.Tag insertTag)
          TODO - REMOVE
 
Methods inherited from class javax.swing.text.html.HTMLEditorKit
clone, createDefaultDocument, createInputAttributes, deinstall, getAccessibleContext, getActions, getDefaultCursor, getInputAttributes, getLinkCursor, getParser, getStyleSheet, getViewFactory, install, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

insertHardBreakAction

public static final javax.swing.Action insertHardBreakAction
Constructor Detail

VexProHTMLEditorKit

public VexProHTMLEditorKit()
Constructs an HTMLEditorKit, creates a StyleContext, and loads the style sheet.

Method Detail

getContentType

public java.lang.String getContentType()
Get the MIME type of the data that this kit represents support for. This kit supports the type text/html.

Overrides:
getContentType in class javax.swing.text.html.HTMLEditorKit
Returns:
the type

insertHTML

public void insertHTML(javax.swing.text.html.HTMLDocument doc,
                       int offset,
                       java.lang.String html,
                       int popDepth,
                       int pushDepth,
                       javax.swing.text.html.HTML.Tag insertTag)
                throws javax.swing.text.BadLocationException,
                       java.io.IOException
TODO - REMOVE

Overrides:
insertHTML in class javax.swing.text.html.HTMLEditorKit
Parameters:
doc -
offset -
html -
popDepth -
pushDepth -
insertTag -
Throws:
javax.swing.text.BadLocationException
java.io.IOException