public class PDFInterceptor extends com.sun.java.help.impl.CustomKit implements HyperlinkListener
com.sun.java.help.impl.CustomKit.MouseHandlerHTMLEditorKit.HTMLFactory, HTMLEditorKit.HTMLTextAction, HTMLEditorKit.InsertHTMLTextAction, HTMLEditorKit.LinkController, HTMLEditorKit.Parser, HTMLEditorKit.ParserCallbackStyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.StyledTextAction, StyledEditorKit.UnderlineActionDefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction| Modifier and Type | Field and Description |
|---|---|
static String |
JHEXTERN_PROTOCOL |
static String |
MAILTO_PROTOCOL |
protected URLStreamHandler |
myexternalHandler
This class is used for forcing some URLs to be rendered externally.
|
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_RIGHTbackwardAction, 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 |
|---|
PDFInterceptor()
This class gets instantiated with a zero-arg constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addLinkHandler(HyperlinkListener lis) |
Object |
clone() |
static URLStreamHandlerFactory |
getProtocolTrap() |
void |
hyperlinkUpdate(HyperlinkEvent e)
This receives events from the javahelp jeditorpane for mouse in, mouse out and mouse click of a hyper link.
|
void |
install(JEditorPane jEditorPane)
Need to get hold of the JEditorPane used to render HTML, so we can trap links to pdfs, or whatever
|
static void |
setSuffix(String suffix) |
createDefaultDocument, deinstall, getViewFactorycreateInputAttributes, getAccessibleContext, getActions, getContentType, getDefaultCursor, getInputAttributes, getLinkCursor, getParser, getStyleSheet, insertHTML, isAutoFormSubmission, read, setAutoFormSubmission, setDefaultCursor, setLinkCursor, setStyleSheet, writegetCharacterAttributeRuncreateCaret, read, writepublic static final String JHEXTERN_PROTOCOL
public static final String MAILTO_PROTOCOL
protected URLStreamHandler myexternalHandler
public PDFInterceptor()
public static void setSuffix(String suffix)
suffix - public static void addLinkHandler(HyperlinkListener lis)
lis - public Object clone()
clone in class com.sun.java.help.impl.CustomKitpublic void install(JEditorPane jEditorPane)
install in class com.sun.java.help.impl.CustomKitjEditorPane - public void hyperlinkUpdate(HyperlinkEvent e)
hyperlinkUpdate in interface HyperlinkListenere - a HyperlinkEventpublic static URLStreamHandlerFactory getProtocolTrap()
URLStreamHandlerFactory