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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidplugInto(ILcyLucyEnv aLucyEnv) Plugs this addon into the given lucy environment.voidunplugFrom(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
TLcyHyperlinkAddOnwill register a default HyperlinkListener to the Lucy backend. This default hyperlink listener will make use of JavaDesktopAPI to open hyperlinks in the default browser of the operating system. This only works whenDesktop.isDesktopSupported()returnstrue.The
TLcyHyperlinkAddOnis for example used by theTLcyKML22AddOn. TheTLcyKML22AddOngenerates HTML balloons for its elements. When a balloon contains a hyperlink, it will notify aTLcyCompositeHyperlinkListenerregistered to the backend. ThisTLcyCompositeHyperlinkListenerwill in turn notify allHyperlinkListenerinstances that are registered to it, including the defaultHyperlinkListenerthat opens a hyperlink in a browser.
-
-
Method Details
-
plugInto
Description copied from class:ALcyAddOnPlugs 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:ALcyAddOnUnplugs this addon from the given Lucy environment. It removes the functionality previously added to the Lucy backend.- Specified by:
unplugFromin classALcyAddOn- Parameters:
aLucyEnv- The lucy environment to unplug from.- See Also:
-