Class TLcyHyperlinkAddOn
This addon registers a default hyperlink listener as a service in Lucy.
The default hyperlink listener will open a standard browser
- Since:
- 10.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
plugInto
(ILcyLucyEnv aLucyEnv) Plugs this addon into the given lucy environment.void
unplugFrom
(ILcyLucyEnv aLucyEnv) Unplugs this addon from the given Lucy environment.Methods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Constructor Details
-
TLcyHyperlinkAddOn
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 JavaDesktop
API to open hyperlinks in the default browser of the operating system. This only works whenDesktop.isDesktopSupported()
returnstrue
.The
TLcyHyperlinkAddOn
is for example used by theTLcyKML22AddOn
. TheTLcyKML22AddOn
generates HTML balloons for its elements. When a balloon contains a hyperlink, it will notify aTLcyCompositeHyperlinkListener
registered to the backend. ThisTLcyCompositeHyperlinkListener
will in turn notify allHyperlinkListener
instances that are registered to it, including the defaultHyperlinkListener
that opens a hyperlink in a browser.
-
-
Method Details
-
plugInto
Description copied from class:ALcyAddOn
Plugs this addon into the given lucy environment. It is in the implementation of this method that the addon adds its functionality to the Lucy backend. -
unplugFrom
Description copied from class:ALcyAddOn
Unplugs this addon from the given Lucy environment. It removes the functionality previously added to the Lucy backend.- Specified by:
unplugFrom
in classALcyAddOn
- Parameters:
aLucyEnv
- The lucy environment to unplug from.- See Also:
-