The Java FX-specific implementation of the GUISynchronizer interface.
The MessageOutput implementation for JavaFX.
The MessageOutput implementation for JavaFX.
Almost all functionality is implemented by the base class. This class mainly mixes in the default providers for dynamically obtaining the required components.
An abstract base class for the JavaFX-specific MessageOutput implementation.
An abstract base class for the JavaFX-specific MessageOutput implementation.
This base implements all the functionality for displaying message boxes of different types. To achieve this, it relies on certain providers for obtaining the various elements for constructing message boxes. Which concrete providers to be used has to be defined for concrete sub classes by mixing in the corresponding traits.
A concrete subclass is typically defined in the bean context of a JGUIraffe application. Note that the required dependencies cannot be injected directly because this would lead to cyclic references (the MessageOutput implementation is passed to the ApplicationContext object at creation time; the ApplicationContext is also needed by this object.)
Implementation note: This class is not thread-safe. It is expected to be used only in the JavaFX thread.
A trait for obtaining the different buttons for message windows.
A trait for obtaining the different buttons for message windows.
The default message dialogs produced by a MessageOutput object can contain a number of different buttons. All requests for buttons are handled by this trait. Thus it is possible to inject specific button implementations.
This base implementation produces normal JavaFX buttons whose titles are obtained from a default resource bundle shipped with the JGUIraffe JavaFX library.
A trait for obtaining the different icons for message dialogs of different types.
A trait for obtaining the different icons for message dialogs of different types.
Each message dialog type (information, question, warning, error) is associated with a specific icon. The concrete icons to be used can be queried via this trait. This makes it possible to override the default icons with custom ones.
Definition of a trait which creates the Stage object to be used by the JavaFX-specific MessageOutput implementation.
Definition of a trait which creates the Stage object to be used by the JavaFX-specific MessageOutput implementation.
This trait is used by net.sf.jguiraffe.gui.platform.javafx.builder.utils.JavaFxMessageOutput to obtain the stage for displaying the message box. A base implementation is provided which creates a default modal Stage with the passed in parent window as its owner and no decorations.
The companion object for JavaFxGUISynchronizer.
Companion object for JavaFxMessageOutput.
The Java FX-specific implementation of the GUISynchronizer interface.
This implementation mainly delegates to methods of the Java FX Platform class. Functionality missing in this class, but required by the interface has to be implemented manually, e.g. synchronous executions on the Java FX thread.