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()
CompletionDocumentationgetText in interface CompletionDocumentationpublic java.net.URL getURL()
CompletionDocumentationnull if the item has no external
representation.getURL in interface CompletionDocumentationpublic CompletionDocumentation resolveLink(java.lang.String string)
CompletionDocumentationresolveLink in interface CompletionDocumentationpublic javax.swing.Action getGotoSourceAction()
CompletionDocumentationnull if the item has no source representation.getGotoSourceAction in interface CompletionDocumentation