public abstract class ALspActionController extends ALspController
ILcdAction
when
receiving certain input events. An example usage could be to trigger a popup menu when the
user right-clicks a particular location.Constructor and Description |
---|
ALspActionController()
Default constructor for
ALspActionController . |
Modifier and Type | Method and Description |
---|---|
protected ActionEvent |
createActionEvent(AWTEvent aSourceEvent)
Constructs the
ActionEvent that will be used to fire the
ILcdAction associated with this controller in response to the given
AWTEvent . |
protected void |
performAction(AWTEvent aAWTEvent,
ILcdAction aAction)
Call this method to execute an action.
|
addPropertyChangeListener, addStatusListener, appendController, firePropertyChange, fireStatusEvent, getAWTFilter, getCursor, getFXCursor, getFXFilter, getIcon, getLayered, getName, getNextController, getShortDescription, getView, handleAWTEvent, handleAWTEventImpl, handleFXEvent, handleFXEventImpl, paint, paintImpl, registerViewPropertyNameForReset, removePropertyChangeListener, removeStatusListener, setAWTFilter, setCursor, setFXCursor, setFXFilter, setIcon, setName, setShortDescription, startInteraction, startInteractionImpl, terminateInteraction, terminateInteractionImpl
public ALspActionController()
ALspActionController
.protected final void performAction(AWTEvent aAWTEvent, ILcdAction aAction)
aAWTEvent
- the event triggering the action.aAction
- the action to be executed.protected ActionEvent createActionEvent(AWTEvent aSourceEvent)
ActionEvent
that will be used to fire the
ILcdAction
associated with this controller in response to the given
AWTEvent
.
If the incoming event is a MouseEvent
or TLcdTouchEvent
, this method will return a
TLcdActionAtLocationEvent
. The location is either the mouse
location, of the location of the modified touch point. Otherwise, it will return a standard
ActionEvent
.aSourceEvent
- the event that caused this controller's action to be fired