Package jadex.commons.gui.future
Class SwingExceptionDelegationResultListener<E,T>
- java.lang.Object
- 
- jadex.commons.gui.future.SwingExceptionDelegationResultListener<E,T>
 
- 
- All Implemented Interfaces:
- IFunctionalExceptionListener,- IFunctionalResultListener<E>,- IFutureCommandResultListener<E>,- IResultListener<E>,- IUndoneResultListener<E>
 
 public abstract class SwingExceptionDelegationResultListener<E,T> extends java.lang.Object implements IUndoneResultListener<E>, IFutureCommandResultListener<E> Delegation result listener that calls customResultAvailable and customExceptionOccurred on swing thread.
- 
- 
Constructor SummaryConstructors Constructor Description SwingExceptionDelegationResultListener(Future<T> future)Create a new listener.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcommandAvailable(java.lang.Object command)Called when a command is available.voidcustomCommandAvailable(java.lang.Object command)Called when a command is available.voidcustomExceptionOccurred(java.lang.Exception exception)Called when an exception occurred.abstract voidcustomResultAvailable(E result)Called when the result is available.voidexceptionOccurred(java.lang.Exception exception)Called when an exception occurred.voidexceptionOccurredIfUndone(java.lang.Exception exception)Called when an exception occurred.booleanisUndone()Get the undone.voidresultAvailable(E result)Called when the result is available.voidresultAvailableIfUndone(E result)Called when the result is available.
 
- 
- 
- 
Method Detail- 
resultAvailablepublic final void resultAvailable(E result) Called when the result is available.- Specified by:
- resultAvailablein interface- IFunctionalResultListener<E>
- Parameters:
- result- The result.
 
 - 
exceptionOccurredpublic final void exceptionOccurred(java.lang.Exception exception) Called when an exception occurred.- Specified by:
- exceptionOccurredin interface- IFunctionalExceptionListener
- Parameters:
- exception- The exception.
 
 - 
customResultAvailablepublic abstract void customResultAvailable(E result) throws java.lang.Exception Called when the result is available.- Parameters:
- result- The result.
- Throws:
- java.lang.Exception
 
 - 
customExceptionOccurredpublic void customExceptionOccurred(java.lang.Exception exception) Called when an exception occurred.- Parameters:
- exception- The exception.
 
 - 
commandAvailablepublic final void commandAvailable(java.lang.Object command) Called when a command is available.- Specified by:
- commandAvailablein interface- IFutureCommandResultListener<E>
 
 - 
customCommandAvailablepublic void customCommandAvailable(java.lang.Object command) Called when a command is available.
 - 
resultAvailableIfUndonepublic void resultAvailableIfUndone(E result) Called when the result is available.- Specified by:
- resultAvailableIfUndonein interface- IUndoneResultListener<E>
- Parameters:
- result- The result.
 
 - 
exceptionOccurredIfUndonepublic void exceptionOccurredIfUndone(java.lang.Exception exception) Called when an exception occurred.- Specified by:
- exceptionOccurredIfUndonein interface- IUndoneResultListener<E>
- Parameters:
- exception- The exception.
 
 - 
isUndonepublic boolean isUndone() Get the undone.- Returns:
- The undone.
 
 
- 
 
-