Package nl.siegmann.epublib.viewer
Class MyHtmlEditorKit
java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
javax.swing.text.StyledEditorKit
javax.swing.text.html.HTMLEditorKit
nl.siegmann.epublib.viewer.MyHtmlEditorKit
- All Implemented Interfaces:
Serializable,Cloneable,Accessible
Wraps a HTMLEditorKit so we can make getParser() public.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.text.html.HTMLEditorKit
HTMLEditorKit.HTMLFactory, HTMLEditorKit.HTMLTextAction, HTMLEditorKit.InsertHTMLTextAction, HTMLEditorKit.LinkController, HTMLEditorKit.Parser, HTMLEditorKit.ParserCallbackNested classes/interfaces inherited from class javax.swing.text.StyledEditorKit
StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineActionNested classes/interfaces inherited from class javax.swing.text.DefaultEditorKit
DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction -
Field Summary
FieldsFields 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_RIGHTFields inherited from class javax.swing.text.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 TypeMethodDescriptionclone()voidbooleanAction[]inthashCode()voidinsertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag) voidbooleanvoidread(InputStream in, Document doc, int pos) voidvoidsetAutoFormSubmission(boolean isAuto) voidsetDefaultCursor(Cursor cursor) voidsetLinkCursor(Cursor cursor) voidtoString()voidwrite(OutputStream out, Document doc, int pos, int len) voidMethods inherited from class javax.swing.text.html.HTMLEditorKit
createInputAttributes
-
Field Details
-
htmlEditorKit
-
-
Constructor Details
-
MyHtmlEditorKit
-
-
Method Details
-
getParser
- Overrides:
getParserin classHTMLEditorKit
-
hashCode
public int hashCode() -
getCharacterAttributeRun
- Overrides:
getCharacterAttributeRunin classStyledEditorKit
-
createCaret
- Overrides:
createCaretin classDefaultEditorKit
-
read
- Overrides:
readin classDefaultEditorKit- Throws:
IOExceptionBadLocationException
-
equals
-
write
public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException - Overrides:
writein classDefaultEditorKit- Throws:
IOExceptionBadLocationException
-
getContentType
- Overrides:
getContentTypein classHTMLEditorKit
-
getViewFactory
- Overrides:
getViewFactoryin classHTMLEditorKit
-
createDefaultDocument
- Overrides:
createDefaultDocumentin classHTMLEditorKit
-
read
- Overrides:
readin classHTMLEditorKit- Throws:
IOExceptionBadLocationException
-
insertHTML
public void insertHTML(HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag insertTag) throws BadLocationException, IOException - Overrides:
insertHTMLin classHTMLEditorKit- Throws:
BadLocationExceptionIOException
-
toString
-
write
public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException - Overrides:
writein classHTMLEditorKit- Throws:
IOExceptionBadLocationException
-
install
- Overrides:
installin classHTMLEditorKit
-
deinstall
- Overrides:
deinstallin classHTMLEditorKit
-
setStyleSheet
- Overrides:
setStyleSheetin classHTMLEditorKit
-
getStyleSheet
- Overrides:
getStyleSheetin classHTMLEditorKit
-
getActions
- Overrides:
getActionsin classHTMLEditorKit
-
getInputAttributes
- Overrides:
getInputAttributesin classHTMLEditorKit
-
setDefaultCursor
- Overrides:
setDefaultCursorin classHTMLEditorKit
-
getDefaultCursor
- Overrides:
getDefaultCursorin classHTMLEditorKit
-
setLinkCursor
- Overrides:
setLinkCursorin classHTMLEditorKit
-
getLinkCursor
- Overrides:
getLinkCursorin classHTMLEditorKit
-
isAutoFormSubmission
public boolean isAutoFormSubmission()- Overrides:
isAutoFormSubmissionin classHTMLEditorKit
-
setAutoFormSubmission
public void setAutoFormSubmission(boolean isAuto) - Overrides:
setAutoFormSubmissionin classHTMLEditorKit
-
clone
- Overrides:
clonein classHTMLEditorKit
-
getAccessibleContext
- Specified by:
getAccessibleContextin interfaceAccessible- Overrides:
getAccessibleContextin classHTMLEditorKit
-