Class WysiwygHTMLEditorKit
java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
javax.swing.text.html.HTMLEditorKit
net.thevpc.more.shef.WysiwygHTMLEditorKit
- All Implemented Interfaces:
Serializable, Cloneable, Accessible
An HTML Wysiwyg editor kit which can properly draw borderless tables and
allows for resizing of tables and images.
- Author:
- Bob Tantlinger
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassFactory to build views of the html elements.Nested classes/interfaces inherited from class HTMLEditorKit
HTMLEditorKit.HTMLFactory, HTMLEditorKit.HTMLTextAction, HTMLEditorKit.InsertHTMLTextAction, HTMLEditorKit.LinkController, HTMLEditorKit.Parser, HTMLEditorKit.ParserCallbackNested classes/interfaces inherited from class StyledEditorKit
StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineActionNested classes/interfaces inherited from class DefaultEditorKit
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction -
Field Summary
FieldsFields inherited from class 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_RIGHTFields inherited from class 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 TypeMethodDescriptionvoidvoiddeinstall(JEditorPane ed) Fetch a factory that is suitable for producing views of any models that are produced by this kit.voidinstall(JEditorPane ed) voidUpdates the list of monitored ResizeableViews.Methods inherited from class HTMLEditorKit
clone, createInputAttributes, getAccessibleContext, getActions, getContentType, getDefaultCursor, getInputAttributes, getLinkCursor, getParser, getStyleSheet, insertHTML, isAutoFormSubmission, read, setAutoFormSubmission, setDefaultCursor, setLinkCursor, setStyleSheet, writeMethods inherited from class StyledEditorKit
getCharacterAttributeRunMethods inherited from class DefaultEditorKit
createCaret, read, write
-
Field Details
-
wysFactory
-
-
Constructor Details
-
WysiwygHTMLEditorKit
public WysiwygHTMLEditorKit()
-
-
Method Details
-
addInstallHelper
-
getViewFactory
Fetch a factory that is suitable for producing views of any models that are produced by this kit.- Overrides:
getViewFactoryin classHTMLEditorKit- Returns:
- the factory
-
createDefaultDocument
- Overrides:
createDefaultDocumentin classHTMLEditorKit
-
install
- Overrides:
installin classHTMLEditorKit
-
deinstall
- Overrides:
deinstallin classHTMLEditorKit
-
updateMonitoredViews
Updates the list of monitored ResizeableViews. If they don't exist in the document, they're removed from the list.- Parameters:
doc- doc
-