public abstract class SwingExceptionDelegationResultListener<E,T> extends java.lang.Object implements IUndoneResultListener<E>, IFutureCommandResultListener<E>
| Modifier and Type | Field and Description | 
|---|---|
protected Future<T> | 
future
The future to which calls are delegated. 
 | 
protected boolean | 
undone
Flag if undone methods should be used. 
 | 
| Constructor and Description | 
|---|
SwingExceptionDelegationResultListener(Future<T> future)
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. 
 | 
abstract void | 
customResultAvailable(E result)
Called when the result is available. 
 | 
void | 
exceptionOccurred(java.lang.Exception exception)
Called when an exception occurred. 
 | 
void | 
exceptionOccurredIfUndone(java.lang.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 final void resultAvailable(E result)
resultAvailable in interface IFunctionalResultListener<E>result - The result.public final void exceptionOccurred(java.lang.Exception exception)
exceptionOccurred in interface IFunctionalExceptionListenerexception - The exception.public abstract 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 IFutureCommandListenerpublic void customCommandAvailable(java.lang.Object command)
public void resultAvailableIfUndone(E result)
resultAvailableIfUndone in interface IUndoneResultListener<E>result - The result.public void exceptionOccurredIfUndone(java.lang.Exception exception)
exceptionOccurredIfUndone in interface IUndoneResultListener<E>exception - The exception.public boolean isUndone()