|
org.openide.util.lookup 8.8.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.util.Lookup.Result<T>
public abstract static class Lookup.Result<T>
Result of a lookup request. Allows access to all matching instances at once. Also permits listening to changes in the result. Result can contain duplicate items.
Constructor Summary | |
---|---|
Lookup.Result()
|
Method Summary | |
---|---|
abstract void |
addLookupListener(LookupListener l)
Registers a listener that is invoked when there is a possible change in this result. |
Set<Class<? extends T>> |
allClasses()
Get all classes represented in the result. |
abstract Collection<? extends T> |
allInstances()
Get all instances in the result. |
Collection<? extends Lookup.Item<T>> |
allItems()
Get all registered items. |
abstract void |
removeLookupListener(LookupListener l)
Unregisters a listener previously added. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Lookup.Result()
Method Detail |
---|
public abstract void addLookupListener(LookupListener l)
Lookup.Result
object. When it gets garbage collected
it can no longer deliver events. Thus remember to keep reference
to the object you are attaching listener to.
l
- the listener to addpublic abstract void removeLookupListener(LookupListener l)
l
- the listener to removepublic abstract Collection<? extends T> allInstances()
public Set<Class<? extends T>> allClasses()
Class
objects that will never change its contentpublic Collection<? extends Lookup.Item<T>> allItems()
Lookup.Item
that will never change its content
|
org.openide.util.lookup 8.8.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |