public class SwingIntermediateResultListener<E> extends Object implements IIntermediateFutureCommandResultListener<E>, IUndoneIntermediateResultListener<E>
| Constructor and Description |
|---|
SwingIntermediateResultListener(IFunctionalResultListener<E> intermediateListener)
Create a new listener with functional interfaces.
|
SwingIntermediateResultListener(IFunctionalResultListener<E> intermediateListener,
IFunctionalResultListener<Void> finishedListener)
Create a new listener with functional interfaces.
|
SwingIntermediateResultListener(IFunctionalResultListener<E> intermediateListener,
IFunctionalResultListener<Void> finishedListener,
IFunctionalExceptionListener exceptionListener)
Create a new listener with functional interfaces.
|
SwingIntermediateResultListener(IIntermediateResultListener<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 |
customFinished()
Declare that the future is finished.
|
void |
customIntermediateResultAvailable(E result)
Called when an intermediate result is available.
|
void |
customResultAvailable(Collection<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.
|
void |
finished()
Declare that the future is finished.
|
void |
finishedIfUndone()
Declare that the future is finished.
|
void |
intermediateResultAvailable(E result)
Called when an intermediate result is available.
|
void |
intermediateResultAvailableIfUndone(E result)
Called when an intermediate result is available.
|
boolean |
isUndone()
Get the undone.
|
void |
resultAvailable(Collection<E> result)
Called when the result is available.
|
void |
resultAvailableIfUndone(Collection<E> result)
Called when the result is available.
|
public SwingIntermediateResultListener(IFunctionalResultListener<E> intermediateListener)
intermediateListener - The intermediate listener.public SwingIntermediateResultListener(IFunctionalResultListener<E> intermediateListener, IFunctionalResultListener<Void> finishedListener)
intermediateListener - The intermediate listener.finishedListener - The finished listener, called when no more
intermediate results will arrive.public SwingIntermediateResultListener(IFunctionalResultListener<E> intermediateListener, IFunctionalResultListener<Void> finishedListener, IFunctionalExceptionListener exceptionListener)
intermediateListener - The intermediate listener.finishedListener - The finished listener, called when no more
intermediate results will arrive.exceptionListener - The listener that is called on exceptions.public SwingIntermediateResultListener(IIntermediateResultListener<E> listener)
public void resultAvailable(Collection<E> result)
resultAvailable in interface IFunctionalResultListener<Collection<E>>resultAvailable in interface IIntermediateResultListener<E>result - The final result.public void exceptionOccurred(Exception exception)
exceptionOccurred in interface IFunctionalExceptionListenerexception - The exception.public void intermediateResultAvailable(E result)
intermediateResultAvailable in interface IIntermediateResultListener<E>result - The result.public void finished()
finished in interface IIntermediateResultListener<E>public void customFinished()
public void customResultAvailable(Collection<E> result)
result - The result.public void customExceptionOccurred(Exception exception)
exception - The exception.public void customIntermediateResultAvailable(E result)
result - The result.public final void commandAvailable(Object command)
commandAvailable in interface IFutureCommandListenerpublic void customCommandAvailable(Object command)
public void resultAvailableIfUndone(Collection<E> result)
resultAvailableIfUndone in interface IUndoneResultListener<Collection<E>>result - The result.public void exceptionOccurredIfUndone(Exception exception)
exceptionOccurredIfUndone in interface IUndoneResultListener<Collection<E>>exception - The exception.public void intermediateResultAvailableIfUndone(E result)
intermediateResultAvailableIfUndone in interface IUndoneIntermediateResultListener<E>result - The result.public void finishedIfUndone()
finishedIfUndone in interface IUndoneIntermediateResultListener<E>public boolean isUndone()
Copyright © 2015. All Rights Reserved.