public interface SwingEventSource
Definition of an interface for registering and unregistering Swing event listeners.
This interface is used internally by the Swing specific form builder implementation to receive Swing events and transform them to the general form builder events. The Swing event manager needs a way to register itself at different GUI components. This is done through the methods provided by this interface.
To be compatible with the pattern used thoroughly in Swing for registering
and unregistering event listeners the methods are named
addXXXListener()
and removeXXXListener()
.
However, for each event type only a single listener will be set by the Swing
event manager.
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener l)
Adds the specified action listener at this event source.
|
void |
addChangeListener(ChangeListener l)
Adds the specified change listener at this event source
|
void |
addFocusListener(FocusListener l)
Adds the specified focus listener at this event source.
|
void |
addMouseListener(MouseListener l)
Adds the specified mouse listener to this event source.
|
void |
removeActionListener(ActionListener l)
Removes the specified action listener from this event source.
|
void |
removeChangeListener(ChangeListener l)
Removes the specified change listener from this event source.
|
void |
removeFocusListener(FocusListener l)
Removes the specified focus listener from this event source.
|
void |
removeMouseListener(MouseListener l)
Removes the specified mouse listener from this event source.
|
void addActionListener(ActionListener l)
l
- the listener to registervoid removeActionListener(ActionListener l)
l
- the listener to removevoid addFocusListener(FocusListener l)
l
- the listener to registervoid removeFocusListener(FocusListener l)
l
- the listener to removevoid addChangeListener(ChangeListener l)
l
- the listener to registervoid removeChangeListener(ChangeListener l)
l
- the listener to removevoid addMouseListener(MouseListener l)
l
- the listener to be addedvoid removeMouseListener(MouseListener l)
l
- the listener to removeCopyright © 2016 The JGUIraffe Team. All rights reserved.