public static final class TopComponent.SubComponent extends Object
TopComponent.getSubComponents()| Constructor and Description |
|---|
SubComponent(String displayName,
ActionListener activator,
boolean active)
C'tor
|
SubComponent(String displayName,
String description,
ActionListener activator,
boolean active)
C'tor
|
SubComponent(String displayName,
String description,
ActionListener activator,
boolean active,
Lookup lookup,
boolean showing)
C'tor
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Make this sub-component the active/selected one.
|
String |
getDescription() |
String |
getDisplayName() |
Lookup |
getLookup() |
boolean |
isActive() |
boolean |
isShowing() |
public SubComponent(String displayName, ActionListener activator, boolean active)
displayName - Subcomponent's display name.activator - ActionListener to invoke when the sub-component needs
to be actived.active - True if the given sub-component is currently active,
e.g. multiview sub-tab is selected.public SubComponent(String displayName, String description, ActionListener activator, boolean active)
displayName - Subcomponent's display name.description - Short description to show in a tooltip.activator - ActionListener to invoke when the sub-component needs
to be actived.active - True if the given sub-component is currently active,
e.g. multiview sub-tab is selected.public SubComponent(String displayName, String description, ActionListener activator, boolean active, Lookup lookup, boolean showing)
displayName - Subcomponent's display name.description - Short description to show in a tooltip.activator - ActionListener to invoke when the sub-component needs
to be actived.active - True if the given sub-component is currently active,
e.g. multiview sub-tab is selected.lookup - the lookup of the given sub-componentshowing - True if the given sub-component is currently showing,
e.g. multiview sub-tab is selected or part of a split.public Lookup getLookup()
public boolean isShowing()
public final boolean isActive()
public final String getDescription()
public final String getDisplayName()
public final void activate()