org.openide.util.lookup
Class WaitableResult<T>

java.lang.Object
  extended by org.openide.util.Lookup.Result<T>
      extended by org.openide.util.lookup.WaitableResult<T>
Direct Known Subclasses:
AbstractLookup.R

abstract class WaitableResult<T>
extends Lookup.Result<T>

A special subclass of lookup that is able to wait before queries.

Author:
Jaroslav Tulach

Constructor Summary
WaitableResult()
           
 
Method Summary
protected abstract  void beforeLookup(Lookup.Template t)
          Used by proxy results to synchronize before lookup.
protected abstract  void collectFires(java.util.Collection<java.lang.Object> evAndListeners)
          Needed to group notification of outside the package listeners after all AbstractLookup and ProxyLookups have been updated.
 
Methods inherited from class org.openide.util.Lookup.Result
addLookupListener, allClasses, allInstances, allItems, removeLookupListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaitableResult

WaitableResult()
Method Detail

beforeLookup

protected abstract void beforeLookup(Lookup.Template t)
Used by proxy results to synchronize before lookup.


collectFires

protected abstract void collectFires(java.util.Collection<java.lang.Object> evAndListeners)
Needed to group notification of outside the package listeners after all AbstractLookup and ProxyLookups have been updated.

Parameters:
evAndListeners - LookupEvent, LookupListener, LookupEvent, LookupListener, etc.