Class TLcyCompositeBalloonContentProvider

java.lang.Object
com.luciad.lucy.util.TLcyGenericComposite<ILcdBalloonContentProvider>
com.luciad.lucy.gui.balloon.TLcyCompositeBalloonContentProvider
All Implemented Interfaces:
ILcdBalloonContentProvider, Iterable<ILcdBalloonContentProvider>

public class TLcyCompositeBalloonContentProvider extends TLcyGenericComposite<ILcdBalloonContentProvider> implements ILcdBalloonContentProvider

Composite implementation (see composite design pattern) of ILcdBalloonContentProvider. It keeps a list of associated ILcdBalloonContentProviders: one can add and remove other ILcdBalloonContentProviders to this ILcdBalloonContentProvider. When a HyperlinkEvent is fired, it loops over its associated ILcdBalloonContentProviders and notifies all of them. It is up to the registered ILcdBalloonContentProviders to determine whether or not the fired HyperlinkEvent is relevant.

When creating a new TLcyCompositeBalloonContentProvider using the default constructor (see TLcyCompositeBalloonContentProvider()), the created instance will only work on/with the ILcdBalloonContentProviders registered on this composite instance (see addBalloonContentProvider(com.luciad.view.swing.ILcdBalloonContentProvider) and removeBalloonContentProvider(ILcdBalloonContentProvider)).

When creating a new TLcyCompositeBalloonContentProvider using the constructor specifying an ILcyLucyEnv instance (see TLcyCompositeBalloonContentProvider(com.luciad.lucy.ILcyLucyEnv), the created instance will work on the Lucy back-end services. It will use all registered ILcdBalloonContentProvider instances of the Lucy back-end, adding and/or removing an ILcdBalloonContentProvider will add/remove the ILcdBalloonContentProvider as service from Lucy, ... .