public class SwingResultListener<E> extends Object implements IUndoneResultListener<E>, IFutureCommandResultListener<E>
| Constructor and Description |
|---|
SwingResultListener(IFunctionalResultListener<E> listener)
Create a new listener with functional interfaces.
|
SwingResultListener(IFunctionalResultListener<E> listener,
IFunctionalExceptionListener exceptionListener)
Create a new listener with functional interfaces.
|
SwingResultListener(IResultListener<E> listener)
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 |
exceptionOccurredIfUndone(Exception exception)
Called when an exception occurred.
|
boolean |
isUndone()
Get the undone.
|
void |
resultAvailable(E result)
Called when the result is available.
|
void |
resultAvailableIfUndone(E result)
Called when the result is available.
|
public SwingResultListener(IFunctionalResultListener<E> listener)
listener - The listener.exceptionListener - The listener that is called on exceptions.public SwingResultListener(IFunctionalResultListener<E> listener, IFunctionalExceptionListener exceptionListener)
listener - The listener.exceptionListener - The listener that is called on exceptions.public SwingResultListener(IResultListener<E> listener)
public final void resultAvailable(E result)
resultAvailable in interface IFunctionalResultListener<E>result - The result.public final void exceptionOccurred(Exception exception)
exceptionOccurred in interface IFunctionalExceptionListenerexception - 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 IFutureCommandListenerpublic void customCommandAvailable(Object command)
public void resultAvailableIfUndone(E result)
resultAvailableIfUndone in interface IUndoneResultListener<E>result - The result.public void exceptionOccurredIfUndone(Exception exception)
exceptionOccurredIfUndone in interface IUndoneResultListener<E>exception - The exception.public boolean isUndone()
Copyright © 2015. All Rights Reserved.