Class TLspSetControllerAction

java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.lightspeed.action.TLspSetControllerAction
All Implemented Interfaces:
ILcdAction, ILcdPropertyChangeSource, ActionListener, Serializable, EventListener

public class TLspSetControllerAction extends ALcdAction
An ILcdAction that sets an ILspController on a given ILspView. A typical use case is activating the edit controller after a new shape is created (see setActionToTriggerAfterCommit in the TLspCreateController).

The action automatically updates the ILcdAction.SELECTED_KEY value based on whether the controller is active or not.

Since:
2012.0
See Also:
  • Constructor Details

    • TLspSetControllerAction

      public TLspSetControllerAction(ILspView aView, ILspController aController)
      Creates a new action with an ILspView and an ILspController. The icon and name for the new action are taken from the specified ILspController.
      Parameters:
      aView - the view on which the controller will be set
      aController - the controller that is activated by this action
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent aEvent)
      Sets the controller onto the view.
      Parameters:
      aEvent - the event specifying the context in which this action was triggered