Class TLcdGXYSetControllerAction

java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.gxy.TLcdGXYSetControllerAction
All Implemented Interfaces:
ILcdAction, ILcdPropertyChangeSource, ActionListener, Serializable, EventListener

public class TLcdGXYSetControllerAction extends ALcdAction implements ILcdAction
When triggered (actionPerformed), this ILcdAction sets a given ILcdGXYController on a given ILcdGXYView.

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

See Also:
  • Constructor Details

    • TLcdGXYSetControllerAction

      public TLcdGXYSetControllerAction()
      Creates a new controller set action with a default name. After construction, a view and controller need to be set for this action to work.
      See Also:
    • TLcdGXYSetControllerAction

      public TLcdGXYSetControllerAction(ILcdGXYController aGXYController)
      Creates a new controller set action with the given controller. After construction, a view needs to be set for this action to work.
      Parameters:
      aGXYController - the controller to activate. Determines the name, short description and icon of this action.
      See Also:
    • TLcdGXYSetControllerAction

      public TLcdGXYSetControllerAction(ILcdGXYView aGXYView, ILcdGXYController aGXYController)
      Creates a new controller set action with the given controller and view.
      Parameters:
      aGXYView - the view for which to activate the controller
      aGXYController - the controller to activate. Determines the name, short description and icon of this action.
    • TLcdGXYSetControllerAction

      public TLcdGXYSetControllerAction(ILcdGXYController aGXYController, String aName, ILcdIcon aIcon)
      Creates a new controller set action with the given controller, name, and icon. After construction, a view needs to be set for this action to work.
      Parameters:
      aGXYController - the controller to activate. Determines the short description of this action. of this action.
      aName - the name of this action
      aIcon - the icon of this action
      See Also:
    • TLcdGXYSetControllerAction

      public TLcdGXYSetControllerAction(ILcdGXYView aGXYView, ILcdGXYController aGXYController, String aName, ILcdIcon aIcon)
      Creates a new controller set action with the given controller, view, name, and icon.
      Parameters:
      aGXYView - the view to activate the controller on.
      aGXYController - the controller to activate. Determines the short description of this action.
      aName - the name of this action
      aIcon - the icon of this action
      See Also:
    • TLcdGXYSetControllerAction

      public TLcdGXYSetControllerAction(boolean aRegisterInstance)
      Deprecated.
      use the constructor without parameters.
    • TLcdGXYSetControllerAction

      public TLcdGXYSetControllerAction(ILcdGXYView aGXYView, ILcdGXYController aGXYController, boolean aRegisterInstance)
    • TLcdGXYSetControllerAction

      public TLcdGXYSetControllerAction(ILcdGXYController aGXYController, boolean aRegisterInstance)
  • Method Details

    • setTraceOn

      public void setTraceOn(boolean aTraceOn)
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Enables tracing for this class instance. Calling this method with either true or false as argument automatically turns off tracing for all other class instances for which setTraceOn has not been called. If the argument is false then only the informative, warning and error log messages are recorded.
      Overrides:
      setTraceOn in class ALcdAction
      Parameters:
      aTraceOn - if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
    • isTraceOn

      public boolean isTraceOn()
      Deprecated.
      This method has been deprecated. It is recommended to use the standard Java logging framework directly.
      Returns true if tracing is enabled for this class.
      Overrides:
      isTraceOn in class ALcdAction
      Returns:
      true if tracing is enabled for this class, false otherwise.
    • getGXYView

      public ILcdGXYView getGXYView()
      Returns the view on which to activate the configured controller.
      Returns:
      the view on which to activate the configured controller
    • setGXYView

      public void setGXYView(ILcdGXYView aGXYView)
      Sets the view on which to activate the configured controller.
      Parameters:
      aGXYView - the view on which to activate the configured controller
    • setGXYController

      public void setGXYController(ILcdGXYController aGXYController)
      Sets the controller that this action should activate on the view. This action will take over the controller's name, icon and short description.
      Parameters:
      aGXYController - the controller that this action should activate on the view.
      See Also:
    • getGXYController

      public ILcdGXYController getGXYController()
      Returns the controller configured for this action.
      Returns:
      the controller configured for this action
      See Also:
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener