|
org.openide.windows 6.16 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface TopComponent.Registry
Registry of all top components.
There is one instance that can be obtained via TopComponent.getRegistry()
and it permits listening to the currently selected element, and to
the activated nodes assigned to it.
Field Summary | |
---|---|
static String |
PROP_ACTIVATED
Name of property for the selected top component. |
static String |
PROP_ACTIVATED_NODES
Name of property for lastly activated nodes. |
static String |
PROP_CURRENT_NODES
Name of property for currently selected nodes. |
static String |
PROP_OPENED
Name of property for the set of opened components. |
static String |
PROP_TC_CLOSED
Name of property for listening to TopComponents closed through close() call, either by user or programmatically. |
static String |
PROP_TC_OPENED
Name of property for listening to TopComponents opened through open() call, either by user or programmatically. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(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. |
Set<TopComponent> |
getOpened()
Get reference to a set of all opened componets in the system. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener. |
Field Detail |
---|
static final String PROP_OPENED
static final String PROP_ACTIVATED
static final String PROP_CURRENT_NODES
static final String PROP_ACTIVATED_NODES
static final String PROP_TC_OPENED
static final String PROP_TC_CLOSED
Method Detail |
---|
Set<TopComponent> getOpened()
TopComponent
sTopComponent getActivated()
null
if there is noneNode[] getCurrentNodes()
Node[] getActivatedNodes()
void addPropertyChangeListener(PropertyChangeListener l)
l
- the listener to addvoid removePropertyChangeListener(PropertyChangeListener l)
l
- the listener to remove
|
org.openide.windows 6.16 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |