
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 |
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.
| org::openide::util::lookup::SimpleLookup::SimpleResult::SimpleResult | ( | Template | template | ) | [inline, package] |
Just remembers the supplied argument in variable template.
| 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.
can be null and is initialized lazily
Referenced by allClasses().
Collection org::openide::util::lookup::SimpleLookup::SimpleResult::items [private] |
can be null and is initialized lazily
Referenced by allItems().
Collection org::openide::util::lookup::SimpleLookup::SimpleResult::results [private] |
can be null and is initialized lazily
Referenced by allInstances().
Template org::openide::util::lookup::SimpleLookup::SimpleResult::template [private] |
Template used for this result. It is never null.
1.6.2