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

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

List of all members.

Classes

class  SimpleResult

Public Member Functions

String toString ()
Result lookup (Template template)
Object lookup (Class clazz)

Package Functions

 SimpleLookup (Collection instances)
 SimpleLookup (Collection keys, InstanceContent.Convertor conv)

Static Package Functions

 [static initializer]

Static Private Member Functions

static boolean matches (Template t, AbstractLookup.Pair item)

Private Attributes

Collection allItems
Object nodeOp

Static Private Attributes

static final Log log = LogFactory.getLog(SimpleLookup.class)
static NbDialogDisplayer dialog

Detailed Description

Simple lookup implementation. It can be used to create temporary lookups that do not change over time. The result stores references to all objects passed in the constructor. Those objecst are the only ones returned as result.

Author:
David Strupl

Constructor & Destructor Documentation

org::openide::util::lookup::SimpleLookup::SimpleLookup ( Collection  instances  )  [inline, package]

Creates new Result object with supplied instances parameter.

Parameters:
instances to be used to return from the lookup

References allItems.

org::openide::util::lookup::SimpleLookup::SimpleLookup ( Collection  keys,
InstanceContent.Convertor  conv 
) [inline, package]

References allItems.


Member Function Documentation

org::openide::util::lookup::SimpleLookup::[static initializer] (  )  [inline, static, package]
Object org::openide::util::lookup::SimpleLookup::lookup ( Class  clazz  )  [inline]

References dialog, log, and nodeOp.

Result org::openide::util::lookup::SimpleLookup::lookup ( Template  template  )  [inline]
static boolean org::openide::util::lookup::SimpleLookup::matches ( Template  t,
AbstractLookup.Pair  item 
) [inline, static, private]

A method that defines matching between Item and Template.

Parameters:
item the item to match
Returns:
true if item matches the template requirements, false if not

Referenced by org::openide::util::lookup::SimpleLookup::SimpleResult::allItems().

String org::openide::util::lookup::SimpleLookup::toString (  )  [inline]

Member Data Documentation

This variable is initialized in constructor and thus null value is not allowed as its value.

Referenced by SimpleLookup().

NbDialogDisplayer org::openide::util::lookup::SimpleLookup::dialog [static, private]

Referenced by lookup().

final Log org::openide::util::lookup::SimpleLookup::log = LogFactory.getLog(SimpleLookup.class) [static, private]

Referenced by lookup().

Referenced by lookup().


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

Generated by  doxygen 1.6.2