Class AbstractTopComponentBaseAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- de.funfried.netbeans.plugins.editor.closeleftright.AbstractBaseAction
-
- de.funfried.netbeans.plugins.editor.closeleftright.actions.topcomponent.AbstractTopComponentBaseAction
-
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
public abstract class AbstractTopComponentBaseAction extends AbstractBaseAction
Base class for closing tabs with specific TopComponent implementations related actions.- Author:
- bahlef
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<? extends org.openide.windows.TopComponent>[]topComponentTypes-
Fields inherited from class de.funfried.netbeans.plugins.editor.closeleftright.AbstractBaseAction
topComponent
-
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
-
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTopComponentBaseAction(String name, Class<? extends org.openide.windows.TopComponent>... topComponentTypes)Constructor of abstract classAbstractTopComponentBaseAction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(ActionEvent event)protected booleanisAssignableFromGivenTypes(Class<? extends org.openide.windows.TopComponent> topComponentClass)booleanisEnabled()-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
topComponentTypes
protected final Class<? extends org.openide.windows.TopComponent>[] topComponentTypes
-
-
Constructor Detail
-
AbstractTopComponentBaseAction
protected AbstractTopComponentBaseAction(String name, Class<? extends org.openide.windows.TopComponent>... topComponentTypes)
Constructor of abstract classAbstractTopComponentBaseAction.- Parameters:
name- the name of this actiontopComponentTypes- theTopComponentClasses which should get closed
-
-
Method Detail
-
actionPerformed
public void actionPerformed(ActionEvent event)
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceAction- Overrides:
isEnabledin classAbstractAction
-
isAssignableFromGivenTypes
protected boolean isAssignableFromGivenTypes(Class<? extends org.openide.windows.TopComponent> topComponentClass)
-
-