|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
com.inet.html.InetHtmlEditorKit
public class InetHtmlEditorKit
The JWebEngine implementation of the EditorKit.
This editor kit defines a custom set of actions which are not compatible with the default styled document.
If you change the type of document in a JEditorPane
please make sure to set the correct editor
kit as well.
Nested Class Summary | |
---|---|
static class |
InetHtmlEditorKit.ExtendedHyperlinkEvent
An extended hyperlink event to support link targets |
static class |
InetHtmlEditorKit.LinkController
Class to watch the associated component and fire hyperlink events on it when appropriate. |
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 java.lang.String |
BULLET_LIST_ACTION
|
static java.lang.String |
NUMBERED_LIST_ACTION
|
static java.lang.String |
PARAGRAPH_INDENT_LEFT
|
static java.lang.String |
PARAGRAPH_INDENT_RIGHT
|
static java.lang.String |
PASTE_PLAIN_ACTION
|
static int |
SHORTCUT_KEY_MASK
|
static java.lang.String |
TAB_KEY_ACTION
|
static java.lang.String |
TAB_KEY_SHIFT_ACTION
|
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 | |
---|---|
InetHtmlEditorKit()
Required to update the input attributes only on relevant caret changes |
|
InetHtmlEditorKit(boolean useTextAntiAlias)
Creates an editor kit with optional text anti alias |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
javax.swing.text.Document |
createDefaultDocument()
|
void |
deinstall(javax.swing.JEditorPane c)
|
void |
forceUpdateInputAttributes(javax.swing.JEditorPane editor)
Forces the editor kit to update it's input attributes. |
javax.swing.Action[] |
getActions()
|
java.lang.String |
getContentType()
|
java.awt.Cursor |
getDefaultCursor()
Returns the default cursor |
javax.swing.text.MutableAttributeSet |
getInputAttributes()
Gets the input attributes for the pane. |
java.awt.Cursor |
getLinkCursor()
Returns the cursor which should be displayed when hovering links |
javax.swing.text.ViewFactory |
getViewFactory()
|
void |
install(javax.swing.JEditorPane c)
|
void |
read(java.io.Reader in,
javax.swing.text.Document doc,
int pos)
|
void |
setDefaultConfig(InetHtmlConfiguration defaultConfig)
Sets the default configuration of the documents created by this editor kit |
void |
setDefaultCursor(java.awt.Cursor defaultCursor)
Sets the default cursor |
void |
setFontScale(float scale)
Sets the scale factor |
void |
setLinkCursor(java.awt.Cursor linkCursor)
Sets the link hover cursor, must not be null |
void |
setParserTimeout(long timeout)
Sets the parser timeout in ms. |
void |
write(java.io.Writer out,
javax.swing.text.Document doc,
int pos,
int len)
|
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAGRAPH_INDENT_LEFT
public static final java.lang.String PARAGRAPH_INDENT_RIGHT
public static final java.lang.String TAB_KEY_ACTION
public static final java.lang.String TAB_KEY_SHIFT_ACTION
public static final java.lang.String BULLET_LIST_ACTION
public static final java.lang.String NUMBERED_LIST_ACTION
public static final java.lang.String PASTE_PLAIN_ACTION
public static final int SHORTCUT_KEY_MASK
Constructor Detail |
---|
public InetHtmlEditorKit()
public InetHtmlEditorKit(boolean useTextAntiAlias)
useTextAntiAlias
- true, to use anti alias, false to disable the featureMethod Detail |
---|
public void setFontScale(float scale)
scale
- a value between 0.1 and 10public void setParserTimeout(long timeout)
timeout
- the timeout for the parser in millisecondsany value equal or below zero disables the timeoutpublic javax.swing.text.Document createDefaultDocument()
createDefaultDocument
in class javax.swing.text.StyledEditorKit
public javax.swing.text.ViewFactory getViewFactory()
getViewFactory
in class javax.swing.text.StyledEditorKit
public void setDefaultConfig(InetHtmlConfiguration defaultConfig)
defaultConfig
- the new config, null will be ignoredpublic void read(java.io.Reader in, javax.swing.text.Document doc, int pos) throws java.io.IOException, javax.swing.text.BadLocationException
read
in class javax.swing.text.DefaultEditorKit
java.io.IOException
javax.swing.text.BadLocationException
public void write(java.io.Writer out, javax.swing.text.Document doc, int pos, int len) throws java.io.IOException, javax.swing.text.BadLocationException
write
in class javax.swing.text.DefaultEditorKit
java.io.IOException
javax.swing.text.BadLocationException
public javax.swing.Action[] getActions()
getActions
in class javax.swing.text.StyledEditorKit
public java.lang.String getContentType()
getContentType
in class javax.swing.text.DefaultEditorKit
public void install(javax.swing.JEditorPane c)
install
in class javax.swing.text.StyledEditorKit
public void deinstall(javax.swing.JEditorPane c)
deinstall
in class javax.swing.text.StyledEditorKit
public javax.swing.text.MutableAttributeSet getInputAttributes()
getInputAttributes
in class javax.swing.text.StyledEditorKit
public void forceUpdateInputAttributes(javax.swing.JEditorPane editor)
editor
- The editor to read the attributes from.public java.awt.Cursor getDefaultCursor()
public void setDefaultCursor(java.awt.Cursor defaultCursor)
defaultCursor
- the cursor, must not be nullpublic java.awt.Cursor getLinkCursor()
public void setLinkCursor(java.awt.Cursor linkCursor)
linkCursor
- the link hover cursor, must not be nullpublic java.lang.Object clone()
clone
in class javax.swing.text.StyledEditorKit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |