Package jadex.commons.gui.future
Class SwingIntermediateDefaultResultListener<E>
- java.lang.Object
- 
- jadex.commons.future.DefaultResultListener<E>
- 
- jadex.commons.gui.future.SwingDefaultResultListener<java.util.Collection<E>>
- 
- jadex.commons.gui.future.SwingIntermediateDefaultResultListener<E>
 
 
 
- 
- All Implemented Interfaces:
- IFunctionalExceptionListener,- IFunctionalIntermediateFinishedListener<E>,- IFunctionalIntermediateResultCountListener,- IFunctionalIntermediateResultListener<E>,- IFunctionalResultListener<java.util.Collection<E>>,- IFutureCommandResultListener<java.util.Collection<E>>,- IIntermediateResultListener<E>,- IResultListener<java.util.Collection<E>>
 
 public abstract class SwingIntermediateDefaultResultListener<E> extends SwingDefaultResultListener<java.util.Collection<E>> implements IIntermediateResultListener<E> Default implementation of intermediate result listener with methods called on swing thread.
- 
- 
Field Summary- 
Fields inherited from class jadex.commons.gui.future.SwingDefaultResultListenercustomExceptionListener, customResultListener, parent
 
- 
 - 
Constructor SummaryConstructors Constructor Description SwingIntermediateDefaultResultListener()Create a new listener.SwingIntermediateDefaultResultListener(java.awt.Component parent)Create a new listener.SwingIntermediateDefaultResultListener(java.util.logging.Logger logger)Create a new listener.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcustomFinished()Declare that the future is finished.abstract voidcustomIntermediateResultAvailable(E result)Called when an intermediate result is available.voidcustomMaxResultCountAvailable(int max)voidcustomResultAvailable(java.util.Collection<E> result)Overwritten to call intermediate and finished methods.voidfinished()Call customFinished() on swing thread.voidintermediateResultAvailable(E result)Call customIntermediateResultAvailable() on swing thread.voidmaxResultCountAvailable(int max)Declare that the future result count is available.- 
Methods inherited from class jadex.commons.gui.future.SwingDefaultResultListenercommandAvailable, customCommandAvailable, customExceptionOccurred, exceptionOccurred, resultAvailable, unblock
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jadex.commons.future.IFunctionalExceptionListenerexceptionOccurred
 - 
Methods inherited from interface jadex.commons.future.IFunctionalResultListenerresultAvailable
 
- 
 
- 
- 
- 
Constructor Detail- 
SwingIntermediateDefaultResultListenerpublic SwingIntermediateDefaultResultListener() Create a new listener.
 - 
SwingIntermediateDefaultResultListenerpublic SwingIntermediateDefaultResultListener(java.awt.Component parent) Create a new listener.- Parameters:
- parent- The parent component (when errors should be shown as dialog).
 
 - 
SwingIntermediateDefaultResultListenerpublic SwingIntermediateDefaultResultListener(java.util.logging.Logger logger) Create a new listener.- Parameters:
- logger- The logger.
 
 
- 
 - 
Method Detail- 
customIntermediateResultAvailablepublic abstract void customIntermediateResultAvailable(E result) Called when an intermediate result is available.- Parameters:
- result- The result.
 
 - 
customFinishedpublic void customFinished() Declare that the future is finished. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method was called for all intermediate results before.
 - 
customMaxResultCountAvailablepublic void customMaxResultCountAvailable(int max) 
 - 
intermediateResultAvailablepublic final void intermediateResultAvailable(E result) Call customIntermediateResultAvailable() on swing thread.- Specified by:
- intermediateResultAvailablein interface- IFunctionalIntermediateResultListener<E>
- Specified by:
- intermediateResultAvailablein interface- IIntermediateResultListener<E>
- Parameters:
- result- The result.
 
 - 
finishedpublic final void finished() Call customFinished() on swing thread.- Specified by:
- finishedin interface- IFunctionalIntermediateFinishedListener<E>
- Specified by:
- finishedin interface- IIntermediateResultListener<E>
 
 - 
maxResultCountAvailablepublic void maxResultCountAvailable(int max) Description copied from interface:IIntermediateResultListenerDeclare that the future result count is available. This method is only called for intermediate futures, i.e. when this method is called it is guaranteed that the intermediateResultAvailable method will be called as often as the result count indicates except an exception occurs.- Specified by:
- maxResultCountAvailablein interface- IFunctionalIntermediateResultCountListener
- Specified by:
- maxResultCountAvailablein interface- IIntermediateResultListener<E>
 
 - 
customResultAvailablepublic void customResultAvailable(java.util.Collection<E> result) Overwritten to call intermediate and finished methods.- Overrides:
- customResultAvailablein class- SwingDefaultResultListener<java.util.Collection<E>>
- Parameters:
- result- The result.
 
 
- 
 
-