Class TLcyLspSetControllerActiveSettable

java.lang.Object
com.luciad.lucy.gui.ALcyActiveSettable
com.luciad.lucy.map.action.lightspeed.TLcyLspSetControllerActiveSettable
All Implemented Interfaces:
ILcyActiveSettable, ILcdPropertyChangeSource, Serializable
Direct Known Subclasses:
TLcyLspCreateControllerActiveSettable

public class TLcyLspSetControllerActiveSettable extends ALcyActiveSettable

An active settable implementation which allows to activate a controller on a Lightspeed view. When calling setActive(true), the active settable will install the controller on the Lightspeed view. The active settable will de-activate itself when another controller is placed on the view.

Note: this active settable does nothing when calling setActive(false). To de-activate it, you need to install another controller on the view. This means that typically you use multiple instances of this class, allowing the user of your application to switch between different controllers.
To ensure that this is reflected in the UI, you need to indicate that de-activation of this active settable is not possible when inserting it into the UI. For example by passing false as last argument in TLcyActionBarUtil#insertInConfiguredActionBars, or ILcyActionBar#insertActiveSettable.

Since:
2012.1
See Also:
  • Constructor Details

    • TLcyLspSetControllerActiveSettable

      public TLcyLspSetControllerActiveSettable(ILspController aController, ILspView aView, ILcyLucyEnv aLucyEnv)
      Creates a new active settable that, when active, sets the given controller on the given view. The active settable's icon, name and short description will be initialized with those of the controller.
      Parameters:
      aController - the controller that will be activated on the view. If null is provided, a controller must be set before using this active settable
      aView - the view to activate the controller for. If null is provided, a view must be set before using this active settable
      aLucyEnv - the Lucy back-end. Must not be null.
  • Method Details