|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 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. |
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 |
getOpened()
Get reference to a set of all opened componets in the system. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener. |
Field Detail |
public static final String PROP_OPENED
public static final String PROP_ACTIVATED
public static final String PROP_CURRENT_NODES
public static final String PROP_ACTIVATED_NODES
Method Detail |
public Set getOpened()
TopComponent
spublic TopComponent getActivated()
null
if there is nonepublic Node[] getCurrentNodes()
public Node[] getActivatedNodes()
public void addPropertyChangeListener(PropertyChangeListener l)
l
- the listener to addpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener to remove
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |