public abstract 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(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.
|
abstract 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()
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 IResultListener<E>
result
- The result.public final void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IResultListener<E>
exceptionOccurred
in class DefaultResultListener<E>
exception
- The exception.public abstract 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 © 2013. All Rights Reserved.