public class TLcyHyperlinkAddOn extends ALcyAddOn
This addon registers a default hyperlink listener as a service in Lucy.
The default hyperlink listener will open a standard browser
Constructor and Description |
---|
TLcyHyperlinkAddOn()
Creates a new instance of the hyperlink addon.
|
Modifier and Type | Method and Description |
---|---|
void |
plugInto(ILcyLucyEnv aLucyEnv)
Plugs this addon into the given lucy environment.
|
void |
unplugFrom(ILcyLucyEnv aLucyEnv)
Unplugs this addon from the given Lucy environment.
|
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
public TLcyHyperlinkAddOn()
Creates a new instance of the hyperlink addon.
The TLcyHyperlinkAddOn
will register a default HyperlinkListener
to the Lucy backend. This default hyperlink listener will make use of Java Desktop
API to open
hyperlinks in the default browser of the operating system. This only works when Desktop.isDesktopSupported()
returns
true
.
The TLcyHyperlinkAddOn
is for example used by the TLcyKML22AddOn
. The
TLcyKML22AddOn
generates HTML balloons for its elements. When a balloon contains a hyperlink,
it will notify a TLcyCompositeHyperlinkListener
registered to the backend. This
TLcyCompositeHyperlinkListener
will in turn notify all HyperlinkListener
instances that are registered to it, including the default HyperlinkListener
that
opens a hyperlink in a browser.
public void plugInto(ILcyLucyEnv aLucyEnv)
ALcyAddOn
plugInto
in class ALcyAddOn
aLucyEnv
- The lucy environment to plug into.ALcyAddOn.unplugFrom(com.luciad.lucy.ILcyLucyEnv)
public void unplugFrom(ILcyLucyEnv aLucyEnv)
ALcyAddOn
unplugFrom
in class ALcyAddOn
aLucyEnv
- The lucy environment to unplug from.ALcyAddOn.plugInto(com.luciad.lucy.ILcyLucyEnv)