org::openide::util::lookup::SimpleLookup::SimpleResult Class Reference

Collaboration diagram for org::openide::util::lookup::SimpleLookup::SimpleResult:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void addLookupListener (LookupListener l)
void removeLookupListener (LookupListener l)
java.util.Collection allInstances ()
Set allClasses ()
Collection allItems ()

Package Functions

 SimpleResult (Template template)

Private Attributes

Set classes
Collection items
Template template
Collection results

Detailed Description

Result used in SimpleLookup. It holds a reference to the collection passed in constructor. As the contents of this lookup result never changes the addLookupListener and removeLookupListener are empty.


Constructor & Destructor Documentation

org::openide::util::lookup::SimpleLookup::SimpleResult::SimpleResult ( Template  template  )  [inline, package]

Just remembers the supplied argument in variable template.


Member Function Documentation

void org::openide::util::lookup::SimpleLookup::SimpleResult::addLookupListener ( LookupListener  l  )  [inline]

Intentionally does nothing because the lookup does not change and no notification is needed.

Set org::openide::util::lookup::SimpleLookup::SimpleResult::allClasses (  )  [inline]

Lazy initializes variable classes. Uses a call to allItems to compute the result.

References allItems(), and classes.

java.util.Collection org::openide::util::lookup::SimpleLookup::SimpleResult::allInstances (  )  [inline]

Lazy initializes the results collection. Uses a call to allItems to obtain the instances.

References allItems(), and results.

Collection org::openide::util::lookup::SimpleLookup::SimpleResult::allItems (  )  [inline]

Lazy initializes variable items. Creates an item for each element in the instances collection. It puts either SimpleItem or ConvertingItem to the collection.

References items, and org::openide::util::lookup::SimpleLookup::matches().

Referenced by allClasses(), and allInstances().

void org::openide::util::lookup::SimpleLookup::SimpleResult::removeLookupListener ( LookupListener  l  )  [inline]

Intentionally does nothing because the lookup does not change and no notification is needed.


Member Data Documentation

can be null and is initialized lazily

Referenced by allClasses().

can be null and is initialized lazily

Referenced by allItems().

can be null and is initialized lazily

Referenced by allInstances().

Template used for this result. It is never null.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2