站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

AbstractLookup.Content (Utilities API) - NetBeans API Javadoc (Current Development Version)

org.openide.util 7.9.0 1

org.openide.util.lookup
Class AbstractLookup.Content

java.lang.Object
  extended by org.openide.util.lookup.AbstractLookup.Content
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InstanceContent
Enclosing class:
AbstractLookup

public static class AbstractLookup.Content
extends Object
implements Serializable

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
See Also:
Serialized Form

Constructor Summary
AbstractLookup.Content()
           
 
Method Summary
 void addPair(AbstractLookup.Pair<?> pair)
          The method to add instance to the lookup with.
 void removePair(AbstractLookup.Pair<?> pair)
          Remove instance.
 void setPairs(Collection<? extends AbstractLookup.Pair> c)
          Changes all pairs in the lookup to new values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLookup.Content

public AbstractLookup.Content()
Method Detail

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<? extends AbstractLookup.Pair> c)
Changes all pairs in the lookup to new values.

Parameters:
c - the collection of (Pair) objects

org.openide.util 7.9.0 1

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.