Class TLspSetControllerAction
java.lang.Object
com.luciad.gui.ALcdAction
com.luciad.view.lightspeed.action.TLspSetControllerAction
- All Implemented Interfaces:
ILcdAction
,ILcdPropertyChangeSource
,ActionListener
,Serializable
,EventListener
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:
-
Field Summary
Fields inherited from class com.luciad.gui.ALcdAction
changeSupport
Fields inherited from interface com.luciad.gui.ILcdAction
DEFAULT, LONG_DESCRIPTION, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SHOW_ACTION_NAME, SMALL_ICON, VISIBLE
-
Constructor Summary
ConstructorDescriptionTLspSetControllerAction
(ILspView aView, ILspController aController) Creates a new action with anILspView
and anILspController
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent aEvent) Sets the controller onto the view.Methods inherited from class com.luciad.gui.ALcdAction
addPropertyChangeListener, firePropertyChange, getDisplayName, getIcon, getLongDescription, getName, getShortDescription, getValue, isEnabled, isTraceOn, putValue, registerInstance, removePropertyChangeListener, setClassTraceOn, setDisplayName, setEnabled, setIcon, setLongDescription, setName, setShortDescription, setTraceOn
-
Constructor Details
-
TLspSetControllerAction
Creates a new action with anILspView
and anILspController
. The icon and name for the new action are taken from the specifiedILspController
.- Parameters:
aView
- the view on which the controller will be setaController
- the controller that is activated by this action
-
-
Method Details
-
actionPerformed
Sets the controller onto the view.- Parameters:
aEvent
- the event specifying the context in which this action was triggered
-