net.sf.jguiraffe.gui.platform.javafx.builder.event
Maps the given Java FX event to a corresponding JGUIraffe event and passes it to the event sender.
Maps the given Java FX event to a corresponding JGUIraffe event and passes it to the event sender.
the event to be converted
the object for transporting events
Removes this adapter from the specified window.
Removes this adapter from the specified window. This method removes the event filter and the event handler that were created during registration.
the Java FX window
the wrapped JGUIraffe window
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.