java.io.Serializablepublic static class CloneableTopComponent.Ref
extends java.lang.Object
implements java.io.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 | Description |
|---|---|---|
protected |
Ref() |
Default constructor for creating empty reference.
|
| Modifier and Type | Method | Description |
|---|---|---|
CloneableTopComponent |
getAnyComponent() |
Deprecated.
Use
getArbitraryComponent() instead.
It doesn't throw a runtime exception. |
CloneableTopComponent |
getArbitraryComponent() |
Gets arbitrary component from the set.
|
java.util.Enumeration<CloneableTopComponent> |
getComponents() |
Enumeration of all registered components.
|
boolean |
isEmpty() |
Test whether there is any component in this set.
|
public java.util.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 April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.