Class SwingDefaultResultListener<E>

    • Constructor Detail

      • SwingDefaultResultListener

        public SwingDefaultResultListener​(IFunctionalResultListener<E> customResultListener)
        Create a new listener with functional interfaces.
        Parameters:
        listener - The listener.
      • SwingDefaultResultListener

        public SwingDefaultResultListener​(IFunctionalResultListener<E> customResultListener,
                                          IFunctionalExceptionListener customExceptionListener)
        Create a new listener with functional interfaces.
        Parameters:
        customResultListener - The custom result listener.
        customExceptionListener - The listener that is called on exceptions.
      • SwingDefaultResultListener

        public SwingDefaultResultListener​(IFunctionalResultListener<E> customResultListener,
                                          IFunctionalExceptionListener customExceptionListener,
                                          java.awt.Component parent)
        Create a new listener with functional interfaces.
        Parameters:
        customResultListener - The custom result listener.
        customExceptionListener - The listener that is called on exceptions.
        parent - The parent component (when errors should be shown as dialog).
      • SwingDefaultResultListener

        public SwingDefaultResultListener()
        Create a new listener.
      • SwingDefaultResultListener

        public SwingDefaultResultListener​(java.awt.Component parent)
        Create a new listener.
        Parameters:
        parent - The parent component (when errors should be shown as dialog).
      • SwingDefaultResultListener

        public SwingDefaultResultListener​(java.util.logging.Logger logger)
        Create a new listener.
        Parameters:
        logger - The logger.
    • Method Detail

      • unblock

        protected static void unblock​(Future<java.lang.Void> adblock)
      • resultAvailable

        public final void resultAvailable​(E result)
        Called when the result is available.
        Specified by:
        resultAvailable in interface IFunctionalResultListener<E>
        Parameters:
        result - The result.
      • customResultAvailable

        public void customResultAvailable​(E result)
        Called when the result is available.
        Parameters:
        result - The result.
      • customExceptionOccurred

        public void customExceptionOccurred​(java.lang.Exception exception)
        Called when an exception occurred.
        Parameters:
        exception - The exception.
      • customCommandAvailable

        public void customCommandAvailable​(java.lang.Object command)
        Called when a command is available.