org.openide.util.lookup
Class AbstractLookup.Content
java.lang.Object
|
+--org.openide.util.lookup.AbstractLookup.Content
- Direct Known Subclasses:
- InstanceContent
- Enclosing class:
- AbstractLookup
- public static class AbstractLookup.Content
- extends Object
A class that can be used by the creator of the AbstractLookup to
control its content. It can be passed to AbstractLookup constructor
and used to add and remove pairs.
- Since:
- 1.25
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLookup.Content
public AbstractLookup.Content()
addPair
public final void addPair(AbstractLookup.Pair pair)
- The method to add instance to the lookup with.
- Parameters:
pair
- class/instance pair
removePair
public final void removePair(AbstractLookup.Pair pair)
- Remove instance.
- Parameters:
pair
- class/instance pair
setPairs
public final void setPairs(Collection c)
- Changes all pairs in the lookup to new values.
- Parameters:
collection
- the collection of (Pair) objects
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.