public static interface TopComponent.Registry
TopComponent.getRegistry()
and it permits listening to the currently selected element, and to
the activated nodes assigned to it.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_ACTIVATED
Name of property for the selected top component.
|
static java.lang.String |
PROP_ACTIVATED_NODES
Name of property for lastly activated nodes nodes.
|
static java.lang.String |
PROP_CURRENT_NODES
Name of property for currently selected nodes.
|
static java.lang.String |
PROP_OPENED
Name of property for the set of opened components.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a property change listener.
|
TopComponent |
getActivated()
Get the currently selected element.
|
Node[] |
getActivatedNodes()
Getter for the lastly activated nodes.
|
Node[] |
getCurrentNodes()
Getter for the currently selected nodes.
|
java.util.Set |
getOpened()
Get reference to a set of all opened componets in the system.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a property change listener.
|
static final java.lang.String PROP_OPENED
static final java.lang.String PROP_ACTIVATED
static final java.lang.String PROP_CURRENT_NODES
static final java.lang.String PROP_ACTIVATED_NODES
java.util.Set getOpened()
TopComponentsTopComponent getActivated()
null if there is noneNode[] getCurrentNodes()
Node[] getActivatedNodes()
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - the listener to addvoid removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - the listener to remove