public abstract class AbstractTopComponentBaseAction extends AbstractBaseAction
Modifier and Type | Field and Description |
---|---|
protected Class<? extends org.openide.windows.TopComponent>[] |
topComponentTypes |
topComponent
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Modifier | Constructor and Description |
---|---|
protected |
AbstractTopComponentBaseAction(String name,
Class<? extends org.openide.windows.TopComponent>... topComponentTypes)
Constructor of abstract class
AbstractTopComponentBaseAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event) |
protected boolean |
isAssignableFromGivenTypes(Class<? extends org.openide.windows.TopComponent> topComponentClass) |
boolean |
isEnabled() |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
protected final Class<? extends org.openide.windows.TopComponent>[] topComponentTypes
protected AbstractTopComponentBaseAction(String name, Class<? extends org.openide.windows.TopComponent>... topComponentTypes)
AbstractTopComponentBaseAction
.name
- the name of this actiontopComponentTypes
- the TopComponent
Class
es which should get closedpublic void actionPerformed(ActionEvent event)
public boolean isEnabled()
isEnabled
in interface Action
isEnabled
in class AbstractAction
protected boolean isAssignableFromGivenTypes(Class<? extends org.openide.windows.TopComponent> topComponentClass)
Copyright © 2022–2024. All rights reserved.