public static class CloneableTopComponent.Ref extends Object implements Serializable
Warning: For proper use subclasses should have method readResolve () and implement it in right way to deal with separate serialization of TopComponent.
| Modifier | Constructor and Description |
|---|---|
protected |
Ref()
Default constructor for creating empty reference.
|
| Modifier and Type | Method and Description |
|---|---|
CloneableTopComponent |
getAnyComponent()
Deprecated.
Use
getArbitraryComponent() instead.
It doesn't throw a runtime exception. |
CloneableTopComponent |
getArbitraryComponent()
Gets arbitrary component from the set.
|
Enumeration<CloneableTopComponent> |
getComponents()
Enumeration of all registered components.
|
boolean |
isEmpty()
Test whether there is any component in this set.
|
public Enumeration<CloneableTopComponent> getComponents()
public boolean isEmpty()
true if the reference set is emptypublic CloneableTopComponent getAnyComponent()
getArbitraryComponent() instead.
It doesn't throw a runtime exception.NoSuchElementException - if the set is emptypublic CloneableTopComponent getArbitraryComponent()
CloneableTopComponent from the set
or null if the set is emptyBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.