public static final class TopComponent.SubComponent
extends java.lang.Object
TopComponent.getSubComponents()| Constructor | Description |
|---|---|
SubComponent(java.lang.String displayName,
java.awt.event.ActionListener activator,
boolean active) |
C'tor
|
SubComponent(java.lang.String displayName,
java.lang.String description,
java.awt.event.ActionListener activator,
boolean active) |
C'tor
|
SubComponent(java.lang.String displayName,
java.lang.String description,
java.awt.event.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.
|
java.lang.String |
getDescription() |
|
java.lang.String |
getDisplayName() |
|
org.openide.util.Lookup |
getLookup() |
|
boolean |
isActive() |
|
boolean |
isShowing() |
public SubComponent(java.lang.String displayName,
java.awt.event.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(java.lang.String displayName,
java.lang.String description,
java.awt.event.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(java.lang.String displayName,
java.lang.String description,
java.awt.event.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 java.lang.String getDescription()
public final java.lang.String getDisplayName()
public final void activate()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.