|
FreeHEP API Version v1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openide.util.Lookup | +--org.openide.util.lookup.AbstractLookup | +--org.freehep.util.FreeHEPLookup
A simple lookup which allows adding and removing items. This is just a wrapper around the netbeans Lookup API which combines an InstanceContent object and an AbstractLookup.
Field Summary |
Fields inherited from class org.openide.util.Lookup |
EMPTY |
Method Summary | |
void |
add(Object instance)
Add an instance of an Object to the lookup. |
void |
add(Object instance,
String id)
Add an instance with an ID. |
void |
add(Object instance,
String[] ids)
Add an instance with multiple IDs. |
static FreeHEPLookup |
instance()
Access a singleton instance of FreeHEPLookup. |
void |
remove(Object instance)
Remove an instance from the lookup |
void |
remove(Object instance,
String id)
Remove an instance with a specific ID. |
void |
remove(Object instance,
String[] ids)
Remove an instance with multiple IDs |
Methods inherited from class org.openide.util.lookup.AbstractLookup |
addPair, beforeLookup, initialize, lookup, lookup, lookupItem, removePair, setPairs, toString |
Methods inherited from class org.openide.util.Lookup |
getDefault |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static FreeHEPLookup instance()
public void add(Object instance)
instance
- The object to add.public void add(Object instance, String id)
instance
- The instance to add.id
- The ID associated with the instancepublic void add(Object instance, String[] ids)
instance
- The instance to add.ids
- The IDs associated with the instance.public void remove(Object instance)
instance
- The instance to removepublic void remove(Object instance, String id)
instance
- The instance to removeid
- The ID of the instancepublic void remove(Object instance, String[] ids)
instance
- The instance to removeids
- The IDs of the instance
|
FreeHEP API Version v1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |