org.openide.windows
Class CloneableTopComponent.Ref
java.lang.Object
|
+--org.openide.windows.CloneableTopComponent.Ref
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- CloneableTopComponent
- public static class CloneableTopComponent.Ref
- extends Object
- implements Serializable
Keeps track of a group of sister clones.
Warning:
For proper use
subclasses should have method readResolve () and implement it
in right way to deal with separate serialization of TopComponent.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloneableTopComponent.Ref
protected CloneableTopComponent.Ref()
- Default constructor for creating empty reference.
getComponents
public Enumeration getComponents()
- Enumeration of all registered components.
- Returns:
- enumeration of CloneableTopComponent
isEmpty
public boolean isEmpty()
- Test whether there is any component in this set.
- Returns:
true
if the reference set is empty
getAnyComponent
public CloneableTopComponent getAnyComponent()
- Retrieve an arbitrary component from the set.
- Returns:
- some component from the list of registered ones
- Throws:
NoSuchElementException
- if the set is empty
Built on December 12 2001. | Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.