public class ActionSupport<T extends ActionEvent> extends Object
A utility class that can provide action support for a class. This is mainly a thin wrapper around EventDispatcher
, but it also includes some static utility methods for event dispatch which are used
for dispatching action events in CodeRAD.
Constructor and Description |
---|
ActionSupport() |
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener<T> l) |
static void |
addActionListener(Component cmp,
ActionListener l) |
static void |
dispatchEvent(ActionEvent evt)
Dispatches an event, first using the source’s action support,
if it implements EventProducer interface.
|
void |
fireActionEvent(T evt) |
void |
removeActionListener(ActionListener<T> l) |
static void |
removeActionListener(Component cmp,
ActionListener l) |
public void addActionListener(ActionListener<T> l)
public void removeActionListener(ActionListener<T> l)
public void fireActionEvent(T evt)
public static void addActionListener(Component cmp, ActionListener l)
public static void removeActionListener(Component cmp, ActionListener l)
public static void dispatchEvent(ActionEvent evt)
Dispatches an event, first using the source’s action support, if it implements EventProducer interface. If event not consumed, it will find the nearest ViewController and dispatch the event up the controller chain. Latter also requires that event is ControllerEvent
evt
- Copyright © 2021. All Rights Reserved.