|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HyperlinkProvider
This interface should be implemented by anyone who whats to provide hyperlinking
functionality in the source code.
There should be one provider instance per mime-type.
Its methods are called for all the opened editors of the given mime-type
where the hyperlinking functionality gets requested.
The providers need to be registered.
For NetBeans IDE, the default approach is to use System FileSystem.
The HyperlinkProvider(s) should be registered as ".instance" objects under
Editors/<mime-type>/HyperlinkProviders
directory.
Please see HyperlinkProviderManager
for more details.
Note: there is no assurance on the order of calling of the methods in this class. The callers may call the methods in any order and even do not call some of these methods at all.
Method Summary | |
---|---|
int[] |
getHyperlinkSpan(Document doc,
int offset)
Should determine the span of hyperlink on given offset. |
boolean |
isHyperlinkPoint(Document doc,
int offset)
Should determine whether there should be a hyperlink on the given offset in the given document. |
void |
performClickAction(Document doc,
int offset)
The implementor should perform an action corresponding to clicking on the hyperlink on the given offset. |
Method Detail |
---|
boolean isHyperlinkPoint(Document doc, int offset)
doc
- document on which to operate.offset
- >=0 offset to test (it generally should be offset < doc.getLength(), but
the implementations should not depend on it)
int[] getHyperlinkSpan(Document doc, int offset)
doc
- document on which to operate.offset
- >=0 offset to test (it generally should be offset < doc.getLength(), but
the implementations should not depend on it)
void performClickAction(Document doc, int offset)
doc
- document on which to operate.offset
- >=0 offset to test (it generally should be offset < doc.getLength(), but
the implementations should not depend on it)
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |