Package com.luciad.view.gxy
Class TLcdGXYSetControllerAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.gxy.TLcdGXYSetControllerAction
- All Implemented Interfaces:
ILcdAction,ILcdPropertyChangeSource,ActionListener,Serializable,EventListener
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:
-
Field Summary
Fields inherited from class com.luciad.gui.ALcdAction
changeSupportFields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new controller set action with a default name.TLcdGXYSetControllerAction(boolean aRegisterInstance) Deprecated.use the constructor without parameters.TLcdGXYSetControllerAction(ILcdGXYController aGXYController) Creates a new controller set action with the given controller.TLcdGXYSetControllerAction(ILcdGXYController aGXYController, boolean aRegisterInstance) Deprecated.TLcdGXYSetControllerAction(ILcdGXYController aGXYController, String aName, ILcdIcon aIcon) Creates a new controller set action with the given controller, name, and icon.TLcdGXYSetControllerAction(ILcdGXYView aGXYView, ILcdGXYController aGXYController) Creates a new controller set action with the given controller and view.TLcdGXYSetControllerAction(ILcdGXYView aGXYView, ILcdGXYController aGXYController, boolean aRegisterInstance) Deprecated.TLcdGXYSetControllerAction(ILcdGXYView aGXYView, ILcdGXYController aGXYController, String aName, ILcdIcon aIcon) Creates a new controller set action with the given controller, view, name, and icon. -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the controller configured for this action.Returns the view on which to activate the configured controller.booleanDeprecated.This method has been deprecated.voidsetGXYController(ILcdGXYController aGXYController) Sets the controller that this action should activate on the view.voidsetGXYView(ILcdGXYView aGXYView) Sets the view on which to activate the configured controller.voidsetTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated.Methods inherited from class com.luciad.gui.ALcdAction
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.gui.ILcdAction
getValue, isEnabled, putValue, setEnabledMethods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
-
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
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
Creates a new controller set action with the given controller and view.- Parameters:
aGXYView- the view for which to activate the controlleraGXYController- the controller to activate. Determines the name, short description and icon of this action.
-
TLcdGXYSetControllerAction
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 actionaIcon- 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 actionaIcon- 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) Deprecated. -
TLcdGXYSetControllerAction
Deprecated.
-
-
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 eithertrueorfalseas argument automatically turns off tracing for all other class instances for whichsetTraceOnhas not been called. If the argument isfalsethen only the informative, warning and error log messages are recorded.- Overrides:
setTraceOnin classALcdAction- 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.Returnstrueif tracing is enabled for this class.- Overrides:
isTraceOnin classALcdAction- Returns:
- true if tracing is enabled for this class, false otherwise.
-
getGXYView
Returns the view on which to activate the configured controller.- Returns:
- the view on which to activate the configured controller
-
setGXYView
Sets the view on which to activate the configured controller.- Parameters:
aGXYView- the view on which to activate the configured controller
-
setGXYController
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
Returns the controller configured for this action.- Returns:
- the controller configured for this action
- See Also:
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-