public class DefaultDocumentationItem extends java.lang.Object implements CompletionDocumentation
Constructor and Description |
---|
DefaultDocumentationItem(java.lang.String link) |
DefaultDocumentationItem(java.lang.String link,
java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
javax.swing.Action |
getGotoSourceAction()
Returns an action that opens the item's source representation in the editor
or
null if the item has no source representation. |
java.lang.String |
getText()
Returns a HTML text dispaleyd in the documentation popup.
|
java.net.URL |
getURL()
Returns a URL of the item's external representation that can be displayed
in an external browser or
null if the item has no external
representation. |
CompletionDocumentation |
resolveLink(java.lang.String string)
Returns a documentation item representing an object linked from the item's
HTML text.
|
public DefaultDocumentationItem(java.lang.String link)
public DefaultDocumentationItem(java.lang.String link, java.lang.String text)
public java.lang.String getText()
CompletionDocumentation
getText
in interface CompletionDocumentation
public java.net.URL getURL()
CompletionDocumentation
null
if the item has no external
representation.getURL
in interface CompletionDocumentation
public CompletionDocumentation resolveLink(java.lang.String string)
CompletionDocumentation
resolveLink
in interface CompletionDocumentation
public javax.swing.Action getGotoSourceAction()
CompletionDocumentation
null
if the item has no source representation.getGotoSourceAction
in interface CompletionDocumentation