public class SwingDefaultResultListener<E> extends DefaultResultListener<E> implements IFutureCommandResultListener<E>
Modifier and Type | Field and Description |
---|---|
protected IFunctionalExceptionListener |
customExceptionListener
Custom result listener
|
protected IFunctionalResultListener<E> |
customResultListener
Custom result listener
|
protected java.awt.Component |
parent
The component.
|
Constructor and Description |
---|
SwingDefaultResultListener()
Create a new listener.
|
SwingDefaultResultListener(java.awt.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,
java.awt.Component parent)
Create a new listener with functional interfaces.
|
SwingDefaultResultListener(java.util.logging.Logger logger)
Create a new listener.
|
Modifier and Type | Method and Description |
---|---|
void |
commandAvailable(java.lang.Object command)
Called when a command is available.
|
void |
customCommandAvailable(java.lang.Object command)
Called when a command is available.
|
void |
customExceptionOccurred(java.lang.Exception exception)
Called when an exception occurred.
|
void |
customResultAvailable(E result)
Called when the result is available.
|
void |
exceptionOccurred(java.lang.Exception exception)
Called when an exception occurred.
|
void |
resultAvailable(E result)
Called when the result is available.
|
protected java.awt.Component parent
protected IFunctionalResultListener<E> customResultListener
protected IFunctionalExceptionListener customExceptionListener
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, java.awt.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(java.awt.Component parent)
parent
- The parent component (when errors should be shown as dialog).public SwingDefaultResultListener(java.util.logging.Logger logger)
logger
- The logger.public final void resultAvailable(E result)
resultAvailable
in interface IFunctionalResultListener<E>
result
- The result.public final void exceptionOccurred(java.lang.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(java.lang.Exception exception)
exception
- The exception.public final void commandAvailable(java.lang.Object command)
commandAvailable
in interface IFutureCommandListener
commandAvailable
in class DefaultResultListener<E>
public void customCommandAvailable(java.lang.Object command)