public class SwingDefaultResultListener<E> extends DefaultResultListener<E> implements IFutureCommandResultListener<E>
Constructor and Description |
---|
SwingDefaultResultListener()
Create a new listener.
|
SwingDefaultResultListener(Component parent)
Create a new listener.
|
SwingDefaultResultListener(IFunctionalResultListener<E> customResultListener)
Create a new listener with functional interfaces.
|
SwingDefaultResultListener(IFunctionalResultListener<E> customResultListener,
IFunctionalExceptionListener customExceptionListener)
Create a new listener with functional interfaces.
|
SwingDefaultResultListener(IFunctionalResultListener<E> customResultListener,
IFunctionalExceptionListener customExceptionListener,
Component parent)
Create a new listener with functional interfaces.
|
SwingDefaultResultListener(Logger logger)
Create a new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
commandAvailable(Object command)
Called when a command is available.
|
void |
customCommandAvailable(Object command)
Called when a command is available.
|
void |
customExceptionOccurred(Exception exception)
Called when an exception occurred.
|
void |
customResultAvailable(E result)
Called when the result is available.
|
void |
exceptionOccurred(Exception exception)
Called when an exception occurred.
|
void |
resultAvailable(E result)
Called when the result is available.
|
public SwingDefaultResultListener(IFunctionalResultListener<E> customResultListener)
listener
- The listener.public SwingDefaultResultListener(IFunctionalResultListener<E> customResultListener, IFunctionalExceptionListener customExceptionListener)
customResultListener
- The custom result listener.customExceptionListener
- The listener that is called on exceptions.public SwingDefaultResultListener(IFunctionalResultListener<E> customResultListener, IFunctionalExceptionListener customExceptionListener, Component parent)
customResultListener
- The custom result listener.customExceptionListener
- The listener that is called on exceptions.parent
- The parent component (when errors should be shown as
dialog).public SwingDefaultResultListener()
public SwingDefaultResultListener(Component parent)
parent
- The parent component (when errors should be shown as dialog).public SwingDefaultResultListener(Logger logger)
logger
- The logger.public final void resultAvailable(E result)
resultAvailable
in interface IFunctionalResultListener<E>
result
- The result.public final void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IFunctionalExceptionListener
exceptionOccurred
in class DefaultResultListener<E>
exception
- The exception.public void customResultAvailable(E result)
result
- The result.public void customExceptionOccurred(Exception exception)
exception
- The exception.public final void commandAvailable(Object command)
commandAvailable
in interface IFutureCommandListener
commandAvailable
in class DefaultResultListener<E>
public void customCommandAvailable(Object command)
Copyright © 2015. All Rights Reserved.