public class SwingEventManager extends Object implements PlatformEventManager
Swing specific implementation of the PlatformEventManager
interface.
This class provides functionality for registering event listeners at Swing
components. It can deal with ComponentHandler
objects have been
created by the Swing-specific implementation of the
ComponentManager
interface; especially they must implement the
SwingEventSource
interface. Other ComponentHandler
objects
are silently ignored.
The Swing-specific implementation of events relies on some features of the
FormEventManager
class:
registerListener()
and/or unregisterListener()
for
the same listener type).FormEventManager
)Constructor and Description |
---|
SwingEventManager()
Creates a new instance of
SwingEventManager . |
Modifier and Type | Method and Description |
---|---|
void |
registerListener(String name,
ComponentHandler<?> handler,
FormEventManager eventManager,
FormListenerType type)
Registers the event manager as an event listener at the specified
component.
|
void |
unregisterListener(String name,
ComponentHandler<?> handler,
FormEventManager eventManager,
FormListenerType type)
Unregisters the event listener from the specified component.
|
public SwingEventManager()
SwingEventManager
.public void registerListener(String name, ComponentHandler<?> handler, FormEventManager eventManager, FormListenerType type)
registerListener
in interface PlatformEventManager
name
- the component's namehandler
- the component handlereventManager
- the event managertype
- the listener typepublic void unregisterListener(String name, ComponentHandler<?> handler, FormEventManager eventManager, FormListenerType type)
unregisterListener
in interface PlatformEventManager
name
- the component's namehandler
- the component handlereventManager
- the event managertype
- the listener typeCopyright © 2016 The JGUIraffe Team. All rights reserved.