public class JBHtmlEditorKit
extends javax.swing.text.html.HTMLEditorKit
Modifier and Type | Class and Description |
---|---|
static class |
JBHtmlEditorKit.JBHtmlFactory |
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
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
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
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
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 and Description |
---|
JBHtmlEditorKit() |
JBHtmlEditorKit(boolean noGapsBetweenParagraphs) |
JBHtmlEditorKit(boolean noGapsBetweenParagraphs,
boolean disableLinkedCss) |
Modifier and Type | Method and Description |
---|---|
javax.swing.text.Document |
createDefaultDocument() |
static javax.swing.text.html.StyleSheet |
createStyleSheet() |
void |
deinstall(javax.swing.JEditorPane c) |
java.awt.Cursor |
getDefaultCursor() |
javax.swing.text.html.StyleSheet |
getStyleSheet() |
javax.swing.text.ViewFactory |
getViewFactory() |
void |
install(javax.swing.JEditorPane pane) |
clone, createInputAttributes, getAccessibleContext, getActions, getContentType, getInputAttributes, getLinkCursor, getParser, insertHTML, isAutoFormSubmission, read, setAutoFormSubmission, setDefaultCursor, setLinkCursor, setStyleSheet, write
public JBHtmlEditorKit()
public JBHtmlEditorKit(boolean noGapsBetweenParagraphs)
public JBHtmlEditorKit(boolean noGapsBetweenParagraphs, boolean disableLinkedCss)
disableLinkedCss
- Disables loading of linked CSS (from URL referenced in <link>
HTML tags). JEditorPane does this loading
synchronously during JEditorPane.setText(String)
operation (usually invoked in EDT).public java.awt.Cursor getDefaultCursor()
getDefaultCursor
in class javax.swing.text.html.HTMLEditorKit
public javax.swing.text.html.StyleSheet getStyleSheet()
getStyleSheet
in class javax.swing.text.html.HTMLEditorKit
public javax.swing.text.Document createDefaultDocument()
createDefaultDocument
in class javax.swing.text.html.HTMLEditorKit
public static javax.swing.text.html.StyleSheet createStyleSheet()
public void install(javax.swing.JEditorPane pane)
install
in class javax.swing.text.html.HTMLEditorKit
public javax.swing.text.ViewFactory getViewFactory()
getViewFactory
in class javax.swing.text.html.HTMLEditorKit
public void deinstall(javax.swing.JEditorPane c)
deinstall
in class javax.swing.text.html.HTMLEditorKit