A trait for objects that support the registration of Java FX action listeners.
A trait for objects supporting the registration of change listeners.
A trait for objects supporting the registration of change listeners.
The JGUIraffe Java FX implementation uses change notifications of specific key properties to simulate the missing change events. In order to implement a generic mechanism for registering change listeners, an object has to provide the key property. This is exactly the contract enforced by this trait.
A class managing a list of event listeners.
A class managing a list of event listeners.
This class provides methods for adding and removing event listeners of the managed type. These methods can be called from an arbitrary thread. When an event is fired, all listeners registered at this point of time are invoked.
A specialized EventSender implementation which delivers events to a FormEventManager instance.
A specialized EventSender implementation which delivers events to a FormEventManager instance.
An instance of this class is used by event adapter implementations which have to collaborate with the event manager. Such adapters basically transform a Java FX event to a generic FormEvent. The FormEventManager can process such an event. It manages event listener registrations itself and ensures that the event is passed to all listeners.
A trait defining a generic event sender interface.
A trait defining a generic event sender interface.
The idea behind this trait is that it can be used by adapter implementations converting between platform-specific events and generic events. Such adapters somehow receive events and then have to propagate them to registered listeners. The way listeners are organized is specific to a concrete implementation.
There are mainly two different flavors of event listeners/receivers in JGUIraffe: - classic event listeners can be added to a component in an unlimited number - the FormEventManager class can act as event receiver; it provides an implementation of event multi-plexing
This trait should be generic enough to support both flavors of event listeners. Concrete implementations have to ensure that events are correctly passed.
The Java FX-specific implementation of the PlatformEventManager interface.
The Java FX-specific implementation of the PlatformEventManager interface.
This class implements basic functionality for registering default event listeners at Java FX components. It expects that the passed in ComponentHandler objects implement special event source interfaces for the event types they support. The methods defined by these interfaces are used to perform the actual listener registration. The listeners used by this class are special adapter implementations that transform Java FX events to the generic JGUIraffe event classes.
Node that this class can only safely be used when collaborating with net.sf.jguiraffe.gui.builder.event.FormEventManager. The implementation relies on certain guarantees given by FormEventManager regarding thread-safety or event multiplexing.
An adapter implementation mapping Java FX mouse events to corresponding JGUIraffe events.
A trait for objects supporting the registration of event listeners for generic node events.
A trait for objects supporting the registration of event listeners for generic node events.
Java FX Node objects define a bunch of properties to which event listeners can be added. This trait enables all of these properties by just defining a method for returning a Node object. Event listener registration code can then access the appropriate properties.
An adapter implementation mapping Java FX Window events to corresponding JGUIraffe events.
An adapter implementation mapping Java FX Window events to corresponding JGUIraffe events.
Unfortunately, there is a mismatch between Java FX window events and JGUIraffe window events. Therefore, no one to one mapping is possible. The following mappings are implemented by this class:
- WINDOW_SHOWN => WINDOW_OPENED - WINDOW_HIDING => WINDOW_CLOSING - WINDOW_HIDDEN => WINDOW_CLOSED
Java FX does not define events for window activation or deactivation, and events related to the window's current icon state. However, these events correspond to changes on some properties of the window. So listeners on the Java FX window's focused and iconified properties are registered for generating such events.
The companion object of MouseEventAdapter.
The companion object of WindowEventAdapter.
A trait for objects that support the registration of Java FX action listeners.
Action listeners are supported by various Java FX components. However, there is no inheritance hierarchy or generic mechanism for their registration. Therefore, this trait is introduced. It is intended to be mixed in by concrete ComponentHandler implementations which support action listeners.