public static final class TopComponent.SubComponent extends Object
TopComponent.getSubComponents()
Constructor | 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,
org.openide.util.Lookup lookup,
boolean showing) |
C'tor
|
Modifier and Type | Method | Description |
---|---|---|
void |
activate() |
Make this sub-component the active/selected one.
|
String |
getDescription() |
|
String |
getDisplayName() |
|
org.openide.util.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, org.openide.util.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 org.openide.util.Lookup getLookup()
public boolean isShowing()
public final boolean isActive()
public final String getDescription()
public final String getDisplayName()
public final void activate()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.