public class ComponentResultListener<E> extends Object implements IResultListener<E>, IFutureCommandListener, IUndoneResultListener<E>
Constructor and Description |
---|
ComponentResultListener(IResultListener<E> listener,
IComponentAdapter adapter)
Create a new component result listener.
|
ComponentResultListener(IResultListener<E> listener,
IExternalAccess access)
Create a new component result listener.
|
Modifier and Type | Method and Description |
---|---|
void |
commandAvailable(Object command)
Called when a command is available.
|
void |
exceptionOccurred(Exception exception)
Called when an exception occurred.
|
void |
exceptionOccurredIfUndone(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.
|
public ComponentResultListener(IResultListener<E> listener, IComponentAdapter adapter)
listener
- The listener.adapter
- The adapter.public ComponentResultListener(IResultListener<E> listener, IExternalAccess access)
listener
- The listener.adapter
- The adapter.public void resultAvailable(E result)
resultAvailable
in interface IResultListener<E>
result
- The result.public void exceptionOccurred(Exception exception)
exceptionOccurred
in interface IResultListener<E>
exception
- The exception.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 void commandAvailable(Object command)
commandAvailable
in interface IFutureCommandListener
Copyright © 2013. All Rights Reserved.