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 | 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.
|
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.
|
static java.lang.String |
PROP_TC_CLOSED |
Name of property for listening to TopComponents closed through close() call,
either by user or programmatically.
|
static java.lang.String |
PROP_TC_OPENED |
Name of property for listening to TopComponents opened through open() call,
either by user or programmatically.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l) |
Add a property change listener.
|
TopComponent |
getActivated() |
Get the currently selected element.
|
org.openide.nodes.Node[] |
getActivatedNodes() |
Getter for the lastly activated nodes.
|
org.openide.nodes.Node[] |
getCurrentNodes() |
Getter for the currently selected nodes.
|
java.util.Set<TopComponent> |
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
static final java.lang.String PROP_TC_OPENED
static final java.lang.String PROP_TC_CLOSED
java.util.Set<TopComponent> getOpened()
TopComponentsTopComponent getActivated()
null if there is noneorg.openide.nodes.Node[] getCurrentNodes()
org.openide.nodes.Node[] getActivatedNodes()
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - the listener to addvoid removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - the listener to removeBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.