public class ComponentResultListener<E> extends java.lang.Object implements IResultListener<E>, IFutureCommandListener, IUndoneResultListener<E>
| Modifier and Type | Field and Description | 
|---|---|
| protected IExternalAccess | accessThe external access. | 
| protected IInternalAccess | componentThe component. | 
| protected IResultListener<E> | listenerThe result listener. | 
| protected boolean | undoneThe undone flag. | 
| Constructor and Description | 
|---|
| ComponentResultListener(IFunctionalResultListener<E> listener,
                       IFunctionalExceptionListener exceptionListener,
                       IExternalAccess access)Create a new component result listener. | 
| ComponentResultListener(IFunctionalResultListener<E> listener,
                       IFunctionalExceptionListener exceptionListener,
                       IInternalAccess component)Create a new component result listener. | 
| ComponentResultListener(IResultListener<E> listener,
                       IExternalAccess access)Create a new component result listener. | 
| ComponentResultListener(IResultListener<E> listener,
                       IInternalAccess component)Create a new component result listener. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | commandAvailable(java.lang.Object command)Called when a command is available. | 
| void | exceptionOccurred(java.lang.Exception exception)Called when an exception occurred. | 
| void | exceptionOccurredIfUndone(java.lang.Exception exception)Called when an exception occurred. | 
| void | resultAvailable(E result)Called when the result is available. | 
| void | resultAvailableIfUndone(E result)Called when the result is available. | 
protected IResultListener<E> listener
protected IInternalAccess component
protected IExternalAccess access
protected boolean undone
public ComponentResultListener(IResultListener<E> listener, IInternalAccess component)
listener - The listener.adapter - The adapter.public ComponentResultListener(IResultListener<E> listener, IExternalAccess access)
listener - The listener.adapter - The adapter.public ComponentResultListener(IFunctionalResultListener<E> listener, IFunctionalExceptionListener exceptionListener, IExternalAccess access)
listener - The functional listener.exceptionListener - The functional exception listener. Maybe
        null, which will lead to default exception logging.access - External access of the component to schedule the listener
        methods on.public ComponentResultListener(IFunctionalResultListener<E> listener, IFunctionalExceptionListener exceptionListener, IInternalAccess component)
listener - The functional listener.exceptionListener - The functional exception listener. Maybe
        null, which will lead to default exception logging.adapter - The adapter. to schedule the listener methods on.public void resultAvailable(E result)
resultAvailable in interface IFunctionalResultListener<E>result - The result.public void exceptionOccurred(java.lang.Exception exception)
exceptionOccurred in interface IFunctionalExceptionListenerexception - The exception.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 void commandAvailable(java.lang.Object command)
commandAvailable in interface IFutureCommandListener